forked from Imagelibrary/rtems
new file
This commit is contained in:
23
c/src/tests/psxtests/psxhdrs/proc01.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc01.c
Normal file
@@ -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();
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc02.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc02.c
Normal file
@@ -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();
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc03.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc03.c
Normal file
@@ -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();
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc04.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc04.c
Normal file
@@ -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();
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc05.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc05.c
Normal file
@@ -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();
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc06.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc06.c
Normal file
@@ -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();
|
||||
}
|
||||
26
c/src/tests/psxtests/psxhdrs/proc07.c
Normal file
26
c/src/tests/psxtests/psxhdrs/proc07.c
Normal file
@@ -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 );
|
||||
}
|
||||
26
c/src/tests/psxtests/psxhdrs/proc08.c
Normal file
26
c/src/tests/psxtests/psxhdrs/proc08.c
Normal file
@@ -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 );
|
||||
}
|
||||
27
c/src/tests/psxtests/psxhdrs/proc09.c
Normal file
27
c/src/tests/psxtests/psxhdrs/proc09.c
Normal file
@@ -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 );
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc10.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc10.c
Normal file
@@ -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();
|
||||
}
|
||||
26
c/src/tests/psxtests/psxhdrs/proc11.c
Normal file
26
c/src/tests/psxtests/psxhdrs/proc11.c
Normal file
@@ -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 );
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc12.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc12.c
Normal file
@@ -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();
|
||||
}
|
||||
23
c/src/tests/psxtests/psxhdrs/proc13.c
Normal file
23
c/src/tests/psxtests/psxhdrs/proc13.c
Normal file
@@ -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();
|
||||
}
|
||||
25
c/src/tests/psxtests/psxhdrs/proc14.c
Normal file
25
c/src/tests/psxtests/psxhdrs/proc14.c
Normal file
@@ -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 );
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc01.c
Normal file
23
testsuites/psxtests/psxhdrs/proc01.c
Normal file
@@ -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();
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc02.c
Normal file
23
testsuites/psxtests/psxhdrs/proc02.c
Normal file
@@ -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();
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc03.c
Normal file
23
testsuites/psxtests/psxhdrs/proc03.c
Normal file
@@ -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();
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc04.c
Normal file
23
testsuites/psxtests/psxhdrs/proc04.c
Normal file
@@ -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();
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc05.c
Normal file
23
testsuites/psxtests/psxhdrs/proc05.c
Normal file
@@ -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();
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc06.c
Normal file
23
testsuites/psxtests/psxhdrs/proc06.c
Normal file
@@ -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();
|
||||
}
|
||||
26
testsuites/psxtests/psxhdrs/proc07.c
Normal file
26
testsuites/psxtests/psxhdrs/proc07.c
Normal file
@@ -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 );
|
||||
}
|
||||
26
testsuites/psxtests/psxhdrs/proc08.c
Normal file
26
testsuites/psxtests/psxhdrs/proc08.c
Normal file
@@ -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 );
|
||||
}
|
||||
27
testsuites/psxtests/psxhdrs/proc09.c
Normal file
27
testsuites/psxtests/psxhdrs/proc09.c
Normal file
@@ -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 );
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc10.c
Normal file
23
testsuites/psxtests/psxhdrs/proc10.c
Normal file
@@ -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();
|
||||
}
|
||||
26
testsuites/psxtests/psxhdrs/proc11.c
Normal file
26
testsuites/psxtests/psxhdrs/proc11.c
Normal file
@@ -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 );
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc12.c
Normal file
23
testsuites/psxtests/psxhdrs/proc12.c
Normal file
@@ -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();
|
||||
}
|
||||
23
testsuites/psxtests/psxhdrs/proc13.c
Normal file
23
testsuites/psxtests/psxhdrs/proc13.c
Normal file
@@ -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();
|
||||
}
|
||||
25
testsuites/psxtests/psxhdrs/proc14.c
Normal file
25
testsuites/psxtests/psxhdrs/proc14.c
Normal file
@@ -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 );
|
||||
}
|
||||
Reference in New Issue
Block a user