diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs')
135 files changed, 0 insertions, 4025 deletions
diff --git a/testsuites/psxtests/psxhdrs/clock01.c b/testsuites/psxtests/psxhdrs/clock01.c deleted file mode 100644 index 06a5d4f752..0000000000 --- a/testsuites/psxtests/psxhdrs/clock01.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <time.h> - -#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/clock02.c b/testsuites/psxtests/psxhdrs/clock02.c deleted file mode 100644 index 996b4324ef..0000000000 --- a/testsuites/psxtests/psxhdrs/clock02.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have clock_settime" -#endif - -void test( void ) -{ - clockid_t clock_id = 0; - struct timespec tp; - int result; - - result = clock_settime( clock_id, &tp ); -} diff --git a/testsuites/psxtests/psxhdrs/clock03.c b/testsuites/psxtests/psxhdrs/clock03.c deleted file mode 100644 index 165cc06c67..0000000000 --- a/testsuites/psxtests/psxhdrs/clock03.c +++ /dev/null @@ -1,30 +0,0 @@ - -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have clock_getres" -#endif - -void test( void ) -{ - clockid_t clock_id = 0; - struct timespec res; - int result; - - result = clock_getres( clock_id, &res ); -} diff --git a/testsuites/psxtests/psxhdrs/clock04.c b/testsuites/psxtests/psxhdrs/clock04.c deleted file mode 100644 index 70d25cdcea..0000000000 --- a/testsuites/psxtests/psxhdrs/clock04.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_CPUTIME -#error "rtems is supposed to have clock_getcpuclockid" -#endif - -void test( void ) -{ - pid_t pid = 0; - clockid_t clock_id; - int result; - - result = clock_getcpuclockid( pid, &clock_id ); -} diff --git a/testsuites/psxtests/psxhdrs/clock05.c b/testsuites/psxtests/psxhdrs/clock05.c deleted file mode 100644 index 3b405d3907..0000000000 --- a/testsuites/psxtests/psxhdrs/clock05.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_CPUTIME -#error "rtems is supposed to have clock_setenable_attr" -#endif -#ifndef _POSIX_THREAD_CPUTIME -#error "rtems is supposed to have clock_setenable_attr" -#endif - -void test( void ) -{ - clockid_t clock_id = 0; - int attr; - int result; - - attr = CLOCK_ENABLED; - attr = CLOCK_DISABLED; - - result = clock_setenable_attr( clock_id, attr ); -} diff --git a/testsuites/psxtests/psxhdrs/clock06.c b/testsuites/psxtests/psxhdrs/clock06.c deleted file mode 100644 index 2b2f587332..0000000000 --- a/testsuites/psxtests/psxhdrs/clock06.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_CPUTIME -#error "rtems is supposed to have clock_getenable_attr" -#endif -#ifndef _POSIX_THREAD_CPUTIME -#error "rtems is supposed to have clock_getenable_attr" -#endif - -void test( void ) -{ - clockid_t clock_id = 0; - int attr; - int result; - - result = clock_getenable_attr( clock_id, &attr ); -} diff --git a/testsuites/psxtests/psxhdrs/cond01.c b/testsuites/psxtests/psxhdrs/cond01.c deleted file mode 100644 index 1d19c90b29..0000000000 --- a/testsuites/psxtests/psxhdrs/cond01.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_condattr_init" -#endif - -void test( void ) -{ - pthread_condattr_t attribute; - int result; - - result = pthread_condattr_init( &attribute ); -} diff --git a/testsuites/psxtests/psxhdrs/cond02.c b/testsuites/psxtests/psxhdrs/cond02.c deleted file mode 100644 index 9faadc033e..0000000000 --- a/testsuites/psxtests/psxhdrs/cond02.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_condattr_destroy" -#endif - -void test( void ) -{ - pthread_condattr_t attribute; - int result; - - result = pthread_condattr_destroy( &attribute ); -} diff --git a/testsuites/psxtests/psxhdrs/cond03.c b/testsuites/psxtests/psxhdrs/cond03.c deleted file mode 100644 index 01f393f160..0000000000 --- a/testsuites/psxtests/psxhdrs/cond03.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cond_init" -#endif - -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 deleted file mode 100644 index d02ae7b54a..0000000000 --- a/testsuites/psxtests/psxhdrs/cond04.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cond_destroy" -#endif - -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 deleted file mode 100644 index 86eb9a1cd1..0000000000 --- a/testsuites/psxtests/psxhdrs/cond05.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cond_signal" -#endif - -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 deleted file mode 100644 index 893ed45ba2..0000000000 --- a/testsuites/psxtests/psxhdrs/cond06.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cond_wait" -#endif - -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 deleted file mode 100644 index 358645882a..0000000000 --- a/testsuites/psxtests/psxhdrs/cond07.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cond_timedwait" -#endif - -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/cond08.c b/testsuites/psxtests/psxhdrs/cond08.c deleted file mode 100644 index 9a46ab0862..0000000000 --- a/testsuites/psxtests/psxhdrs/cond08.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_condattr_getpshared" -#endif -#ifndef _POSIX_THREAD_PROCESS_SHARED -#error "rtems is supposed to have pthread_condattr_setpshared" -#endif - -void test( void ) -{ - pthread_condattr_t attribute; - int pshared; - int result; - - result = pthread_condattr_getpshared( &attribute, &pshared ); -} diff --git a/testsuites/psxtests/psxhdrs/cond09.c b/testsuites/psxtests/psxhdrs/cond09.c deleted file mode 100644 index 4440df2c8c..0000000000 --- a/testsuites/psxtests/psxhdrs/cond09.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_condattr_setpshared" -#endif -#ifndef _POSIX_THREAD_PROCESS_SHARED -#error "rtems is supposed to have pthread_condattr_setpshared" -#endif - -void test( void ) -{ - pthread_condattr_t attribute; - int pshared; - int result; - - pshared = PTHREAD_PROCESS_SHARED; - pshared = PTHREAD_PROCESS_PRIVATE; - - result = pthread_condattr_setpshared( &attribute, pshared ); -} diff --git a/testsuites/psxtests/psxhdrs/cond10.c b/testsuites/psxtests/psxhdrs/cond10.c deleted file mode 100644 index e5e504ac82..0000000000 --- a/testsuites/psxtests/psxhdrs/cond10.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cond_broadcast" -#endif - -void test( void ) -{ - pthread_cond_t cond = PTHREAD_COND_INITIALIZER; - int result; - - result = pthread_cond_broadcast( &cond ); -} diff --git a/testsuites/psxtests/psxhdrs/key01.c b/testsuites/psxtests/psxhdrs/key01.c deleted file mode 100644 index e5b7f226c1..0000000000 --- a/testsuites/psxtests/psxhdrs/key01.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_key_create" -#endif - -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 deleted file mode 100644 index 7c5c7ac240..0000000000 --- a/testsuites/psxtests/psxhdrs/key02.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_setspecific" -#endif - -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 deleted file mode 100644 index a105a8135e..0000000000 --- a/testsuites/psxtests/psxhdrs/key03.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_getspecific" -#endif - -void test( void ) -{ - pthread_key_t key; - void *value; - - key = 0; - - value = pthread_getspecific( key ); -} diff --git a/testsuites/psxtests/psxhdrs/key04.c b/testsuites/psxtests/psxhdrs/key04.c deleted file mode 100644 index e5b1ddaf6c..0000000000 --- a/testsuites/psxtests/psxhdrs/key04.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_key_delete" -#endif - -void test( void ) -{ - pthread_key_t key = 0; - int result; - - result = pthread_key_delete( key ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex01.c b/testsuites/psxtests/psxhdrs/mutex01.c deleted file mode 100644 index 903de2066d..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex01.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutexattr_init" -#endif - -void test( void ) -{ - pthread_mutexattr_t attribute; - int result; - - result = pthread_mutexattr_init( &attribute ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex02.c b/testsuites/psxtests/psxhdrs/mutex02.c deleted file mode 100644 index feab14c187..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex02.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutexattr_destroy" -#endif - -void test( void ) -{ - pthread_mutexattr_t attribute; - int result; - - result = pthread_mutexattr_destroy( &attribute ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex03.c b/testsuites/psxtests/psxhdrs/mutex03.c deleted file mode 100644 index 6ca68ea73f..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex03.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutex_init" -#endif - -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 deleted file mode 100644 index b0ef6c53a6..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex04.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutex_destroy" -#endif - -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 deleted file mode 100644 index 9a02accc97..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex05.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutex_lock" -#endif - -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 deleted file mode 100644 index fab42b1b2b..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex06.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutex_unlock" -#endif - -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 deleted file mode 100644 index c471f921b5..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex07.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIO_INHERIT -#error "rtems is supposed to have pthread_mutexattr_setprotocol" -#endif -#ifndef _POSIX_THREAD_PRIO_PROTECT -#error "rtems is supposed to have pthread_mutexattr_setprotocol" -#endif - -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 deleted file mode 100644 index ecea0c0fc0..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex08.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIO_INHERIT -#error "rtems is supposed to have pthread_mutexattr_getprioceiling" -#endif -#ifndef _POSIX_THREAD_PRIO_PROTECT -#error "rtems is supposed to have pthread_mutexattr_getprioceiling" -#endif - -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 deleted file mode 100644 index cf5d8403a7..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex09.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIO_INHERIT -#error "rtems is supposed to have pthread_mutexattr_setprioceiling" -#endif -#ifndef _POSIX_THREAD_PRIO_PROTECT -#error "rtems is supposed to have pthread_mutexattr_setprioceiling" -#endif - -void test( void ) -{ - pthread_mutexattr_t attribute; - int prioceiling = 0; - int result; - - result = pthread_mutexattr_setprioceiling( &attribute, prioceiling ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex10.c b/testsuites/psxtests/psxhdrs/mutex10.c deleted file mode 100644 index 3433f6bf25..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex10.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutexattr_getpshared" -#endif -#ifndef _POSIX_THREAD_PROCESS_SHARED -#error "rtems is supposed to have pthread_mutexattr_setpshared" -#endif - -void test( void ) -{ - pthread_mutexattr_t attribute; - int pshared; - int result; - - result = pthread_mutexattr_getpshared( &attribute, &pshared ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex11.c b/testsuites/psxtests/psxhdrs/mutex11.c deleted file mode 100644 index 38e4e6986c..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex11.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutexattr_setpshared" -#endif -#ifndef _POSIX_THREAD_PROCESS_SHARED -#error "rtems is supposed to have pthread_mutexattr_setpshared" -#endif - -void test( void ) -{ - pthread_mutexattr_t attribute; - int pshared; - int result; - - pshared = PTHREAD_PROCESS_SHARED; - pshared = PTHREAD_PROCESS_PRIVATE; - - result = pthread_mutexattr_setpshared( &attribute, pshared ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex12.c b/testsuites/psxtests/psxhdrs/mutex12.c deleted file mode 100644 index d8f6ac2231..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex12.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutex_trylock" -#endif - -void test( void ) -{ - pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; - int result; - - result = pthread_mutex_trylock( &mutex ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex13.c b/testsuites/psxtests/psxhdrs/mutex13.c deleted file mode 100644 index 12313ef280..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex13.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_mutex_timedlock" -#endif -#ifndef _POSIX_TIMEOUTS -#error "rtems is supposed to have pthread_mutex_timedlock" -#endif - -void test( void ) -{ - pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; - struct timespec timeout; - int result; - - result = pthread_mutex_timedlock( &mutex, &timeout ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex14.c b/testsuites/psxtests/psxhdrs/mutex14.c deleted file mode 100644 index abab10965a..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex14.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIO_INHERIT -#error "rtems is supposed to have pthread_mutexattr_getprotocol" -#endif -#ifndef _POSIX_THREAD_PRIO_PROTECT -#error "rtems is supposed to have pthread_mutexattr_getprotocol" -#endif - -void test( void ) -{ - pthread_mutexattr_t attribute; - int protocol; - int result; - - result = pthread_mutexattr_getprotocol( &attribute, &protocol ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex15.c b/testsuites/psxtests/psxhdrs/mutex15.c deleted file mode 100644 index 1e57d8ec7e..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex15.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIO_INHERIT -#error "rtems is supposed to have pthread_mutex_getprioceiling" -#endif -#ifndef _POSIX_THREAD_PRIO_PROTECT -#error "rtems is supposed to have pthread_mutex_getprioceiling" -#endif - -void test( void ) -{ - pthread_mutex_t mutex; - int prioceiling; - int result; - - result = pthread_mutex_getprioceiling( &mutex, &prioceiling ); -} diff --git a/testsuites/psxtests/psxhdrs/mutex16.c b/testsuites/psxtests/psxhdrs/mutex16.c deleted file mode 100644 index 684f177d4b..0000000000 --- a/testsuites/psxtests/psxhdrs/mutex16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIO_INHERIT -#error "rtems is supposed to have pthread_mutex_setprioceiling" -#endif -#ifndef _POSIX_THREAD_PRIO_PROTECT -#error "rtems is supposed to have pthread_mutex_setprioceiling" -#endif - -void test( void ) -{ - pthread_mutex_t mutex; - int prioceiling; - int oldceiling; - int result; - - prioceiling = 0; - - result = pthread_mutex_setprioceiling( &mutex, prioceiling, &oldceiling ); -} diff --git a/testsuites/psxtests/psxhdrs/proc01.c b/testsuites/psxtests/psxhdrs/proc01.c deleted file mode 100644 index 6a51a067a3..0000000000 --- a/testsuites/psxtests/psxhdrs/proc01.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc02.c b/testsuites/psxtests/psxhdrs/proc02.c deleted file mode 100644 index 3a313b5043..0000000000 --- a/testsuites/psxtests/psxhdrs/proc02.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc03.c b/testsuites/psxtests/psxhdrs/proc03.c deleted file mode 100644 index 8cfea312a2..0000000000 --- a/testsuites/psxtests/psxhdrs/proc03.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc04.c b/testsuites/psxtests/psxhdrs/proc04.c deleted file mode 100644 index 004e6bb5b4..0000000000 --- a/testsuites/psxtests/psxhdrs/proc04.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc05.c b/testsuites/psxtests/psxhdrs/proc05.c deleted file mode 100644 index 35f3b633fc..0000000000 --- a/testsuites/psxtests/psxhdrs/proc05.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc06.c b/testsuites/psxtests/psxhdrs/proc06.c deleted file mode 100644 index da594c25b7..0000000000 --- a/testsuites/psxtests/psxhdrs/proc06.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc07.c b/testsuites/psxtests/psxhdrs/proc07.c deleted file mode 100644 index dd045f9b7e..0000000000 --- a/testsuites/psxtests/psxhdrs/proc07.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 ); -} diff --git a/testsuites/psxtests/psxhdrs/proc08.c b/testsuites/psxtests/psxhdrs/proc08.c deleted file mode 100644 index 4862ea5936..0000000000 --- a/testsuites/psxtests/psxhdrs/proc08.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 ); -} diff --git a/testsuites/psxtests/psxhdrs/proc09.c b/testsuites/psxtests/psxhdrs/proc09.c deleted file mode 100644 index 8b79767a51..0000000000 --- a/testsuites/psxtests/psxhdrs/proc09.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 ); -} diff --git a/testsuites/psxtests/psxhdrs/proc10.c b/testsuites/psxtests/psxhdrs/proc10.c deleted file mode 100644 index d5de7b8941..0000000000 --- a/testsuites/psxtests/psxhdrs/proc10.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc11.c b/testsuites/psxtests/psxhdrs/proc11.c deleted file mode 100644 index 6bb9765c5e..0000000000 --- a/testsuites/psxtests/psxhdrs/proc11.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 ); -} diff --git a/testsuites/psxtests/psxhdrs/proc12.c b/testsuites/psxtests/psxhdrs/proc12.c deleted file mode 100644 index 4184f298db..0000000000 --- a/testsuites/psxtests/psxhdrs/proc12.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc13.c b/testsuites/psxtests/psxhdrs/proc13.c deleted file mode 100644 index 10b85bfc2d..0000000000 --- a/testsuites/psxtests/psxhdrs/proc13.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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(); -} diff --git a/testsuites/psxtests/psxhdrs/proc14.c b/testsuites/psxtests/psxhdrs/proc14.c deleted file mode 100644 index 3c6478da92..0000000000 --- a/testsuites/psxtests/psxhdrs/proc14.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread01.c b/testsuites/psxtests/psxhdrs/pthread01.c deleted file mode 100644 index b8507416b4..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread01.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_attr_init" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - int result; - - result = pthread_attr_init( &attribute ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread02.c b/testsuites/psxtests/psxhdrs/pthread02.c deleted file mode 100644 index 52dbc3e99a..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread02.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_attr_destroy" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - int result; - - result = pthread_attr_destroy( &attribute ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread03.c b/testsuites/psxtests/psxhdrs/pthread03.c deleted file mode 100644 index d5ec98b8e1..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread03.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_attr_setdetachstate" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - int state; - int result; - - 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 deleted file mode 100644 index 7ae9f7f630..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread04.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_attr_getdetachstate" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - int state; - int result; - - result = pthread_attr_getdetachstate( &attribute, &state ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread05.c b/testsuites/psxtests/psxhdrs/pthread05.c deleted file mode 100644 index bb36065d0c..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread05.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 <pthread.h> -#include <limits.h> /* only for PTHREAD_STACK_MIN */ - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_setstacksize" -#endif - -#ifndef _POSIX_THREAD_ATTR_STACKSIZE -#error "rtems is supposed to have pthread_setstacksize" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - size_t size; - int result; - - size = PTHREAD_STACK_MIN; - - result = pthread_attr_setstacksize( &attribute, size ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread06.c b/testsuites/psxtests/psxhdrs/pthread06.c deleted file mode 100644 index 3bb0ed98ed..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread06.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_getstacksize" -#endif - -#ifndef _POSIX_THREAD_ATTR_STACKSIZE -#error "rtems is supposed to have pthread_getstacksize" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - size_t size; - int result; - - result = pthread_attr_getstacksize( &attribute, &size ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread07.c b/testsuites/psxtests/psxhdrs/pthread07.c deleted file mode 100644 index 07709980f1..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread07.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_create" -#endif - -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 deleted file mode 100644 index e843a234d6..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread08.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_exit" -#endif - -void test( void ) -{ - void *status = NULL; - - pthread_exit( status ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread09.c b/testsuites/psxtests/psxhdrs/pthread09.c deleted file mode 100644 index 2674ea9087..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread09.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_self" -#endif - -void test( void ) -{ - pthread_t self; - - self = pthread_self(); -} diff --git a/testsuites/psxtests/psxhdrs/pthread10.c b/testsuites/psxtests/psxhdrs/pthread10.c deleted file mode 100644 index 88ab2a9eae..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread10.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_equal" -#endif - -void test( void ) -{ - pthread_t id_1 = 0; - pthread_t id_2 = 0; - int result; - - result = pthread_equal( id_1, id_2 ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread11.c b/testsuites/psxtests/psxhdrs/pthread11.c deleted file mode 100644 index f8afb36a02..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread11.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_setschedparam" -#endif - -void test( void ) -{ - pthread_t thread; - int policy; - struct sched_param param; - int result; - - thread = 0; - - policy = SCHED_OTHER; - policy = SCHED_FIFO; - policy = SCHED_RR; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - /* - * really should use sched_get_priority_min() and sched_get_priority_max() - */ - - param.sched_priority = 0; -#ifdef _POSIX_SPORADIC_SERVER - param.ss_low_priority = 0; - param.ss_replenish_period.tv_sec = 0; - param.ss_replenish_period.tv_nsec = 0; - param.ss_initial_budget.tv_sec = 0; - param.ss_initial_budget.tv_nsec = 0; -#endif - - result = pthread_setschedparam( thread, policy, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread12.c b/testsuites/psxtests/psxhdrs/pthread12.c deleted file mode 100644 index 072d23a92c..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread12.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_getschedparam" -#endif - -void test( void ) -{ - pthread_t thread; - int policy; - struct sched_param param; - int result; - - thread = 0; - - result = pthread_getschedparam( thread, &policy, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread13.c b/testsuites/psxtests/psxhdrs/pthread13.c deleted file mode 100644 index 4d340a92f0..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread13.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setscope" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int contentionscope; - int result; - - contentionscope = PTHREAD_SCOPE_SYSTEM; - contentionscope = PTHREAD_SCOPE_PROCESS; - - result = pthread_attr_setscope( &attr, contentionscope ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread14.c b/testsuites/psxtests/psxhdrs/pthread14.c deleted file mode 100644 index 29ae27d98b..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread14.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getscope" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int contentionscope; - int result; - - result = pthread_attr_getscope( &attr, &contentionscope ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread15.c b/testsuites/psxtests/psxhdrs/pthread15.c deleted file mode 100644 index a3f0026514..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread15.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setinheritsched" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int inheritsched; - int result; - - inheritsched = PTHREAD_INHERIT_SCHED; - inheritsched = PTHREAD_EXPLICIT_SCHED; - - result = pthread_attr_setinheritsched( &attr, inheritsched ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread16.c b/testsuites/psxtests/psxhdrs/pthread16.c deleted file mode 100644 index 5919d7939f..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread16.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getinheritsched" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int inheritsched; - int result; - - result = pthread_attr_getinheritsched( &attr, &inheritsched ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread17.c b/testsuites/psxtests/psxhdrs/pthread17.c deleted file mode 100644 index 70d894c18f..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread17.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setschedpolicy" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int policy; - int result; - - policy = SCHED_FIFO; - policy = SCHED_RR; - policy = SCHED_OTHER; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - result = pthread_attr_setschedpolicy( &attr, policy ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread18.c b/testsuites/psxtests/psxhdrs/pthread18.c deleted file mode 100644 index b4925a76e5..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread18.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getschedpolicy" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int policy; - int result; - - result = pthread_attr_getschedpolicy( &attr, &policy ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread19.c b/testsuites/psxtests/psxhdrs/pthread19.c deleted file mode 100644 index cf5516b3d4..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread19.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setschedparam" -#endif - -void test( void ) -{ - pthread_attr_t attr; - struct sched_param param; - int result; - - result = pthread_attr_setschedparam( &attr, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread20.c b/testsuites/psxtests/psxhdrs/pthread20.c deleted file mode 100644 index f535897693..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread20.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getschedparam" -#endif - -void test( void ) -{ - pthread_attr_t attr; - struct sched_param param; - int result; - - result = pthread_attr_getschedparam( &attr, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread21.c b/testsuites/psxtests/psxhdrs/pthread21.c deleted file mode 100644 index 6b4bff7983..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread21.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_detach" -#endif - -void test( void ) -{ - pthread_t thread; - int result; - - thread = 0; - result = pthread_detach( thread ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread22.c b/testsuites/psxtests/psxhdrs/pthread22.c deleted file mode 100644 index fb414ff433..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread22.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_setschedparam" -#endif - -void test( void ) -{ - pthread_t thread = 0; - int policy; - struct sched_param param; - int result; - - policy = SCHED_OTHER; - policy = SCHED_FIFO; - policy = SCHED_RR; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - /* - * really should use sched_get_priority_min() and sched_get_priority_max() - */ - - param.sched_priority = 0; -#ifdef _POSIX_SPORADIC_SERVER - param.ss_low_priority = 0; - param.ss_replenish_period.tv_sec = 0; - param.ss_replenish_period.tv_nsec = 0; - param.ss_initial_budget.tv_sec = 0; - param.ss_initial_budget.tv_nsec = 0; -#endif - - result = pthread_setschedparam( thread, policy, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread23.c b/testsuites/psxtests/psxhdrs/pthread23.c deleted file mode 100644 index c8751c883e..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread23.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_getschedparam" -#endif - -void test( void ) -{ - pthread_t thread = 0; - int policy; - struct sched_param param; - int result; - - result = pthread_getschedparam( thread, &policy, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread24.c b/testsuites/psxtests/psxhdrs/pthread24.c deleted file mode 100644 index 3228eb665b..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread24.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 <pthread.h> -#include <limits.h> /* only for PTHREAD_STACK_MIN */ - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_setstackaddr" -#endif - -#ifndef _POSIX_THREAD_ATTR_STACKADDR -#error "rtems is supposed to have pthread_setstackaddr" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - void *stackaddr; - int result; - - stackaddr = NULL; - - result = pthread_attr_setstackaddr( &attribute, stackaddr ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread25.c b/testsuites/psxtests/psxhdrs/pthread25.c deleted file mode 100644 index 49a0e81c87..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread25.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 <pthread.h> -#include <limits.h> /* only for PTHREAD_STACK_MIN */ - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_getstackaddr" -#endif - -#ifndef _POSIX_THREAD_ATTR_STACKADDR -#error "rtems is supposed to have pthread_getstackaddr" -#endif - -void test( void ) -{ - pthread_attr_t attribute; - void *stackaddr; - int result; - - result = pthread_attr_getstackaddr( &attribute, &stackaddr ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread26.c b/testsuites/psxtests/psxhdrs/pthread26.c deleted file mode 100644 index 91955bc771..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread26.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_join" -#endif - -void test( void ) -{ - pthread_t thread; - void *value_ptr; - int result; - - thread = 0; - - result = pthread_join( thread, &value_ptr ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread27.c b/testsuites/psxtests/psxhdrs/pthread27.c deleted file mode 100644 index 6f349aec86..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread27.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_once" -#endif - -void init_routine( void ) -{ -} - -void test( void ) -{ - pthread_once_t once_control = PTHREAD_ONCE_INIT; - int result; - - result = pthread_once( &once_control, init_routine ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread28.c b/testsuites/psxtests/psxhdrs/pthread28.c deleted file mode 100644 index 0207082e16..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread28.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cancel" -#endif - -void init_routine( void ) -{ -} - -void test( void ) -{ - pthread_t thread; - int result; - - thread = 0; - result = pthread_cancel( thread ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread29.c b/testsuites/psxtests/psxhdrs/pthread29.c deleted file mode 100644 index 59b56c25fd..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread29.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_setcancelstate" -#endif - -void init_routine( void ) -{ -} - -void test( void ) -{ - int state; - int oldstate; - int result; - - state = PTHREAD_CANCEL_ENABLE; - state = PTHREAD_CANCEL_DISABLE; - - result = pthread_setcancelstate( state, &oldstate ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread30.c b/testsuites/psxtests/psxhdrs/pthread30.c deleted file mode 100644 index 0d92f8adec..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread30.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_setcanceltype" -#endif - -void init_routine( void ) -{ -} - -void test( void ) -{ - int type; - int oldtype; - int result; - - type = PTHREAD_CANCEL_DEFERRED; - type = PTHREAD_CANCEL_ASYNCHRONOUS; - - result = pthread_setcanceltype( type, &oldtype ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread31.c b/testsuites/psxtests/psxhdrs/pthread31.c deleted file mode 100644 index 0a0761d601..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread31.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_testcancel" -#endif - -void init_routine( void ) -{ -} - -void test( void ) -{ - pthread_testcancel(); -} diff --git a/testsuites/psxtests/psxhdrs/pthread32.c b/testsuites/psxtests/psxhdrs/pthread32.c deleted file mode 100644 index d9ad95524d..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread32.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cleanup_push" -#endif - -void cleanup_routine( - void *argument -) -{ -} - -void test( void ) -{ - int argument; - - argument = 0; - - pthread_cleanup_push( cleanup_routine, &argument ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread33.c b/testsuites/psxtests/psxhdrs/pthread33.c deleted file mode 100644 index ad53330492..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread33.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_cleanup_pop" -#endif - -void test( void ) -{ - pthread_cleanup_pop( 1 ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread34.c b/testsuites/psxtests/psxhdrs/pthread34.c deleted file mode 100644 index d946ab517e..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread34.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_CPUTIME -#error "rtems is supposed to have pthread_getcpuclockid" -#endif - -void test( void ) -{ - pthread_t thread; - clockid_t clock_id; - int result; - - thread = 0; - - result = pthread_getcpuclockid( thread, &clock_id ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread35.c b/testsuites/psxtests/psxhdrs/pthread35.c deleted file mode 100644 index 4e68da4c2e..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread35.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_CPUTIME -#error "rtems is supposed to have pthread_attr_setcputime" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int clock_allowed; - int result; - - clock_allowed = CLOCK_ALLOWED; - clock_allowed = CLOCK_DISALLOWED; - - result = pthread_attr_setcputime( &attr, clock_allowed ); -} diff --git a/testsuites/psxtests/psxhdrs/pthread36.c b/testsuites/psxtests/psxhdrs/pthread36.c deleted file mode 100644 index 11e1c170a3..0000000000 --- a/testsuites/psxtests/psxhdrs/pthread36.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <pthread.h> - -#ifndef _POSIX_THREAD_CPUTIME -#error "rtems is supposed to have pthread_attr_getcputime" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int clock_allowed; - int result; - - result = pthread_attr_getcputime( &attr, &clock_allowed ); -} diff --git a/testsuites/psxtests/psxhdrs/sched01.c b/testsuites/psxtests/psxhdrs/sched01.c deleted file mode 100644 index 5b2bc0b76f..0000000000 --- a/testsuites/psxtests/psxhdrs/sched01.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_setparam" -#endif - -void test( void ) -{ - pid_t pid; - struct sched_param param; - int result; - - pid = 0; - - /* - * really should use sched_get_priority_min() and sched_get_priority_max() - */ - - param.sched_priority = 0; -#ifdef _POSIX_SPORADIC_SERVER - param.ss_low_priority = 0; - param.ss_replenish_period.tv_sec = 0; - param.ss_replenish_period.tv_nsec = 0; - param.ss_initial_budget.tv_sec = 0; - param.ss_initial_budget.tv_nsec = 0; -#endif - - result = sched_setparam( pid, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/sched02.c b/testsuites/psxtests/psxhdrs/sched02.c deleted file mode 100644 index 43d94a1965..0000000000 --- a/testsuites/psxtests/psxhdrs/sched02.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_getparam" -#endif - -void test( void ) -{ - pid_t pid; - struct sched_param param; - int result; - - pid = 0; - - result = sched_getparam( pid, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/sched03.c b/testsuites/psxtests/psxhdrs/sched03.c deleted file mode 100644 index b140a0052d..0000000000 --- a/testsuites/psxtests/psxhdrs/sched03.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_setscheduler" -#endif - -void test( void ) -{ - pid_t pid; - int policy; - struct sched_param param; - int result; - - pid = 0; - - policy = SCHED_RR; - policy = SCHED_FIFO; - policy = SCHED_OTHER; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - /* - * really should use sched_get_priority_min() and sched_get_priority_max() - */ - - param.sched_priority = 0; -#ifdef _POSIX_SPORADIC_SERVER - param.ss_low_priority = 0; - param.ss_replenish_period.tv_sec = 0; - param.ss_replenish_period.tv_nsec = 0; - param.ss_initial_budget.tv_sec = 0; - param.ss_initial_budget.tv_nsec = 0; -#endif - - result = sched_setscheduler( pid, policy, ¶m ); -} diff --git a/testsuites/psxtests/psxhdrs/sched04.c b/testsuites/psxtests/psxhdrs/sched04.c deleted file mode 100644 index a723470f2f..0000000000 --- a/testsuites/psxtests/psxhdrs/sched04.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_getscheduler" -#endif - -void test( void ) -{ - pid_t pid; - int result; - - pid = 0; - - result = sched_getscheduler( pid ); -} diff --git a/testsuites/psxtests/psxhdrs/sched05.c b/testsuites/psxtests/psxhdrs/sched05.c deleted file mode 100644 index 3bf8fc1361..0000000000 --- a/testsuites/psxtests/psxhdrs/sched05.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_yield" -#endif - -void test( void ) -{ - int result; - - result = sched_yield(); -} diff --git a/testsuites/psxtests/psxhdrs/sched06.c b/testsuites/psxtests/psxhdrs/sched06.c deleted file mode 100644 index 49eaa43f4d..0000000000 --- a/testsuites/psxtests/psxhdrs/sched06.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_get_priority_max" -#endif - -void test( void ) -{ - int policy; - int result; - - policy = SCHED_RR; - policy = SCHED_FIFO; - policy = SCHED_OTHER; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - result = sched_get_priority_max( policy ); -} diff --git a/testsuites/psxtests/psxhdrs/sched07.c b/testsuites/psxtests/psxhdrs/sched07.c deleted file mode 100644 index 767cb30a86..0000000000 --- a/testsuites/psxtests/psxhdrs/sched07.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_get_priority_min" -#endif - -void test( void ) -{ - int policy; - int result; - - policy = SCHED_RR; - policy = SCHED_FIFO; - policy = SCHED_OTHER; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - result = sched_get_priority_min( policy ); -} diff --git a/testsuites/psxtests/psxhdrs/sched08.c b/testsuites/psxtests/psxhdrs/sched08.c deleted file mode 100644 index 993d6dd0f5..0000000000 --- a/testsuites/psxtests/psxhdrs/sched08.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 <sched.h> - -#ifndef _POSIX_PRIORITY_SCHEDULING -#error "rtems is supposed to have sched_rr_get_interval" -#endif - -void test( void ) -{ - pid_t pid; - struct timespec interval; - int result; - - pid = 0; - - result = sched_rr_get_interval( pid, &interval ); -} diff --git a/testsuites/psxtests/psxhdrs/signal01.c b/testsuites/psxtests/psxhdrs/signal01.c deleted file mode 100644 index 4388586745..0000000000 --- a/testsuites/psxtests/psxhdrs/signal01.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 08f36d7fde..0000000000 --- a/testsuites/psxtests/psxhdrs/signal02.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index c4a96103c6..0000000000 --- a/testsuites/psxtests/psxhdrs/signal03.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 signal_set; - int result; - - result = sigfillset( &signal_set ); -} diff --git a/testsuites/psxtests/psxhdrs/signal04.c b/testsuites/psxtests/psxhdrs/signal04.c deleted file mode 100644 index 81c9327564..0000000000 --- a/testsuites/psxtests/psxhdrs/signal04.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 92714a3931..0000000000 --- a/testsuites/psxtests/psxhdrs/signal05.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 signal_set; - int result; - - result = sigemptyset( &signal_set ); -} diff --git a/testsuites/psxtests/psxhdrs/signal06.c b/testsuites/psxtests/psxhdrs/signal06.c deleted file mode 100644 index d4738c52b7..0000000000 --- a/testsuites/psxtests/psxhdrs/signal06.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 ) -{ - int signal_number; - struct sigaction act; - struct sigaction oact; - int result; - - signal_number = SIGALRM; - - /* - * Really should not reference sa_handler and sa_signction simultaneously. - */ - - act.sa_handler = SIG_DFL; - act.sa_handler = SIG_IGN; - act.sa_mask = 0; - act.sa_flags = SA_NOCLDSTOP; - act.sa_flags = SA_SIGINFO; - act.sa_sigaction = NULL; - - result = sigaction( signal_number, &act, &oact ); -} diff --git a/testsuites/psxtests/psxhdrs/signal07.c b/testsuites/psxtests/psxhdrs/signal07.c deleted file mode 100644 index 3949a18751..0000000000 --- a/testsuites/psxtests/psxhdrs/signal07.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 -#error "rtems is supposed to have pthread_kill" -#endif - -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 deleted file mode 100644 index b283797cd5..0000000000 --- a/testsuites/psxtests/psxhdrs/signal08.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 -#error "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; - - result = pthread_sigmask( how, &set, &oset ); -} diff --git a/testsuites/psxtests/psxhdrs/signal09.c b/testsuites/psxtests/psxhdrs/signal09.c deleted file mode 100644 index 2cfb052dff..0000000000 --- a/testsuites/psxtests/psxhdrs/signal09.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <signal.h> - -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 deleted file mode 100644 index 41aad46fc7..0000000000 --- a/testsuites/psxtests/psxhdrs/signal10.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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; - - result = sigwait( &set, &sig ); -} diff --git a/testsuites/psxtests/psxhdrs/signal11.c b/testsuites/psxtests/psxhdrs/signal11.c deleted file mode 100644 index c54b872def..0000000000 --- a/testsuites/psxtests/psxhdrs/signal11.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 ) -{ - int signal_number; - int result; - - signal_number = SIGALRM; - - result = raise( signal_number ); -} diff --git a/testsuites/psxtests/psxhdrs/signal12.c b/testsuites/psxtests/psxhdrs/signal12.c deleted file mode 100644 index f0b5cd5eb7..0000000000 --- a/testsuites/psxtests/psxhdrs/signal12.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 ) -{ - void (*signal_function_pointer)(); - int signal_number; - - signal_number = SIGALRM; - - signal_function_pointer = signal( signal_number, SIG_IGN ); -} diff --git a/testsuites/psxtests/psxhdrs/signal13.c b/testsuites/psxtests/psxhdrs/signal13.c deleted file mode 100644 index 3e5dcbff5a..0000000000 --- a/testsuites/psxtests/psxhdrs/signal13.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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 ) -{ - int how; - sigset_t set; - sigset_t oset; - int result; - - how = SIG_BLOCK; - how = SIG_UNBLOCK; - how = SIG_SETMASK; - - (void) sigemptyset( &set ); - - result = sigprocmask( how, &set, &oset ); -} diff --git a/testsuites/psxtests/psxhdrs/signal14.c b/testsuites/psxtests/psxhdrs/signal14.c deleted file mode 100644 index a3d7f96f7d..0000000000 --- a/testsuites/psxtests/psxhdrs/signal14.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 result; - - (void) sigemptyset( &set ); - - result = sigpending( &set ); -} diff --git a/testsuites/psxtests/psxhdrs/signal15.c b/testsuites/psxtests/psxhdrs/signal15.c deleted file mode 100644 index c4fbcf4381..0000000000 --- a/testsuites/psxtests/psxhdrs/signal15.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 deleted file mode 100644 index 7a5213478a..0000000000 --- a/testsuites/psxtests/psxhdrs/signal16.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 deleted file mode 100644 index 53055da4b4..0000000000 --- a/testsuites/psxtests/psxhdrs/signal17.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 deleted file mode 100644 index 4d09b08d81..0000000000 --- a/testsuites/psxtests/psxhdrs/signal18.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 deleted file mode 100644 index 013b4ef25e..0000000000 --- a/testsuites/psxtests/psxhdrs/signal19.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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/signal20.c b/testsuites/psxtests/psxhdrs/signal20.c deleted file mode 100644 index f0d83c86b3..0000000000 --- a/testsuites/psxtests/psxhdrs/signal20.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 ) -{ - unsigned int seconds; - unsigned int result; - - seconds = 10; - - result = alarm( seconds ); -} diff --git a/testsuites/psxtests/psxhdrs/signal21.c b/testsuites/psxtests/psxhdrs/signal21.c deleted file mode 100644 index 08d3cd6158..0000000000 --- a/testsuites/psxtests/psxhdrs/signal21.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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 ) -{ - int result; - - result = pause(); -} diff --git a/testsuites/psxtests/psxhdrs/signal22.c b/testsuites/psxtests/psxhdrs/signal22.c deleted file mode 100644 index fb6a399738..0000000000 --- a/testsuites/psxtests/psxhdrs/signal22.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 ) -{ - unsigned int seconds; - unsigned int result; - - seconds = 10; - - result = sleep( seconds ); -} diff --git a/testsuites/psxtests/psxhdrs/time01.c b/testsuites/psxtests/psxhdrs/time01.c deleted file mode 100644 index 6868b3f98d..0000000000 --- a/testsuites/psxtests/psxhdrs/time01.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - clock_t clock_ticks; - - clock_ticks = clock(); -} diff --git a/testsuites/psxtests/psxhdrs/time02.c b/testsuites/psxtests/psxhdrs/time02.c deleted file mode 100644 index 5ac96ef31a..0000000000 --- a/testsuites/psxtests/psxhdrs/time02.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - time_t time1; - time_t time2; - double difference; - - time1 = 0; - time2 = 0; - - difference = difftime( time1, time2 ); -} diff --git a/testsuites/psxtests/psxhdrs/time03.c b/testsuites/psxtests/psxhdrs/time03.c deleted file mode 100644 index 972603a1fd..0000000000 --- a/testsuites/psxtests/psxhdrs/time03.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - struct tm timestruct; - time_t time_encoded; - - timestruct.tm_sec = 0; - timestruct.tm_min = 0; - timestruct.tm_hour = 0; - timestruct.tm_mday = 1; - timestruct.tm_mon = 0; - timestruct.tm_year = 0; - timestruct.tm_wday = 0; - timestruct.tm_yday = 0; - timestruct.tm_isdst = 0; - - time_encoded = mktime( ×truct ); -} diff --git a/testsuites/psxtests/psxhdrs/time04.c b/testsuites/psxtests/psxhdrs/time04.c deleted file mode 100644 index 5f6d3012d4..0000000000 --- a/testsuites/psxtests/psxhdrs/time04.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - time_t new_time; - - new_time = time( &new_time ); -} diff --git a/testsuites/psxtests/psxhdrs/time05.c b/testsuites/psxtests/psxhdrs/time05.c deleted file mode 100644 index c2f01dd848..0000000000 --- a/testsuites/psxtests/psxhdrs/time05.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - size_t length; - size_t max_length; - char buffer[ 80 ]; - struct tm timestruct; - - max_length = sizeof( buffer ); - - length = strftime( buffer, max_length, "%A", ×truct ); -} diff --git a/testsuites/psxtests/psxhdrs/time06.c b/testsuites/psxtests/psxhdrs/time06.c deleted file mode 100644 index e79944951f..0000000000 --- a/testsuites/psxtests/psxhdrs/time06.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - char *buffer; - struct tm timestruct; - - buffer = asctime( ×truct ); -} diff --git a/testsuites/psxtests/psxhdrs/time07.c b/testsuites/psxtests/psxhdrs/time07.c deleted file mode 100644 index c9ca1b8bc5..0000000000 --- a/testsuites/psxtests/psxhdrs/time07.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - char *buffer; - time_t time; - - buffer = ctime( &time ); -} diff --git a/testsuites/psxtests/psxhdrs/time08.c b/testsuites/psxtests/psxhdrs/time08.c deleted file mode 100644 index 8cc03305eb..0000000000 --- a/testsuites/psxtests/psxhdrs/time08.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - time_t time; - struct tm *timestruct; - - timestruct = gmtime( &time ); -} diff --git a/testsuites/psxtests/psxhdrs/time09.c b/testsuites/psxtests/psxhdrs/time09.c deleted file mode 100644 index 6233bbce30..0000000000 --- a/testsuites/psxtests/psxhdrs/time09.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - time_t time; - struct tm *timestruct; - - timestruct = localtime( &time ); -} diff --git a/testsuites/psxtests/psxhdrs/time10.c b/testsuites/psxtests/psxhdrs/time10.c deleted file mode 100644 index d34162e068..0000000000 --- a/testsuites/psxtests/psxhdrs/time10.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - char *buffer_pointer; - struct tm timestruct; - char buffer[ 80 ]; - - buffer_pointer = asctime_r( ×truct, buffer ); -} diff --git a/testsuites/psxtests/psxhdrs/time11.c b/testsuites/psxtests/psxhdrs/time11.c deleted file mode 100644 index 6a1375a8c3..0000000000 --- a/testsuites/psxtests/psxhdrs/time11.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - char *buffer_pointer; - char buffer[ 80 ]; - time_t time; - - buffer_pointer = ctime_r( &time, buffer ); -} diff --git a/testsuites/psxtests/psxhdrs/time12.c b/testsuites/psxtests/psxhdrs/time12.c deleted file mode 100644 index da2d31aba9..0000000000 --- a/testsuites/psxtests/psxhdrs/time12.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - time_t time; - struct tm *timestruct_pointer; - struct tm timestruct; - - timestruct_pointer = gmtime_r( &time, ×truct ); -} diff --git a/testsuites/psxtests/psxhdrs/time13.c b/testsuites/psxtests/psxhdrs/time13.c deleted file mode 100644 index ca1758358a..0000000000 --- a/testsuites/psxtests/psxhdrs/time13.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 <time.h> - -void test( void ) -{ - time_t time; - struct tm *timestruct_pointer; - struct tm timestruct; - - timestruct_pointer = localtime_r( &time, ×truct ); -} diff --git a/testsuites/psxtests/psxhdrs/timer01.c b/testsuites/psxtests/psxhdrs/timer01.c deleted file mode 100644 index 201dc7e0a4..0000000000 --- a/testsuites/psxtests/psxhdrs/timer01.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have timer_create" -#endif - -void test( void ) -{ - clockid_t clock_id = 0; - timer_t timerid = 0; - struct sigevent evp; - int result; - - evp.sigev_notify = SIGEV_NONE; - evp.sigev_notify = SIGEV_SIGNAL; - evp.sigev_notify = SIGEV_THREAD; - evp.sigev_signo = SIGALRM; - evp.sigev_value.sival_int = 0; - evp.sigev_value.sival_ptr = NULL; - - result = timer_create( clock_id, &evp, &timerid ); -} diff --git a/testsuites/psxtests/psxhdrs/timer02.c b/testsuites/psxtests/psxhdrs/timer02.c deleted file mode 100644 index c377d1618c..0000000000 --- a/testsuites/psxtests/psxhdrs/timer02.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have timer_delete" -#endif - -void test( void ) -{ - timer_t timerid = 0; - int result; - - result = timer_delete( timerid ); -} diff --git a/testsuites/psxtests/psxhdrs/timer03.c b/testsuites/psxtests/psxhdrs/timer03.c deleted file mode 100644 index ac8d926c15..0000000000 --- a/testsuites/psxtests/psxhdrs/timer03.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have timer_settime" -#endif - -void test( void ) -{ - timer_t timerid = 0; - int flags; - struct itimerspec value; - struct itimerspec ovalue; - int result; - - value.it_interval.tv_sec = 0; - value.it_interval.tv_nsec = 0; - value.it_value.tv_sec = 0; - value.it_value.tv_nsec = 0; - - flags = TIMER_ABSTIME; - flags = CLOCK_REALTIME; - - result = timer_settime( timerid, flags, &value, &ovalue ); -} diff --git a/testsuites/psxtests/psxhdrs/timer04.c b/testsuites/psxtests/psxhdrs/timer04.c deleted file mode 100644 index d6bbff3700..0000000000 --- a/testsuites/psxtests/psxhdrs/timer04.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have timer_gettime" -#endif - -void test( void ) -{ - timer_t timerid = 0; - struct itimerspec value; - int result; - - result = timer_gettime( timerid, &value ); -} diff --git a/testsuites/psxtests/psxhdrs/timer05.c b/testsuites/psxtests/psxhdrs/timer05.c deleted file mode 100644 index 1db28dfc4c..0000000000 --- a/testsuites/psxtests/psxhdrs/timer05.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have timer_getoverrun" -#endif - -void test( void ) -{ - timer_t timerid = 0; - int result; - - result = timer_getoverrun( timerid ); -} diff --git a/testsuites/psxtests/psxhdrs/timer06.c b/testsuites/psxtests/psxhdrs/timer06.c deleted file mode 100644 index 7a668a61da..0000000000 --- a/testsuites/psxtests/psxhdrs/timer06.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 <time.h> - -#ifndef _POSIX_TIMERS -#error "rtems is supposed to have nanosleep" -#endif - -void test( void ) -{ - struct timespec rqtp; - struct timespec rmtp; - int result; - - rqtp.tv_sec = 0; - rqtp.tv_nsec = 0; - result = nanosleep( &rqtp, &rmtp ); -} |