diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-23 20:43:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-23 20:43:04 +0000 |
commit | d1d7e8078471444674c961954d1d8876e9615e5a (patch) | |
tree | 0ed709c144be56f3d1e7dd94e9a061f957667361 | |
parent | new files (diff) | |
download | rtems-d1d7e8078471444674c961954d1d8876e9615e5a.tar.bz2 |
new files
-rw-r--r-- | c/src/tests/psxtests/psxhdrs/signal15.c | 26 | ||||
-rw-r--r-- | c/src/tests/psxtests/psxhdrs/signal16.c | 36 | ||||
-rw-r--r-- | c/src/tests/psxtests/psxhdrs/signal17.c | 27 | ||||
-rw-r--r-- | c/src/tests/psxtests/psxhdrs/signal18.c | 28 | ||||
-rw-r--r-- | c/src/tests/psxtests/psxhdrs/signal19.c | 27 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/signal15.c | 26 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/signal16.c | 36 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/signal17.c | 27 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/signal18.c | 28 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/signal19.c | 27 |
10 files changed, 288 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/signal15.c b/c/src/tests/psxtests/psxhdrs/signal15.c new file mode 100644 index 0000000000..c4fbcf4381 --- /dev/null +++ b/c/src/tests/psxtests/psxhdrs/signal15.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 <signal.h> + +void test( void ) +{ + sigset_t sigmask; + int result; + + (void) sigemptyset( &sigmask ); + + result = sigsuspend( &sigmask ); +} diff --git a/c/src/tests/psxtests/psxhdrs/signal16.c b/c/src/tests/psxtests/psxhdrs/signal16.c new file mode 100644 index 0000000000..7a5213478a --- /dev/null +++ b/c/src/tests/psxtests/psxhdrs/signal16.c @@ -0,0 +1,36 @@ +/* + * 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 <signal.h> + +#ifndef _POSIX_THREADS +#define "rtems is supposed to have pthread_sigmask" +#endif + +void test( void ) +{ + int how; + sigset_t set; + sigset_t oset; + int result; + + how = SIG_BLOCK; + how = SIG_UNBLOCK; + how = SIG_SETMASK; + + (void) sigemptyset( &set ); + + result = pthread_sigmask( how, &set, &oset ); +} diff --git a/c/src/tests/psxtests/psxhdrs/signal17.c b/c/src/tests/psxtests/psxhdrs/signal17.c new file mode 100644 index 0000000000..53055da4b4 --- /dev/null +++ b/c/src/tests/psxtests/psxhdrs/signal17.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 <signal.h> + +void test( void ) +{ + sigset_t set; + siginfo_t info; + int result; + + (void) sigemptyset( &set ); + + result = sigwaitinfo( &set, &info ); +} diff --git a/c/src/tests/psxtests/psxhdrs/signal18.c b/c/src/tests/psxtests/psxhdrs/signal18.c new file mode 100644 index 0000000000..4d09b08d81 --- /dev/null +++ b/c/src/tests/psxtests/psxhdrs/signal18.c @@ -0,0 +1,28 @@ +/* + * 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 <signal.h> + +void test( void ) +{ + sigset_t set; + siginfo_t info; + struct timespec timeout; + int result; + + (void) sigemptyset( &set ); + + result = sigtimedwait( &set, &info, &timeout ); +} diff --git a/c/src/tests/psxtests/psxhdrs/signal19.c b/c/src/tests/psxtests/psxhdrs/signal19.c new file mode 100644 index 0000000000..013b4ef25e --- /dev/null +++ b/c/src/tests/psxtests/psxhdrs/signal19.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 <signal.h> + +void test( void ) +{ + sigset_t set; + int sig; + int result; + + (void) sigemptyset( &set ); + + result = sigwait( &set, &sig ); +} diff --git a/testsuites/psxtests/psxhdrs/signal15.c b/testsuites/psxtests/psxhdrs/signal15.c new file mode 100644 index 0000000000..c4fbcf4381 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal15.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 <signal.h> + +void test( void ) +{ + sigset_t sigmask; + int result; + + (void) sigemptyset( &sigmask ); + + result = sigsuspend( &sigmask ); +} diff --git a/testsuites/psxtests/psxhdrs/signal16.c b/testsuites/psxtests/psxhdrs/signal16.c new file mode 100644 index 0000000000..7a5213478a --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal16.c @@ -0,0 +1,36 @@ +/* + * 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 <signal.h> + +#ifndef _POSIX_THREADS +#define "rtems is supposed to have pthread_sigmask" +#endif + +void test( void ) +{ + int how; + sigset_t set; + sigset_t oset; + int result; + + how = SIG_BLOCK; + how = SIG_UNBLOCK; + how = SIG_SETMASK; + + (void) sigemptyset( &set ); + + result = pthread_sigmask( how, &set, &oset ); +} diff --git a/testsuites/psxtests/psxhdrs/signal17.c b/testsuites/psxtests/psxhdrs/signal17.c new file mode 100644 index 0000000000..53055da4b4 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal17.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 <signal.h> + +void test( void ) +{ + sigset_t set; + siginfo_t info; + int result; + + (void) sigemptyset( &set ); + + result = sigwaitinfo( &set, &info ); +} diff --git a/testsuites/psxtests/psxhdrs/signal18.c b/testsuites/psxtests/psxhdrs/signal18.c new file mode 100644 index 0000000000..4d09b08d81 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal18.c @@ -0,0 +1,28 @@ +/* + * 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 <signal.h> + +void test( void ) +{ + sigset_t set; + siginfo_t info; + struct timespec timeout; + int result; + + (void) sigemptyset( &set ); + + result = sigtimedwait( &set, &info, &timeout ); +} diff --git a/testsuites/psxtests/psxhdrs/signal19.c b/testsuites/psxtests/psxhdrs/signal19.c new file mode 100644 index 0000000000..013b4ef25e --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal19.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 <signal.h> + +void test( void ) +{ + sigset_t set; + int sig; + int result; + + (void) sigemptyset( &set ); + + result = sigwait( &set, &sig ); +} |