diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-24 22:58:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-24 22:58:15 +0000 |
commit | 3320e526ffa849a9525ebe262e0b008897efa3c5 (patch) | |
tree | 7858ae3b36c7e8a7f87307e89aa0ebd0547617c4 /testsuites/psxtests | |
parent | changed version to 3.5.17 (diff) | |
download | rtems-3320e526ffa849a9525ebe262e0b008897efa3c5.tar.bz2 |
new file
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc01.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc02.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc03.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc04.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc05.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc06.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc07.c | 26 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc08.c | 26 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc09.c | 27 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc10.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc11.c | 26 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc12.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc13.c | 23 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc14.c | 25 |
14 files changed, 337 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/proc01.c b/testsuites/psxtests/psxhdrs/proc01.c new file mode 100644 index 0000000000..6a51a067a3 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc02.c b/testsuites/psxtests/psxhdrs/proc02.c new file mode 100644 index 0000000000..3a313b5043 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc03.c b/testsuites/psxtests/psxhdrs/proc03.c new file mode 100644 index 0000000000..8cfea312a2 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc04.c b/testsuites/psxtests/psxhdrs/proc04.c new file mode 100644 index 0000000000..004e6bb5b4 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc05.c b/testsuites/psxtests/psxhdrs/proc05.c new file mode 100644 index 0000000000..35f3b633fc --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc06.c b/testsuites/psxtests/psxhdrs/proc06.c new file mode 100644 index 0000000000..da594c25b7 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc07.c b/testsuites/psxtests/psxhdrs/proc07.c new file mode 100644 index 0000000000..dd045f9b7e --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc08.c b/testsuites/psxtests/psxhdrs/proc08.c new file mode 100644 index 0000000000..4862ea5936 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc09.c b/testsuites/psxtests/psxhdrs/proc09.c new file mode 100644 index 0000000000..8b79767a51 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc10.c b/testsuites/psxtests/psxhdrs/proc10.c new file mode 100644 index 0000000000..d5de7b8941 --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc11.c b/testsuites/psxtests/psxhdrs/proc11.c new file mode 100644 index 0000000000..6bb9765c5e --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc12.c b/testsuites/psxtests/psxhdrs/proc12.c new file mode 100644 index 0000000000..4184f298db --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc13.c b/testsuites/psxtests/psxhdrs/proc13.c new file mode 100644 index 0000000000..10b85bfc2d --- /dev/null +++ b/testsuites/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/testsuites/psxtests/psxhdrs/proc14.c b/testsuites/psxtests/psxhdrs/proc14.c new file mode 100644 index 0000000000..3c6478da92 --- /dev/null +++ b/testsuites/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 ); +} |