Changeset 9854e336 in rtems
- Timestamp:
- 05/23/96 18:08:15 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 41e7a1d8
- Parents:
- 8b2ecf85
- Files:
-
- 68 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/psxtests/psxhdrs/cond01.c
r8b2ecf85 r9854e336 15 15 16 16 #include <pthread.h> 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_condattr_init" 20 #endif 17 21 18 22 void test( void ) -
c/src/tests/psxtests/psxhdrs/cond02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_condattr_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/cond03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/cond04.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/cond05.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_signal" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/cond06.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_wait" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/cond07.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_timedwait" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/key01.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_key_create" 20 #endif 21 18 22 void key_destructor( 19 23 void *argument -
c/src/tests/psxtests/psxhdrs/key02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_setspecific" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/key03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_getspecific" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/mutex01.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutexattr_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/mutex02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutexattr_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/mutex03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/mutex04.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { 20 pthread_mutex_t 24 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; 21 25 int result; 22 26 -
c/src/tests/psxtests/psxhdrs/mutex05.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_lock" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/mutex06.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_unlock" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/mutex07.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREAD_PRIO_INHERIT 19 #error "rtems is supposed to have pthread_mutexattr_setprotocol" 20 #endif 21 #ifndef _POSIX_THREAD_PRIO_PROTECT 22 #error "rtems is supposed to have pthread_mutexattr_setprotocol" 23 #endif 24 18 25 void test( void ) 19 26 { -
c/src/tests/psxtests/psxhdrs/mutex08.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREAD_PRIO_INHERIT 19 #error "rtems is supposed to have pthread_mutexattr_getprioceiling" 20 #endif 21 #ifndef _POSIX_THREAD_PRIO_PROTECT 22 #error "rtems is supposed to have pthread_mutexattr_getprioceiling" 23 #endif 24 18 25 void test( void ) 19 26 { -
c/src/tests/psxtests/psxhdrs/mutex09.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREAD_PRIO_INHERIT 19 #error "rtems is supposed to have pthread_mutexattr_setprioceiling" 20 #endif 21 #ifndef _POSIX_THREAD_PRIO_PROTECT 22 #error "rtems is supposed to have pthread_mutexattr_setprioceiling" 23 #endif 24 18 25 void test( void ) 19 26 { -
c/src/tests/psxtests/psxhdrs/pthread01.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/pthread02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/pthread03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_setdetachstate" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/pthread04.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_getdetachstate" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/pthread05.c
r8b2ecf85 r9854e336 17 17 #include <limits.h> /* only for PTHREAD_STACK_MIN */ 18 18 19 #ifndef _POSIX_THREADS 20 #error "rtems is supposed to have pthread_setstacksize" 21 #endif 22 23 #ifndef _POSIX_THREAD_ATTR_STACKSIZE 24 #error "rtems is supposed to have pthread_setstacksize" 25 #endif 26 19 27 void test( void ) 20 28 { -
c/src/tests/psxtests/psxhdrs/pthread06.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_getstacksize" 20 #endif 21 22 #ifndef _POSIX_THREAD_ATTR_STACKSIZE 23 #error "rtems is supposed to have pthread_getstacksize" 24 #endif 25 18 26 void test( void ) 19 27 { -
c/src/tests/psxtests/psxhdrs/pthread07.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_create" 20 #endif 21 18 22 void *test_task( 19 23 void * arg -
c/src/tests/psxtests/psxhdrs/pthread08.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_exit" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/pthread09.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_self" 20 #endif 18 21 19 22 void test( void ) -
c/src/tests/psxtests/psxhdrs/pthread10.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_equal" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/pthread13.c
r8b2ecf85 r9854e336 23 23 { 24 24 pthread_attr_t attr; 25 int content sionscope;25 int contentionscope; 26 26 int status; 27 27 28 content sionscope = PTHREAD_SCOPE_SYSTEM;29 content sionscope = PTHREAD_SCOPE_PROCESS;28 contentionscope = PTHREAD_SCOPE_SYSTEM; 29 contentionscope = PTHREAD_SCOPE_PROCESS; 30 30 31 status = pthread_attr_setscope( &attr, content sionscope );31 status = pthread_attr_setscope( &attr, contentionscope ); 32 32 } -
c/src/tests/psxtests/psxhdrs/pthread21.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_detach" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/signal06.c
r8b2ecf85 r9854e336 25 25 signal_number = SIGALRM; 26 26 27 /* 28 * Really should not reference sa_handler and sa_signction simultaneously. 29 */ 30 31 act.sa_handler = SIG_DFL; 32 act.sa_handler = SIG_IGN; 33 act.sa_mask = 0; 34 act.sa_flags = SA_NOCLDSTOP; 35 act.sa_flags = SA_SIGINFO; 36 act.sa_sigaction = NULL; 37 27 38 result = sigaction( signal_number, &act, &oact ); 28 39 } -
c/src/tests/psxtests/psxhdrs/signal07.c
r8b2ecf85 r9854e336 16 16 #include <signal.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_kill" 20 #endif 21 18 22 void test( void ) 19 23 { -
c/src/tests/psxtests/psxhdrs/signal08.c
r8b2ecf85 r9854e336 16 16 #include <signal.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_sigmask" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/cond01.c
r8b2ecf85 r9854e336 15 15 16 16 #include <pthread.h> 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_condattr_init" 20 #endif 17 21 18 22 void test( void ) -
testsuites/psxtests/psxhdrs/cond02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_condattr_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/cond03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/cond04.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/cond05.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_signal" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/cond06.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_wait" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/cond07.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_cond_timedwait" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/key01.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_key_create" 20 #endif 21 18 22 void key_destructor( 19 23 void *argument -
testsuites/psxtests/psxhdrs/key02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_setspecific" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/key03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_getspecific" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/mutex01.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutexattr_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/mutex02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutexattr_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/mutex03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/mutex04.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { 20 pthread_mutex_t 24 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; 21 25 int result; 22 26 -
testsuites/psxtests/psxhdrs/mutex05.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_lock" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/mutex06.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_mutex_unlock" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/mutex07.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREAD_PRIO_INHERIT 19 #error "rtems is supposed to have pthread_mutexattr_setprotocol" 20 #endif 21 #ifndef _POSIX_THREAD_PRIO_PROTECT 22 #error "rtems is supposed to have pthread_mutexattr_setprotocol" 23 #endif 24 18 25 void test( void ) 19 26 { -
testsuites/psxtests/psxhdrs/mutex08.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREAD_PRIO_INHERIT 19 #error "rtems is supposed to have pthread_mutexattr_getprioceiling" 20 #endif 21 #ifndef _POSIX_THREAD_PRIO_PROTECT 22 #error "rtems is supposed to have pthread_mutexattr_getprioceiling" 23 #endif 24 18 25 void test( void ) 19 26 { -
testsuites/psxtests/psxhdrs/mutex09.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREAD_PRIO_INHERIT 19 #error "rtems is supposed to have pthread_mutexattr_setprioceiling" 20 #endif 21 #ifndef _POSIX_THREAD_PRIO_PROTECT 22 #error "rtems is supposed to have pthread_mutexattr_setprioceiling" 23 #endif 24 18 25 void test( void ) 19 26 { -
testsuites/psxtests/psxhdrs/pthread01.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_init" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/pthread02.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_destroy" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/pthread03.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_setdetachstate" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/pthread04.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_attr_getdetachstate" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/pthread05.c
r8b2ecf85 r9854e336 17 17 #include <limits.h> /* only for PTHREAD_STACK_MIN */ 18 18 19 #ifndef _POSIX_THREADS 20 #error "rtems is supposed to have pthread_setstacksize" 21 #endif 22 23 #ifndef _POSIX_THREAD_ATTR_STACKSIZE 24 #error "rtems is supposed to have pthread_setstacksize" 25 #endif 26 19 27 void test( void ) 20 28 { -
testsuites/psxtests/psxhdrs/pthread06.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_getstacksize" 20 #endif 21 22 #ifndef _POSIX_THREAD_ATTR_STACKSIZE 23 #error "rtems is supposed to have pthread_getstacksize" 24 #endif 25 18 26 void test( void ) 19 27 { -
testsuites/psxtests/psxhdrs/pthread07.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_create" 20 #endif 21 18 22 void *test_task( 19 23 void * arg -
testsuites/psxtests/psxhdrs/pthread08.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_exit" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/pthread09.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_self" 20 #endif 18 21 19 22 void test( void ) -
testsuites/psxtests/psxhdrs/pthread10.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_equal" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/pthread13.c
r8b2ecf85 r9854e336 23 23 { 24 24 pthread_attr_t attr; 25 int content sionscope;25 int contentionscope; 26 26 int status; 27 27 28 content sionscope = PTHREAD_SCOPE_SYSTEM;29 content sionscope = PTHREAD_SCOPE_PROCESS;28 contentionscope = PTHREAD_SCOPE_SYSTEM; 29 contentionscope = PTHREAD_SCOPE_PROCESS; 30 30 31 status = pthread_attr_setscope( &attr, content sionscope );31 status = pthread_attr_setscope( &attr, contentionscope ); 32 32 } -
testsuites/psxtests/psxhdrs/pthread21.c
r8b2ecf85 r9854e336 16 16 #include <pthread.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_detach" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/signal06.c
r8b2ecf85 r9854e336 25 25 signal_number = SIGALRM; 26 26 27 /* 28 * Really should not reference sa_handler and sa_signction simultaneously. 29 */ 30 31 act.sa_handler = SIG_DFL; 32 act.sa_handler = SIG_IGN; 33 act.sa_mask = 0; 34 act.sa_flags = SA_NOCLDSTOP; 35 act.sa_flags = SA_SIGINFO; 36 act.sa_sigaction = NULL; 37 27 38 result = sigaction( signal_number, &act, &oact ); 28 39 } -
testsuites/psxtests/psxhdrs/signal07.c
r8b2ecf85 r9854e336 16 16 #include <signal.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_kill" 20 #endif 21 18 22 void test( void ) 19 23 { -
testsuites/psxtests/psxhdrs/signal08.c
r8b2ecf85 r9854e336 16 16 #include <signal.h> 17 17 18 #ifndef _POSIX_THREADS 19 #error "rtems is supposed to have pthread_sigmask" 20 #endif 21 18 22 void test( void ) 19 23 {
Note: See TracChangeset
for help on using the changeset viewer.