From 3320e526ffa849a9525ebe262e0b008897efa3c5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 24 May 1996 22:58:15 +0000 Subject: new file --- c/src/tests/psxtests/psxhdrs/proc01.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc02.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc03.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc04.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc05.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc06.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc07.c | 26 ++++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc08.c | 26 ++++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc09.c | 27 +++++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc10.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc11.c | 26 ++++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc12.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc13.c | 23 +++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/proc14.c | 25 +++++++++++++++++++++++++ 14 files changed, 337 insertions(+) create mode 100644 c/src/tests/psxtests/psxhdrs/proc01.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc02.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc03.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc04.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc05.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc06.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc07.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc08.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc09.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc10.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc11.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc12.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc13.c create mode 100644 c/src/tests/psxtests/psxhdrs/proc14.c (limited to 'c/src/tests') 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 + +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 + +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 + +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 + +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 + +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 + +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 + +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 + +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 + +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 + +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 +#include /* 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 + +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 + +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 + +void test( void ) +{ + pid_t pid; + pid_t pgid; + int result; + + result = setpgid( pid, pgid ); +} -- cgit v1.2.3