diff options
Diffstat (limited to 'testsuites/psxtests')
151 files changed, 0 insertions, 5162 deletions
diff --git a/testsuites/psxtests/include/pmacros.h b/testsuites/psxtests/include/pmacros.h deleted file mode 100644 index af55d68c80..0000000000 --- a/testsuites/psxtests/include/pmacros.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * $Id$ - */ - -#ifndef __POSIX_TEST_MACROS_h -#define __POSIX_TEST_MACROS_h - -#include <bsp.h> -#include <pthread.h> -#include <assert.h> -#include <stdio.h> -#include <string.h> -#include <time.h> -#include <unistd.h> - -/* - * These help manipulate the "struct tm" form of time - */ - -#define TM_SUNDAY 0 -#define TM_MONDAY 1 -#define TM_TUESDAY 2 -#define TM_WEDNESDAY 3 -#define TM_THURSDAY 4 -#define TM_FRIDAY 5 -#define TM_SATURDAY 6 - -#define TM_JANUARY 0 -#define TM_FEBRUARY 1 -#define TM_MARCH 2 -#define TM_APRIL 3 -#define TM_MAY 4 -#define TM_JUNE 5 -#define TM_JULY 6 -#define TM_AUGUST 7 -#define TM_SEPTEMBER 8 -#define TM_OCTOBER 10 -#define TM_NOVEMBER 12 -#define TM_DECEMBER 12 - -#define build_time( TM, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \ - { (TM)->tm_year = YR; \ - (TM)->tm_mon = MON; \ - (TM)->tm_mday = DAY; \ - (TM)->tm_wday = WEEKDAY; \ - (TM)->tm_hour = HR; \ - (TM)->tm_min = MIN; \ - (TM)->tm_sec = SEC; } - -#define set_time( WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \ - do { \ - struct tm tm; \ - struct timespec tv; \ - int status; \ - \ - build_time( &tm, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ); \ - \ - tv.tv_sec = mktime( &tm ); \ - tv.tv_nsec = 0; \ - assert( tv.tv_sec != -1 ); \ - \ - status = clock_settime( CLOCK_REALTIME, &tv ); \ - assert( !status ); \ - } while ( 0 ) - -#define print_current_time(s1, s2) \ - do { \ - char buffer[32]; \ - int status; \ - struct timespec tv; \ - \ - status = clock_gettime( CLOCK_REALTIME, &tv ); \ - assert( !status ); \ - \ - (void) ctime_r( &tv.tv_sec, buffer ); \ - buffer[ strlen( buffer ) - 1 ] = 0; \ - printf( "%s%s%s\n", s1, buffer, s2 ); \ - fflush(stdout); \ - } while ( 0 ) - -#define empty_line() puts( "" ) - -#endif - -/* end of file */ diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c deleted file mode 100644 index 75aa73ac65..0000000000 --- a/testsuites/psxtests/psx01/init.c +++ /dev/null @@ -1,125 +0,0 @@ -/* - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include <sched.h> - - -void *POSIX_Init( - void *argument -) -{ - int status; - int priority; - pthread_t thread_id; - time_t seconds; - time_t remaining; - struct tm tm; - struct timespec tv; - struct timespec tr; - - puts( "\n\n*** POSIX TEST 1 ***" ); - - /* set the time of day, and print our buffer in multiple ways */ - - build_time( &tm, TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 ); - - tv.tv_sec = mktime( &tm ); - assert( tv.tv_sec != -1 ); - - tv.tv_nsec = 0; - - status = clock_settime( CLOCK_REALTIME, &tv ); - assert( !status ); - - printf( asctime( &tm ) ); - printf( ctime( &tv.tv_sec ) ); - - /* use sleep to delay */ - - remaining = sleep( 3 ); - assert( !remaining ); - - /* print new times to make sure it has changed and we can get the realtime */ - - status = clock_gettime( CLOCK_REALTIME, &tv ); - assert( !status ); - - printf( ctime( &tv.tv_sec ) ); - - seconds = time( NULL ); - printf( ctime( &seconds ) ); - - /* check the time remaining */ - - printf( "seconds remaining (%d)\n", (int)remaining ); - assert( !remaining ); - - /* use nanosleep to delay */ - - tv.tv_sec = 3; - tv.tv_nsec = 500000; - - status = nanosleep ( &tv, &tr ); - assert( !status ); - - /* print the current real time again */ - - status = clock_gettime( CLOCK_REALTIME, &tv ); - assert( !status ); - - printf( ctime( &tv.tv_sec ) ); - - /* check the time remaining */ - - printf( "sec (%d), nsec (%d) remaining\n", (int)tr.tv_sec, (int)tr.tv_nsec ); - assert( !tr.tv_sec && !tr.tv_nsec ); - - /* get id of this thread */ - - Init_id = pthread_self(); - printf( "Init's ID is 0x%08x\n", Init_id ); - - /* print the minimum priority */ - - priority = sched_get_priority_min( SCHED_FIFO ); - printf( "Minimum priority for FIFO is %d\n", priority ); - assert( priority != -1 ); - - /* print the maximum priority */ - - priority = sched_get_priority_max( SCHED_FIFO ); - printf( "Maximum priority for FIFO is %d\n", priority ); - assert( priority != -1 ); - - /* print the round robin time quantum */ - - status = sched_rr_get_interval( getpid(), &tr ); - printf( - "Round Robin quantum is %d seconds, %d nanoseconds\n", - (int) tr.tv_sec, - (int) tr.tv_nsec - ); - assert( !status ); - - /* create a thread */ - - status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL ); - assert( !status ); - - /* exit this thread */ - - pthread_exit( NULL ); - - return NULL; /* just so the compiler thinks we returned something */ -} diff --git a/testsuites/psxtests/psx01/psx01.scn b/testsuites/psxtests/psx01/psx01.scn deleted file mode 100644 index e69de29bb2..0000000000 --- a/testsuites/psxtests/psx01/psx01.scn +++ /dev/null diff --git a/testsuites/psxtests/psx01/system.h b/testsuites/psxtests/psx01/system.h deleted file mode 100644 index 3abfff0e19..0000000000 --- a/testsuites/psxtests/psx01/system.h +++ /dev/null @@ -1,52 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -/* functions */ - -#include <pmacros.h> -#include <unistd.h> - -void *POSIX_Init( - void *argument -); - -void *Task_1_through_3( - void *argument -); - -/* configuration information */ - -#define CONFIGURE_SPTEST - -#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_POSIX_INIT_THREAD_TABLE - -#include <confdefs.h> - -/* global variables */ - -#ifdef CONFIGURE_INIT -#define TEST_EXTERN -#else -#define TEST_EXTERN extern -#endif - -TEST_EXTERN pthread_t Init_id; -TEST_EXTERN pthread_t Task_id; - -/* end of include file */ diff --git a/testsuites/psxtests/psx01/task.c b/testsuites/psxtests/psx01/task.c deleted file mode 100644 index 61095cf119..0000000000 --- a/testsuites/psxtests/psx01/task.c +++ /dev/null @@ -1,51 +0,0 @@ -/* Task_1_through_3 - * - * This routine serves as a test task. It verifies the basic task - * switching capabilities of the executive. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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 "system.h" - -void *Task_1_through_3( - void *argument -) -{ - int status; - - /* XXX temporary */ - - /* get id of this thread */ - - Task_id = pthread_self(); - printf( "Task's ID is 0x%08x\n", Task_id ); - - status = pthread_equal( Task_id, Task_id ); - if ( status ) - puts( "pthread_equal match case passed" ); - assert( status ); - - status = pthread_equal( Init_id, Task_id ); - if ( !status ) - puts( "pthread_equal different case passed" ); - assert( !status ); - - puts( "*** END OF POSIX TEST 1 ***" ); - exit( 0 ); - - return NULL; /* just so the compiler thinks we returned something */ -} diff --git a/testsuites/psxtests/psx02/init.c b/testsuites/psxtests/psx02/init.c deleted file mode 100644 index 3b3b0ef4a0..0000000000 --- a/testsuites/psxtests/psx02/init.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include <signal.h> - -volatile int Signal_occurred; -volatile int Signal_count; - -void Signal_handler( - int signo -) -{ - Signal_count++; - printf( - "Signal: %d caught by 0x%x (%d)\n", - signo, - pthread_self(), - Signal_count - ); - Signal_occurred = 1; -} - -void *POSIX_Init( - void *argument -) -{ - int status; - struct timespec tv; - struct timespec tr; - struct sigaction act; - sigset_t mask; - sigset_t pending_set; - - puts( "\n\n*** POSIX TEST 2 ***" ); - - /* set the time of day, and print our buffer in multiple ways */ - - set_time( TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 ); - - /* get id of this thread */ - - Init_id = pthread_self(); - printf( "Init's ID is 0x%08x\n", Init_id ); - - /* install a signal handler */ - - status = sigemptyset( &act.sa_mask ); - assert( !status ); - - act.sa_handler = Signal_handler; - act.sa_flags = 0; - - sigaction( SIGUSR1, &act, NULL ); - - /* simple signal to self */ - - Signal_count = 0; - Signal_occurred = 0; - - status = pthread_kill( Init_id, SIGUSR1 ); - assert( !status ); - - Signal_occurred = 0; - - /* now block the signal, send it, see if it is pending, and unblock it */ - - status = sigemptyset( &mask ); - assert( !status ); - - status = sigaddset( &mask, SIGUSR1 ); - assert( !status ); - - printf( "Init: Block SIGUSR1\n" ); - status = sigprocmask( SIG_BLOCK, &mask, NULL ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - - printf( "Init: send SIGUSR1 to self\n" ); - status = pthread_kill( Init_id, SIGUSR1 ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - printf( "Init: Unblock SIGUSR1\n" ); - status = sigprocmask( SIG_UNBLOCK, &mask, NULL ); - assert( !status ); - - /* create a thread */ - - status = pthread_create( &Task_id, NULL, Task_1_through_3, NULL ); - assert( !status ); - - /* - * Loop for 5 seconds seeing how many signals we catch - */ - - tr.tv_sec = 5; - tr.tv_nsec = 0; - - do { - tv = tr; - - Signal_occurred = 0; - - status = nanosleep ( &tv, &tr ); - assert( !status ); - - printf( - "Init: signal was %sprocessed with %d:%d time remaining\n", - (Signal_occurred) ? "" : "not ", - (int) tr.tv_sec, - (int) tr.tv_nsec - ); - - } while ( tr.tv_sec || tr.tv_nsec ); - - /* exit this thread */ - - puts( "*** END OF POSIX TEST 2 ***" ); - exit( 0 ); - - return NULL; /* just so the compiler thinks we returned something */ -} diff --git a/testsuites/psxtests/psx02/psx02.scn b/testsuites/psxtests/psx02/psx02.scn deleted file mode 100644 index e69de29bb2..0000000000 --- a/testsuites/psxtests/psx02/psx02.scn +++ /dev/null diff --git a/testsuites/psxtests/psx02/system.h b/testsuites/psxtests/psx02/system.h deleted file mode 100644 index 2d0d07b32c..0000000000 --- a/testsuites/psxtests/psx02/system.h +++ /dev/null @@ -1,51 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -/* functions */ - -#include <pmacros.h> - -void *POSIX_Init( - void *argument -); - -void *Task_1_through_3( - void *argument -); - -/* configuration information */ - -#define CONFIGURE_SPTEST - -#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_POSIX_INIT_THREAD_TABLE - -#include <confdefs.h> - -/* global variables */ - -#ifdef CONFIGURE_INIT -#define TEST_EXTERN -#else -#define TEST_EXTERN extern -#endif - -TEST_EXTERN pthread_t Init_id; -TEST_EXTERN pthread_t Task_id; - -/* end of include file */ diff --git a/testsuites/psxtests/psx02/task.c b/testsuites/psxtests/psx02/task.c deleted file mode 100644 index 410ee32346..0000000000 --- a/testsuites/psxtests/psx02/task.c +++ /dev/null @@ -1,45 +0,0 @@ -/* Task_1_through_3 - * - * This routine serves as a test task. It verifies the basic task - * switching capabilities of the executive. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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 "system.h" -#include <signal.h> - -void *Task_1_through_3( - void *argument -) -{ - int seconds; - int i; - int status; - - for ( i=0 ; i<5 ; i++ ) { - print_current_time( "Task1: ", "" ); - status = pthread_kill( Init_id, SIGUSR1 ); - assert( !status ); - - seconds = sleep( 1 ); - assert( !seconds ); - } - puts( "*** END OF POSIX TEST 2 ***" ); - exit( 0 ); - - return NULL; /* just so the compiler thinks we returned something */ -} diff --git a/testsuites/psxtests/psx03/init.c b/testsuites/psxtests/psx03/init.c deleted file mode 100644 index 99b6d715f8..0000000000 --- a/testsuites/psxtests/psx03/init.c +++ /dev/null @@ -1,233 +0,0 @@ -/* - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include <signal.h> -#include <errno.h> - -volatile int Signal_occurred; -volatile int Signal_count; - -void Signal_handler( - int signo -) -{ - Signal_count++; - printf( - "Signal: %d caught by 0x%x (%d)\n", - signo, - pthread_self(), - Signal_count - ); - Signal_occurred = 1; -} - -void *POSIX_Init( - void *argument -) -{ - int status; - struct timespec timeout; - struct sigaction act; - sigset_t mask; - sigset_t waitset; - int signo; - siginfo_t siginfo; - - puts( "\n\n*** POSIX TEST 3 ***" ); - - /* set the time of day, and print our buffer in multiple ways */ - - set_time( TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 ); - - /* get id of this thread */ - - Init_id = pthread_self(); - printf( "Init's ID is 0x%08x\n", Init_id ); - - /* install a signal handler */ - - status = sigemptyset( &act.sa_mask ); - assert( !status ); - - act.sa_handler = Signal_handler; - act.sa_flags = 0; - - sigaction( SIGUSR1, &act, NULL ); - - /* initialize signal handler variables */ - - Signal_count = 0; - Signal_occurred = 0; - - /* - * wait on SIGUSR1 for 3 seconds, will timeout - */ - - /* initialize the signal set we will wait for to SIGUSR1 */ - - status = sigemptyset( &waitset ); - assert( !status ); - - status = sigaddset( &waitset, SIGUSR1 ); - assert( !status ); - - timeout.tv_sec = 3; - timeout.tv_nsec = 0; - - puts( "Init: waiting on any signal for 3 seconds." ); - signo = sigtimedwait( &waitset, &siginfo, &timeout ); - assert( signo == -1 ); - - if ( errno == EAGAIN ) - puts( "Init: correctly timed out waiting for SIGUSR1." ); - else - printf( "sigtimedwait returned wrong errno - %d\n", errno ); - - Signal_occurred = 0; - - /* - * wait on SIGUSR1 for 3 seconds, will timeout because Task_1 sends SIGUSR2 - */ - - empty_line(); - - /* initialize a mask to block SIGUSR2 */ - - status = sigemptyset( &mask ); - assert( !status ); - - status = sigaddset( &mask, SIGUSR2 ); - assert( !status ); - - printf( "Init: Block SIGUSR2\n" ); - status = sigprocmask( SIG_BLOCK, &mask, NULL ); - assert( !status ); - - /* create a thread */ - - status = pthread_create( &Task_id, NULL, Task_1, NULL ); - assert( !status ); - - /* signal handler is still installed, waitset is still set for SIGUSR1 */ - - timeout.tv_sec = 3; - timeout.tv_nsec = 0; - - puts( "Init: waiting on any signal for 3 seconds." ); - signo = sigtimedwait( &waitset, &siginfo, &timeout ); - - /* switch to Task 1 */ - - if ( errno == EAGAIN ) - puts( "Init: correctly timed out waiting for SIGUSR1." ); - else - printf( "sigtimedwait returned wrong errno - %d\n", errno ); - assert( signo == -1 ); - - /* - * wait on SIGUSR1 for 3 seconds, Task_2 will send it to us - */ - - empty_line(); - - /* create a thread */ - - status = pthread_create( &Task_id, NULL, Task_2, NULL ); - assert( !status ); - - /* signal handler is still installed, mask is still set for SIGUSR1 */ - - /* wait on SIGUSR1 for 3 seconds, will receive SIGUSR1 from Task_2 */ - - timeout.tv_sec = 3; - timeout.tv_nsec = 0; - - /* just so we can check that these were altered */ - - siginfo.si_code = -1; - siginfo.si_signo = -1; - siginfo.si_value.sival_int = -1; - - puts( "Init: waiting on any signal for 3 seconds." ); - signo = sigtimedwait( &mask, &siginfo, &timeout ); - printf( "Init: correctly received SIGUSR1 - %d\n", siginfo.si_signo ); - assert( signo == SIGUSR1 ); - assert( siginfo.si_signo == SIGUSR1 ); - assert( siginfo.si_code == SI_USER ); - assert( siginfo.si_value.sival_int != -1 ); /* rtems does always set this */ - - -/* - status = sigemptyset( &mask ); - assert( !status ); - - status = sigaddset( &mask, SIGUSR1 ); - assert( !status ); - - printf( "Init: Block SIGUSR1\n" ); - status = sigprocmask( SIG_BLOCK, &mask, NULL ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - printf( "Init: send SIGUSR1 to self\n" ); - status = pthread_kill( Init_id, SIGUSR1 ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - printf( "Init: Unblock SIGUSR1\n" ); - status = sigprocmask( SIG_UNBLOCK, &mask, NULL ); - assert( !status ); - -*/ - - /* - * Loop for 5 seconds seeing how many signals we catch - */ - -/* - tr.tv_sec = 5; - tr.tv_nsec = 0; - - do { - tv = tr; - - Signal_occurred = 0; - - status = nanosleep ( &tv, &tr ); - assert( !status ); - - printf( - "Init: signal was %sprocessed with %d:%d time remaining\n", - (Signal_occurred) ? "" : "not ", - (int) tr.tv_sec, - (int) tr.tv_nsec - ); - - } while ( tr.tv_sec || tr.tv_nsec ); - -*/ - - /* exit this thread */ - - puts( "*** END OF POSIX TEST 3 ***" ); - exit( 0 ); - - return NULL; /* just so the compiler thinks we returned something */ -} diff --git a/testsuites/psxtests/psx03/psx03.scn b/testsuites/psxtests/psx03/psx03.scn deleted file mode 100644 index e69de29bb2..0000000000 --- a/testsuites/psxtests/psx03/psx03.scn +++ /dev/null diff --git a/testsuites/psxtests/psx03/system.h b/testsuites/psxtests/psx03/system.h deleted file mode 100644 index 7a27946b41..0000000000 --- a/testsuites/psxtests/psx03/system.h +++ /dev/null @@ -1,55 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -/* functions */ - -#include <pmacros.h> - -void *POSIX_Init( - void *argument -); - -void *Task_1( - void *argument -); - -void *Task_2( - void *argument -); - -/* configuration information */ - -#define CONFIGURE_SPTEST - -#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_POSIX_INIT_THREAD_TABLE - -#include <confdefs.h> - -/* global variables */ - -#ifdef CONFIGURE_INIT -#define TEST_EXTERN -#else -#define TEST_EXTERN extern -#endif - -TEST_EXTERN pthread_t Init_id; -TEST_EXTERN pthread_t Task_id; - -/* end of include file */ diff --git a/testsuites/psxtests/psx03/task.c b/testsuites/psxtests/psx03/task.c deleted file mode 100644 index 5c7b1ca753..0000000000 --- a/testsuites/psxtests/psx03/task.c +++ /dev/null @@ -1,61 +0,0 @@ -/* Task_1_through_3 - * - * This routine serves as a test task. It verifies the basic task - * switching capabilities of the executive. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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 "system.h" -#include <signal.h> - -void *Task_1( - void *argument -) -{ - int status; - - /* send SIGUSR2 to Init which is waiting on SIGUSR1 */ - - print_current_time( "Task1: ", "" ); - status = pthread_kill( Init_id, SIGUSR2 ); - assert( !status ); - - pthread_exit( NULL ); - - /* switch to Init */ - - return NULL; /* just so the compiler thinks we returned something */ -} - -void *Task_2( - void *argument -) -{ - int status; - - /* send SIGUSR1 to Init which is waiting on SIGUSR1 */ - - print_current_time( "Task2: ", "" ); - status = pthread_kill( Init_id, SIGUSR1 ); - assert( !status ); - - pthread_exit( NULL ); - - /* switch to Init */ - - return NULL; /* just so the compiler thinks we returned something */ -} diff --git a/testsuites/psxtests/psx04/init.c b/testsuites/psxtests/psx04/init.c deleted file mode 100644 index 1db88461df..0000000000 --- a/testsuites/psxtests/psx04/init.c +++ /dev/null @@ -1,188 +0,0 @@ -/* - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -#define CONFIGURE_INIT -#include "system.h" -#include <signal.h> - -volatile int Signal_occurred; -volatile int Signal_count; - -void Signal_handler( - int signo -) -{ - Signal_count++; - printf( - "Signal: %d caught by 0x%x (%d)\n", - signo, - pthread_self(), - Signal_count - ); - Signal_occurred = 1; -} - -void *POSIX_Init( - void *argument -) -{ - int status; - struct sigaction act; - sigset_t mask; - sigset_t pending_set; - - puts( "\n\n*** POSIX TEST 4 ***" ); - - /* set the time of day, and print our buffer in multiple ways */ - - set_time( TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 ); - - /* get id of this thread */ - - Init_id = pthread_self(); - printf( "Init's ID is 0x%08x\n", Init_id ); - - /* install a signal handler for SIGUSR1 */ - - status = sigemptyset( &act.sa_mask ); - assert( !status ); - - act.sa_handler = Signal_handler; - act.sa_flags = 0; - - sigaction( SIGUSR1, &act, NULL ); - - /* simple signal to process */ - - Signal_count = 0; - Signal_occurred = 0; - - printf( "Init: send SIGUSR1 to process\n" ); - status = kill( getpid(), SIGUSR1 ); - assert( !status ); - - Signal_occurred = 0; - - /* now block the signal, send it, see if it is pending, and unblock it */ - - empty_line(); - - status = sigemptyset( &mask ); - assert( !status ); - - status = sigaddset( &mask, SIGUSR1 ); - assert( !status ); - - printf( "Init: Block SIGUSR1\n" ); - status = sigprocmask( SIG_BLOCK, &mask, NULL ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - printf( "Init: send SIGUSR1 to process\n" ); - status = kill( getpid(), SIGUSR1 ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - printf( "Init: Unblock SIGUSR1\n" ); - status = sigprocmask( SIG_UNBLOCK, &mask, NULL ); - assert( !status ); - - /* now let another task get interrupted by a signal */ - - empty_line(); - - printf( "Init: create a thread interested in SIGUSR1\n" ); - status = pthread_create( &Task_id, NULL, Task_1_through_3, NULL ); - assert( !status ); - - printf( "Init: Block SIGUSR1\n" ); - status = sigprocmask( SIG_BLOCK, &mask, NULL ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - printf( "Init: sleep so the other task can block\n" ); - status = sleep( 1 ); - assert( !status ); - - /* switch to task 1 */ - - printf( "Init: send SIGUSR1 to process\n" ); - status = kill( getpid(), SIGUSR1 ); - assert( !status ); - - status = sigpending( &pending_set ); - assert( !status ); - printf( "Init: Signals pending 0x%08x\n", pending_set ); - - printf( "Init: sleep so the other task can catch signal\n" ); - status = sleep( 1 ); - assert( !status ); - - /* switch to task 1 */ - - /* test alarm */ - - empty_line(); - - /* install a signal handler for SIGALRM and unblock it */ - - status = sigemptyset( &act.sa_mask ); - assert( !status ); - - act.sa_handler = Signal_handler; - act.sa_flags = 0; - - sigaction( SIGALRM, &act, NULL ); - - status = sigemptyset( &mask ); - assert( !status ); - - status = sigaddset( &mask, SIGALRM ); - assert( !status ); - - printf( "Init: Unblock SIGALRM\n" ); - status = sigprocmask( SIG_UNBLOCK, &mask, NULL ); - assert( !status ); - - /* schedule the alarm */ - - printf( "Init: Firing alarm in 5 seconds\n" ); - status = alarm( 5 ); - printf( "Init: %d seconds left on previous alarm\n", status ); - assert( !status ); - - printf( "Init: Firing alarm in 2 seconds\n" ); - status = alarm( 2 ); - printf( "Init: %d seconds left on previous alarm\n", status ); - assert( status ); - - printf( "Init: Wait 4 seconds for alarm\n" ); - status = sleep( 4 ); - printf( "Init: %d seconds left in sleep\n", status ); - assert( status ); - - /* exit this thread */ - - puts( "*** END OF POSIX TEST 4 ***" ); - exit( 0 ); - - return NULL; /* just so the compiler thinks we returned something */ -} diff --git a/testsuites/psxtests/psx04/psx04.scn b/testsuites/psxtests/psx04/psx04.scn deleted file mode 100644 index e69de29bb2..0000000000 --- a/testsuites/psxtests/psx04/psx04.scn +++ /dev/null diff --git a/testsuites/psxtests/psx04/system.h b/testsuites/psxtests/psx04/system.h deleted file mode 100644 index 2d0d07b32c..0000000000 --- a/testsuites/psxtests/psx04/system.h +++ /dev/null @@ -1,51 +0,0 @@ -/* system.h - * - * This include file contains information that is included in every - * function in the test set. - * - * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. - * 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$ - */ - -/* functions */ - -#include <pmacros.h> - -void *POSIX_Init( - void *argument -); - -void *Task_1_through_3( - void *argument -); - -/* configuration information */ - -#define CONFIGURE_SPTEST - -#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER - -#define CONFIGURE_POSIX_INIT_THREAD_TABLE - -#include <confdefs.h> - -/* global variables */ - -#ifdef CONFIGURE_INIT -#define TEST_EXTERN -#else -#define TEST_EXTERN extern -#endif - -TEST_EXTERN pthread_t Init_id; -TEST_EXTERN pthread_t Task_id; - -/* end of include file */ 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 38de2d1c71..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 support 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 fd275597db..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 support 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 9800b3992a..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 support 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 9ae414c9f0..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 support 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 150ae28ebf..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 support 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 5f70487c47..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 support 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 0e7f4ed6ee..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 support 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 75e5b24122..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 support 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 0b6a595b78..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 support 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 4e0d789e6f..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 support 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 767ba550a6..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 support 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 db72cff1dd..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 support 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 ); -} |