From d1d7e8078471444674c961954d1d8876e9615e5a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 23 May 1996 20:43:04 +0000 Subject: new files --- c/src/tests/psxtests/psxhdrs/signal15.c | 26 ++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/signal16.c | 36 +++++++++++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/signal17.c | 27 +++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/signal18.c | 28 +++++++++++++++++++++++++ c/src/tests/psxtests/psxhdrs/signal19.c | 27 +++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal15.c | 26 ++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal16.c | 36 +++++++++++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal17.c | 27 +++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal18.c | 28 +++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal19.c | 27 +++++++++++++++++++++++++ 10 files changed, 288 insertions(+) create mode 100644 c/src/tests/psxtests/psxhdrs/signal15.c create mode 100644 c/src/tests/psxtests/psxhdrs/signal16.c create mode 100644 c/src/tests/psxtests/psxhdrs/signal17.c create mode 100644 c/src/tests/psxtests/psxhdrs/signal18.c create mode 100644 c/src/tests/psxtests/psxhdrs/signal19.c create mode 100644 testsuites/psxtests/psxhdrs/signal15.c create mode 100644 testsuites/psxtests/psxhdrs/signal16.c create mode 100644 testsuites/psxtests/psxhdrs/signal17.c create mode 100644 testsuites/psxtests/psxhdrs/signal18.c create mode 100644 testsuites/psxtests/psxhdrs/signal19.c 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 + +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 + +#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 + +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 + +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 + +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 + +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 + +#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 + +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 + +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 + +void test( void ) +{ + sigset_t set; + int sig; + int result; + + (void) sigemptyset( &set ); + + result = sigwait( &set, &sig ); +} -- cgit v1.2.3