summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-24 22:58:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-24 22:58:15 +0000
commit3320e526ffa849a9525ebe262e0b008897efa3c5 (patch)
tree7858ae3b36c7e8a7f87307e89aa0ebd0547617c4 /c
parent87a2a7418be6dd098ad70f0d49f35574a2c0ee4b (diff)
downloadrtems-3320e526ffa849a9525ebe262e0b008897efa3c5.tar.bz2
new file
Diffstat (limited to 'c')
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc01.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc02.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc03.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc04.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc05.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc06.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc07.c26
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc08.c26
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc09.c27
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc10.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc11.c26
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc12.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc13.c23
-rw-r--r--c/src/tests/psxtests/psxhdrs/proc14.c25
14 files changed, 337 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/proc01.c b/c/src/tests/psxtests/psxhdrs/proc01.c
new file mode 100644
index 0000000000..6a51a067a3
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc01.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ pid_t pid;
+
+ pid = getpid();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc02.c b/c/src/tests/psxtests/psxhdrs/proc02.c
new file mode 100644
index 0000000000..3a313b5043
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc02.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ pid_t pid;
+
+ pid = getppid();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc03.c b/c/src/tests/psxtests/psxhdrs/proc03.c
new file mode 100644
index 0000000000..8cfea312a2
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc03.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ uid_t uid;
+
+ uid = getuid();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc04.c b/c/src/tests/psxtests/psxhdrs/proc04.c
new file mode 100644
index 0000000000..004e6bb5b4
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc04.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ uid_t uid;
+
+ uid = geteuid();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc05.c b/c/src/tests/psxtests/psxhdrs/proc05.c
new file mode 100644
index 0000000000..35f3b633fc
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc05.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ gid_t gid;
+
+ gid = getgid();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc06.c b/c/src/tests/psxtests/psxhdrs/proc06.c
new file mode 100644
index 0000000000..da594c25b7
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc06.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ gid_t gid;
+
+ gid = getegid();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc07.c b/c/src/tests/psxtests/psxhdrs/proc07.c
new file mode 100644
index 0000000000..dd045f9b7e
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc07.c
@@ -0,0 +1,26 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ uid_t uid;
+ int result;
+
+ uid = 0;
+
+ result = setuid( uid );
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc08.c b/c/src/tests/psxtests/psxhdrs/proc08.c
new file mode 100644
index 0000000000..4862ea5936
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc08.c
@@ -0,0 +1,26 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ gid_t gid;
+ int result;
+
+ gid = 0;
+
+ result = setgid( gid );
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc09.c b/c/src/tests/psxtests/psxhdrs/proc09.c
new file mode 100644
index 0000000000..8b79767a51
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc09.c
@@ -0,0 +1,27 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ gid_t grouplist[ 20 ];
+ int gidsetsize;
+ int result;
+
+ gidsetsize = 20;
+
+ result = getgroups( gidsetsize, grouplist );
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc10.c b/c/src/tests/psxtests/psxhdrs/proc10.c
new file mode 100644
index 0000000000..d5de7b8941
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc10.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ char *loginname;
+
+ loginname = getlogin();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc11.c b/c/src/tests/psxtests/psxhdrs/proc11.c
new file mode 100644
index 0000000000..6bb9765c5e
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc11.c
@@ -0,0 +1,26 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+#include <limits.h> /* for LOGIN_NAME_MAX */
+
+void test( void )
+{
+ char loginnamebuffer[ LOGIN_NAME_MAX ];
+ char *loginname;
+ int result;
+
+ result = getlogin_r( loginnamebuffer, LOGIN_NAME_MAX );
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc12.c b/c/src/tests/psxtests/psxhdrs/proc12.c
new file mode 100644
index 0000000000..4184f298db
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc12.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ pid_t pgrp;
+
+ pgrp = getpgrp();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc13.c b/c/src/tests/psxtests/psxhdrs/proc13.c
new file mode 100644
index 0000000000..10b85bfc2d
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc13.c
@@ -0,0 +1,23 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ pid_t pid;
+
+ pid = setsid();
+}
diff --git a/c/src/tests/psxtests/psxhdrs/proc14.c b/c/src/tests/psxtests/psxhdrs/proc14.c
new file mode 100644
index 0000000000..3c6478da92
--- /dev/null
+++ b/c/src/tests/psxtests/psxhdrs/proc14.c
@@ -0,0 +1,25 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * the callout are correct.
+ *
+ * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
+ * On-Line Applications Research Corporation (OAR).
+ * All rights assigned to U.S. Government, 1994.
+ *
+ * This material may be reproduced by or for the U.S. Government pursuant
+ * to the copyright license under the clause at DFARS 252.227-7013. This
+ * notice must appear in all copies of this file and its derivatives.
+ *
+ * $Id$
+ */
+
+#include <sys/types.h>
+
+void test( void )
+{
+ pid_t pid;
+ pid_t pgid;
+ int result;
+
+ result = setpgid( pid, pgid );
+}