From 2328475ccd111f1c3a0dea032c5f1dee401995af Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 22 May 1996 22:39:47 +0000 Subject: created posix test suite with test of header files --- testsuites/psxtests/psxhdrs/clock01.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/cond01.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/cond02.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/cond03.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/cond04.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/cond05.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/cond06.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/cond07.c | 26 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/key01.c | 30 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/key02.c | 28 ++++++++++++++++++++++ testsuites/psxtests/psxhdrs/key03.c | 26 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex01.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex02.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex03.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex04.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex05.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex06.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex07.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex08.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/mutex09.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread01.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread02.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread03.c | 28 ++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread04.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread05.c | 28 ++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread06.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread07.c | 34 ++++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread08.c | 23 ++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread09.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread10.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread11.c | 42 +++++++++++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread12.c | 32 +++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread13.c | 32 +++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread14.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread15.c | 32 +++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread16.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread17.c | 33 ++++++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread18.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread19.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread20.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/pthread21.c | 25 ++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal01.c | 27 +++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal02.c | 27 +++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal03.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/signal04.c | 27 +++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal05.c | 24 +++++++++++++++++++ testsuites/psxtests/psxhdrs/signal06.c | 28 ++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal07.c | 28 ++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal08.c | 30 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal09.c | 29 +++++++++++++++++++++++ testsuites/psxtests/psxhdrs/signal10.c | 25 ++++++++++++++++++++ 51 files changed, 1379 insertions(+) create mode 100644 testsuites/psxtests/psxhdrs/clock01.c create mode 100644 testsuites/psxtests/psxhdrs/cond01.c create mode 100644 testsuites/psxtests/psxhdrs/cond02.c create mode 100644 testsuites/psxtests/psxhdrs/cond03.c create mode 100644 testsuites/psxtests/psxhdrs/cond04.c create mode 100644 testsuites/psxtests/psxhdrs/cond05.c create mode 100644 testsuites/psxtests/psxhdrs/cond06.c create mode 100644 testsuites/psxtests/psxhdrs/cond07.c create mode 100644 testsuites/psxtests/psxhdrs/key01.c create mode 100644 testsuites/psxtests/psxhdrs/key02.c create mode 100644 testsuites/psxtests/psxhdrs/key03.c create mode 100644 testsuites/psxtests/psxhdrs/mutex01.c create mode 100644 testsuites/psxtests/psxhdrs/mutex02.c create mode 100644 testsuites/psxtests/psxhdrs/mutex03.c create mode 100644 testsuites/psxtests/psxhdrs/mutex04.c create mode 100644 testsuites/psxtests/psxhdrs/mutex05.c create mode 100644 testsuites/psxtests/psxhdrs/mutex06.c create mode 100644 testsuites/psxtests/psxhdrs/mutex07.c create mode 100644 testsuites/psxtests/psxhdrs/mutex08.c create mode 100644 testsuites/psxtests/psxhdrs/mutex09.c create mode 100644 testsuites/psxtests/psxhdrs/pthread01.c create mode 100644 testsuites/psxtests/psxhdrs/pthread02.c create mode 100644 testsuites/psxtests/psxhdrs/pthread03.c create mode 100644 testsuites/psxtests/psxhdrs/pthread04.c create mode 100644 testsuites/psxtests/psxhdrs/pthread05.c create mode 100644 testsuites/psxtests/psxhdrs/pthread06.c create mode 100644 testsuites/psxtests/psxhdrs/pthread07.c create mode 100644 testsuites/psxtests/psxhdrs/pthread08.c create mode 100644 testsuites/psxtests/psxhdrs/pthread09.c create mode 100644 testsuites/psxtests/psxhdrs/pthread10.c create mode 100644 testsuites/psxtests/psxhdrs/pthread11.c create mode 100644 testsuites/psxtests/psxhdrs/pthread12.c create mode 100644 testsuites/psxtests/psxhdrs/pthread13.c create mode 100644 testsuites/psxtests/psxhdrs/pthread14.c create mode 100644 testsuites/psxtests/psxhdrs/pthread15.c create mode 100644 testsuites/psxtests/psxhdrs/pthread16.c create mode 100644 testsuites/psxtests/psxhdrs/pthread17.c create mode 100644 testsuites/psxtests/psxhdrs/pthread18.c create mode 100644 testsuites/psxtests/psxhdrs/pthread19.c create mode 100644 testsuites/psxtests/psxhdrs/pthread20.c create mode 100644 testsuites/psxtests/psxhdrs/pthread21.c create mode 100644 testsuites/psxtests/psxhdrs/signal01.c create mode 100644 testsuites/psxtests/psxhdrs/signal02.c create mode 100644 testsuites/psxtests/psxhdrs/signal03.c create mode 100644 testsuites/psxtests/psxhdrs/signal04.c create mode 100644 testsuites/psxtests/psxhdrs/signal05.c create mode 100644 testsuites/psxtests/psxhdrs/signal06.c create mode 100644 testsuites/psxtests/psxhdrs/signal07.c create mode 100644 testsuites/psxtests/psxhdrs/signal08.c create mode 100644 testsuites/psxtests/psxhdrs/signal09.c create mode 100644 testsuites/psxtests/psxhdrs/signal10.c (limited to 'testsuites/psxtests/psxhdrs') diff --git a/testsuites/psxtests/psxhdrs/clock01.c b/testsuites/psxtests/psxhdrs/clock01.c new file mode 100644 index 0000000000..06a5d4f752 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/clock01.c @@ -0,0 +1,29 @@ +/* + * 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_TIMERS +#error "rtems is supposed to have clock_gettime" +#endif + +void test( void ) +{ + clockid_t clock_id = 0; + struct timespec tp; + int result; + + result = clock_gettime( clock_id, &tp ); +} diff --git a/testsuites/psxtests/psxhdrs/cond01.c b/testsuites/psxtests/psxhdrs/cond01.c new file mode 100644 index 0000000000..c6e83db5f2 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/cond01.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + int result; + pthread_condattr_t attribute; + + result = pthread_condattr_init( &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/cond02.c b/testsuites/psxtests/psxhdrs/cond02.c new file mode 100644 index 0000000000..89dd770d34 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/cond02.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + int result; + pthread_condattr_t attribute; + + result = pthread_condattr_destroy( &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/cond03.c b/testsuites/psxtests/psxhdrs/cond03.c new file mode 100644 index 0000000000..ea0f635f1a --- /dev/null +++ b/testsuites/psxtests/psxhdrs/cond03.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 ) +{ + pthread_cond_t cond = PTHREAD_COND_INITIALIZER; + pthread_condattr_t attribute; + int result; + + result = pthread_cond_init( &cond, &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/cond04.c b/testsuites/psxtests/psxhdrs/cond04.c new file mode 100644 index 0000000000..1261b5aab3 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/cond04.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + pthread_cond_t cond = PTHREAD_COND_INITIALIZER; + int result; + + result = pthread_cond_destroy( &cond ); +} diff --git a/testsuites/psxtests/psxhdrs/cond05.c b/testsuites/psxtests/psxhdrs/cond05.c new file mode 100644 index 0000000000..a4ab9fa007 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/cond05.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + pthread_cond_t cond = PTHREAD_COND_INITIALIZER; + int result; + + result = pthread_cond_signal( &cond ); +} diff --git a/testsuites/psxtests/psxhdrs/cond06.c b/testsuites/psxtests/psxhdrs/cond06.c new file mode 100644 index 0000000000..d92fe9e291 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/cond06.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 ) +{ + pthread_cond_t cond = PTHREAD_COND_INITIALIZER; + pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; + int result; + + result = pthread_cond_wait( &cond, &mutex ); +} diff --git a/testsuites/psxtests/psxhdrs/cond07.c b/testsuites/psxtests/psxhdrs/cond07.c new file mode 100644 index 0000000000..829c2065e0 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/cond07.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 ) +{ + pthread_cond_t cond = PTHREAD_COND_INITIALIZER; + pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; + struct timespec abstime; + int result; + + result = pthread_cond_timedwait( &cond, &mutex, &abstime ); +} diff --git a/testsuites/psxtests/psxhdrs/key01.c b/testsuites/psxtests/psxhdrs/key01.c new file mode 100644 index 0000000000..a91f756fe6 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/key01.c @@ -0,0 +1,30 @@ +/* + * 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 key_destructor( + void *argument +) +{ +} + +void test( void ) +{ + pthread_key_t key; + int result; + + result = pthread_key_create( &key, key_destructor ); +} diff --git a/testsuites/psxtests/psxhdrs/key02.c b/testsuites/psxtests/psxhdrs/key02.c new file mode 100644 index 0000000000..78d3ab0741 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/key02.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 ) +{ + pthread_key_t key; + int value; + int result; + + key = 0; + value = 0; + + result = pthread_setspecific( key, &value ); +} diff --git a/testsuites/psxtests/psxhdrs/key03.c b/testsuites/psxtests/psxhdrs/key03.c new file mode 100644 index 0000000000..f3d0c9bd38 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/key03.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 ) +{ + pthread_key_t key; + void *value; + + key = 0; + + value = pthread_getspecific( key ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex01.c b/testsuites/psxtests/psxhdrs/mutex01.c new file mode 100644 index 0000000000..5c8ab93797 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex01.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + int result; + pthread_mutexattr_t attribute; + + result = pthread_mutexattr_init( &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex02.c b/testsuites/psxtests/psxhdrs/mutex02.c new file mode 100644 index 0000000000..91a6adcc03 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex02.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + int result; + pthread_mutexattr_t attribute; + + result = pthread_mutexattr_destroy( &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex03.c b/testsuites/psxtests/psxhdrs/mutex03.c new file mode 100644 index 0000000000..01950381cb --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex03.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 ) +{ + pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; + pthread_mutexattr_t attribute; + int result; + + result = pthread_mutex_init( &mutex, &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex04.c b/testsuites/psxtests/psxhdrs/mutex04.c new file mode 100644 index 0000000000..2a7c17e4d4 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex04.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; + int result; + + result = pthread_mutex_destroy( &mutex ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex05.c b/testsuites/psxtests/psxhdrs/mutex05.c new file mode 100644 index 0000000000..afb1111a19 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex05.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; + int result; + + result = pthread_mutex_lock( &mutex ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex06.c b/testsuites/psxtests/psxhdrs/mutex06.c new file mode 100644 index 0000000000..a21659445a --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex06.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; + int result; + + result = pthread_mutex_unlock( &mutex ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex07.c b/testsuites/psxtests/psxhdrs/mutex07.c new file mode 100644 index 0000000000..3c372d52e6 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex07.c @@ -0,0 +1,29 @@ +/* + * 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 ) +{ + pthread_mutexattr_t attribute; + int protocol; + int result; + + protocol = PTHREAD_PRIO_NONE; + protocol = PTHREAD_PRIO_INHERIT; + protocol = PTHREAD_PRIO_PROTECT; + + result = pthread_mutexattr_setprotocol( &attribute, protocol ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex08.c b/testsuites/psxtests/psxhdrs/mutex08.c new file mode 100644 index 0000000000..b831085c30 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex08.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 ) +{ + pthread_mutexattr_t attribute; + int prioceiling = 0; + int result; + + result = pthread_mutexattr_getprioceiling( &attribute, &prioceiling ); +} diff --git a/testsuites/psxtests/psxhdrs/mutex09.c b/testsuites/psxtests/psxhdrs/mutex09.c new file mode 100644 index 0000000000..32861dbef7 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mutex09.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 ) +{ + pthread_mutexattr_t attribute; + int prioceiling = 0; + int result; + + result = pthread_mutexattr_setprioceiling( &attribute, prioceiling ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread01.c b/testsuites/psxtests/psxhdrs/pthread01.c new file mode 100644 index 0000000000..d98cc5ae49 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread01.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + int result; + pthread_attr_t attribute; + + result = pthread_attr_init( &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread02.c b/testsuites/psxtests/psxhdrs/pthread02.c new file mode 100644 index 0000000000..8d2728b28c --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread02.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + int result; + pthread_attr_t attribute; + + result = pthread_attr_destroy( &attribute ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread03.c b/testsuites/psxtests/psxhdrs/pthread03.c new file mode 100644 index 0000000000..8a557c6f07 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread03.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 ) +{ + int result; + pthread_attr_t attribute; + int state; + + state = PTHREAD_CREATE_DETACHED; + state = PTHREAD_CREATE_JOINABLE; + + result = pthread_attr_setdetachstate( &attribute, state ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread04.c b/testsuites/psxtests/psxhdrs/pthread04.c new file mode 100644 index 0000000000..a286e47252 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread04.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 ) +{ + int result; + pthread_attr_t attribute; + int state; + + result = pthread_attr_getdetachstate( &attribute, &state ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread05.c b/testsuites/psxtests/psxhdrs/pthread05.c new file mode 100644 index 0000000000..f4fcd56bb2 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread05.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 +#include /* only for PTHREAD_STACK_MIN */ + +void test( void ) +{ + int result; + pthread_attr_t attribute; + size_t size; + + size = PTHREAD_STACK_MIN; + + result = pthread_attr_setstacksize( &attribute, size ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread06.c b/testsuites/psxtests/psxhdrs/pthread06.c new file mode 100644 index 0000000000..3ea6292837 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread06.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 ) +{ + int result; + pthread_attr_t attribute; + size_t size; + + result = pthread_attr_getstacksize( &attribute, &size ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread07.c b/testsuites/psxtests/psxhdrs/pthread07.c new file mode 100644 index 0000000000..b15627ad2b --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread07.c @@ -0,0 +1,34 @@ +/* + * 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_task( + void * arg +) +{ + for ( ; ; ) + ; +} + +void test( void ) +{ + pthread_t thread; + pthread_attr_t attribute; + void *arg = NULL; + int result; + + result = pthread_create( &thread, &attribute, test_task, arg ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread08.c b/testsuites/psxtests/psxhdrs/pthread08.c new file mode 100644 index 0000000000..2b3492e314 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread08.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 ) +{ + void *status = NULL; + + pthread_exit( status ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread09.c b/testsuites/psxtests/psxhdrs/pthread09.c new file mode 100644 index 0000000000..2679cc7f7d --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread09.c @@ -0,0 +1,24 @@ +/* + * 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 ) +{ + pthread_t self; + + self = pthread_self(); +} diff --git a/testsuites/psxtests/psxhdrs/pthread10.c b/testsuites/psxtests/psxhdrs/pthread10.c new file mode 100644 index 0000000000..97d86ae278 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread10.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 ) +{ + pthread_t id_1 = 0; + pthread_t id_2 = 0; + int status; + + status = pthread_equal( id_1, id_2 ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread11.c b/testsuites/psxtests/psxhdrs/pthread11.c new file mode 100644 index 0000000000..20bc83310a --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread11.c @@ -0,0 +1,42 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_setschedparam" +#endif + +void test( void ) +{ + pthread_t thread; + int policy; + struct sched_param param; + int status; + + thread = 0; + + policy = SCHED_OTHER; + policy = SCHED_FIFO; + policy = SCHED_RR; + + /* + * really should use sched_get_priority_min() and sched_get_priority_max() + */ + + param.sched_priority = 0; + + status = pthread_setschedparam( thread, policy, ¶m ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread12.c b/testsuites/psxtests/psxhdrs/pthread12.c new file mode 100644 index 0000000000..c22d275ece --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread12.c @@ -0,0 +1,32 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_getschedparam" +#endif + +void test( void ) +{ + pthread_t thread; + int policy; + struct sched_param param; + int status; + + thread = 0; + + status = pthread_getschedparam( thread, &policy, ¶m ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread13.c b/testsuites/psxtests/psxhdrs/pthread13.c new file mode 100644 index 0000000000..94433203ef --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread13.c @@ -0,0 +1,32 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_setscope" +#endif + +void test( void ) +{ + pthread_attr_t attr; + int contentsionscope; + int status; + + contentsionscope = PTHREAD_SCOPE_SYSTEM; + contentsionscope = PTHREAD_SCOPE_PROCESS; + + status = pthread_attr_setscope( &attr, contentsionscope ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread14.c b/testsuites/psxtests/psxhdrs/pthread14.c new file mode 100644 index 0000000000..b24d5a457b --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread14.c @@ -0,0 +1,29 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_getscope" +#endif + +void test( void ) +{ + pthread_attr_t attr; + int contentionscope; + int status; + + status = pthread_attr_getscope( &attr, &contentionscope ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread15.c b/testsuites/psxtests/psxhdrs/pthread15.c new file mode 100644 index 0000000000..2ae68f79c6 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread15.c @@ -0,0 +1,32 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_setinheritsched" +#endif + +void test( void ) +{ + pthread_attr_t attr; + int inheritsched; + int status; + + inheritsched = PTHREAD_INHERIT_SCHED; + inheritsched = PTHREAD_EXPLICIT_SCHED; + + status = pthread_attr_setinheritsched( &attr, inheritsched ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread16.c b/testsuites/psxtests/psxhdrs/pthread16.c new file mode 100644 index 0000000000..ae60a6cc7a --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread16.c @@ -0,0 +1,29 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_getinheritsched" +#endif + +void test( void ) +{ + pthread_attr_t attr; + int inheritsched; + int status; + + status = pthread_attr_getinheritsched( &attr, &inheritsched ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread17.c b/testsuites/psxtests/psxhdrs/pthread17.c new file mode 100644 index 0000000000..7928ffc3ae --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread17.c @@ -0,0 +1,33 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_setschedpolicy" +#endif + +void test( void ) +{ + pthread_attr_t attr; + int policy; + int status; + + policy = SCHED_FIFO; + policy = SCHED_RR; + policy = SCHED_OTHER; + + status = pthread_attr_setschedpolicy( &attr, policy ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread18.c b/testsuites/psxtests/psxhdrs/pthread18.c new file mode 100644 index 0000000000..c5862903d5 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread18.c @@ -0,0 +1,29 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_getschedpolicy" +#endif + +void test( void ) +{ + pthread_attr_t attr; + int policy; + int status; + + status = pthread_attr_getschedpolicy( &attr, &policy ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread19.c b/testsuites/psxtests/psxhdrs/pthread19.c new file mode 100644 index 0000000000..87e3b609ec --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread19.c @@ -0,0 +1,29 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_setschedparam" +#endif + +void test( void ) +{ + pthread_attr_t attr; + struct sched_param param; + int status; + + status = pthread_attr_setschedparam( &attr, ¶m ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread20.c b/testsuites/psxtests/psxhdrs/pthread20.c new file mode 100644 index 0000000000..5f3e1771cf --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread20.c @@ -0,0 +1,29 @@ +/* + * 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_THREAD_PRIORITY_SCHEDULING +#error "RTEMS is support to have pthread_attr_getschedparam" +#endif + +void test( void ) +{ + pthread_attr_t attr; + struct sched_param param; + int status; + + status = pthread_attr_getschedparam( &attr, ¶m ); +} diff --git a/testsuites/psxtests/psxhdrs/pthread21.c b/testsuites/psxtests/psxhdrs/pthread21.c new file mode 100644 index 0000000000..53cec0ca73 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/pthread21.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 ) +{ + pthread_t thread; + int status; + + thread = 0; + status = pthread_detach( thread ); +} diff --git a/testsuites/psxtests/psxhdrs/signal01.c b/testsuites/psxtests/psxhdrs/signal01.c new file mode 100644 index 0000000000..4388586745 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal01.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 signal_set; + int signal_number; + int result; + + signal_number = SIGALRM; + + result = sigaddset( &signal_set, signal_number ); +} diff --git a/testsuites/psxtests/psxhdrs/signal02.c b/testsuites/psxtests/psxhdrs/signal02.c new file mode 100644 index 0000000000..08f36d7fde --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal02.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 signal_set; + int signal_number; + int result; + + signal_number = SIGALRM; + + result = sigdelset( &signal_set, signal_number ); +} diff --git a/testsuites/psxtests/psxhdrs/signal03.c b/testsuites/psxtests/psxhdrs/signal03.c new file mode 100644 index 0000000000..c4a96103c6 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal03.c @@ -0,0 +1,24 @@ +/* + * 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 signal_set; + int result; + + result = sigfillset( &signal_set ); +} diff --git a/testsuites/psxtests/psxhdrs/signal04.c b/testsuites/psxtests/psxhdrs/signal04.c new file mode 100644 index 0000000000..81c9327564 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal04.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 signal_set; + int signal_number; + int result; + + signal_number = SIGALRM; + + result = sigismember( &signal_set, signal_number ); +} diff --git a/testsuites/psxtests/psxhdrs/signal05.c b/testsuites/psxtests/psxhdrs/signal05.c new file mode 100644 index 0000000000..92714a3931 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal05.c @@ -0,0 +1,24 @@ +/* + * 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 signal_set; + int result; + + result = sigemptyset( &signal_set ); +} diff --git a/testsuites/psxtests/psxhdrs/signal06.c b/testsuites/psxtests/psxhdrs/signal06.c new file mode 100644 index 0000000000..ea02a2bdd1 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal06.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 ) +{ + int signal_number; + struct sigaction act; + struct sigaction oact; + int result; + + signal_number = SIGALRM; + + result = sigaction( signal_number, &act, &oact ); +} diff --git a/testsuites/psxtests/psxhdrs/signal07.c b/testsuites/psxtests/psxhdrs/signal07.c new file mode 100644 index 0000000000..cc7a103a33 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal07.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 ) +{ + pthread_t thread; + int signal_number; + int result; + + thread = 0; + signal_number = SIGALRM; + + result = pthread_kill( thread, signal_number ); +} diff --git a/testsuites/psxtests/psxhdrs/signal08.c b/testsuites/psxtests/psxhdrs/signal08.c new file mode 100644 index 0000000000..5d9f48515d --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal08.c @@ -0,0 +1,30 @@ +/* + * 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 ) +{ + int how; + sigset_t set; + sigset_t oset; + int result; + + how = SIG_BLOCK; + how = SIG_UNBLOCK; + how = SIG_SETMASK; + + result = pthread_sigmask( how, &set, &oset ); +} diff --git a/testsuites/psxtests/psxhdrs/signal09.c b/testsuites/psxtests/psxhdrs/signal09.c new file mode 100644 index 0000000000..2cfb052dff --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal09.c @@ -0,0 +1,29 @@ +/* + * 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 + +void test( void ) +{ + pid_t pid; + int signal_number; + int result; + + pid = 0; + signal_number = SIGALRM; + + result = kill( pid, signal_number ); +} diff --git a/testsuites/psxtests/psxhdrs/signal10.c b/testsuites/psxtests/psxhdrs/signal10.c new file mode 100644 index 0000000000..41aad46fc7 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/signal10.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 ) +{ + sigset_t set; + int sig; + int result; + + result = sigwait( &set, &sig ); +} -- cgit v1.2.3