diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 00:59:49 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 00:59:49 +0000 |
commit | ff6ab1b594d9f073ece9b7fedf1f6977f52aeee5 (patch) | |
tree | f0b2e3afb63f53a922a0c42137a6d6763548edc5 /c/src/tests/psxtests/psxhdrs | |
parent | 2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-ff6ab1b594d9f073ece9b7fedf1f6977f52aeee5.tar.bz2 |
2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Remove.
* ChangeLog: Remove.
* Makefile.am: Remove.
* configure.ac: Remove.
* psxtests.am: Remove.
* include/.cvsignore: Remove.
* include/Makefile.am: Remove.
* include/pmacros.h: Remove.
* psx01/.cvsignore: Remove.
* psx01/Makefile.am: Remove.
* psx01/init.c: Remove.
* psx01/psx01.scn: Remove.
* psx01/system.h: Remove.
* psx01/task.c: Remove.
* psx02/.cvsignore: Remove.
* psx02/Makefile.am: Remove.
* psx02/init.c: Remove.
* psx02/psx02.scn: Remove.
* psx02/system.h: Remove.
* psx02/task.c: Remove.
* psx03/.cvsignore: Remove.
* psx03/Makefile.am: Remove.
* psx03/init.c: Remove.
* psx03/psx03.scn: Remove.
* psx03/system.h: Remove.
* psx03/task.c: Remove.
* psx04/.cvsignore: Remove.
* psx04/Makefile.am: Remove.
* psx04/init.c: Remove.
* psx04/psx04.scn: Remove.
* psx04/system.h: Remove.
* psx04/task1.c: Remove.
* psx04/task2.c: Remove.
* psx04/task3.c: Remove.
* psx05/.cvsignore: Remove.
* psx05/Makefile.am: Remove.
* psx05/init.c: Remove.
* psx05/psx05.scn: Remove.
* psx05/system.h: Remove.
* psx05/task.c: Remove.
* psx05/task2.c: Remove.
* psx05/task3.c: Remove.
* psx06/.cvsignore: Remove.
* psx06/Makefile.am: Remove.
* psx06/init.c: Remove.
* psx06/psx06.scn: Remove.
* psx06/system.h: Remove.
* psx06/task.c: Remove.
* psx06/task2.c: Remove.
* psx07/.cvsignore: Remove.
* psx07/Makefile.am: Remove.
* psx07/init.c: Remove.
* psx07/psx07.scn: Remove.
* psx07/system.h: Remove.
* psx07/task.c: Remove.
* psx08/.cvsignore: Remove.
* psx08/Makefile.am: Remove.
* psx08/init.c: Remove.
* psx08/psx08.scn: Remove.
* psx08/system.h: Remove.
* psx08/task1.c: Remove.
* psx08/task2.c: Remove.
* psx08/task3.c: Remove.
* psx09/.cvsignore: Remove.
* psx09/Makefile.am: Remove.
* psx09/init.c: Remove.
* psx09/psx09.scn: Remove.
* psx09/system.h: Remove.
* psx10/.cvsignore: Remove.
* psx10/Makefile.am: Remove.
* psx10/init.c: Remove.
* psx10/psx10.scn: Remove.
* psx10/system.h: Remove.
* psx10/task.c: Remove.
* psx10/task2.c: Remove.
* psx10/task3.c: Remove.
* psx11/.cvsignore: Remove.
* psx11/Makefile.am: Remove.
* psx11/init.c: Remove.
* psx11/psx11.scn: Remove.
* psx11/system.h: Remove.
* psx11/task.c: Remove.
* psx12/.cvsignore: Remove.
* psx12/Makefile.am: Remove.
* psx12/init.c: Remove.
* psx12/psx12.scn: Remove.
* psx12/system.h: Remove.
* psx12/task.c: Remove.
* psx13/.cvsignore: Remove.
* psx13/Makefile.am: Remove.
* psx13/main.c: Remove.
* psx13/psx13.scn: Remove.
* psx13/test.c: Remove.
* psxcancel/.cvsignore: Remove.
* psxcancel/Makefile.am: Remove.
* psxcancel/init.c: Remove.
* psxcancel/psxcancel.scn: Remove.
* psxchroot01/.cvsignore: Remove.
* psxchroot01/Makefile.am: Remove.
* psxchroot01/main.c: Remove.
* psxchroot01/psxchroot01.scn: Remove.
* psxchroot01/test.c: Remove.
* psxfile01/.cvsignore: Remove.
* psxfile01/Makefile.am: Remove.
* psxfile01/main.c: Remove.
* psxfile01/psxfile01.scn: Remove.
* psxfile01/test.c: Remove.
* psxfile01/test_cat.c: Remove.
* psxfile01/test_extend.c: Remove.
* psxfile01/test_write.c: Remove.
* psxhdrs/.cvsignore: Remove.
* psxhdrs/Makefile.am: Remove.
* psxhdrs/clock01.c: Remove.
* psxhdrs/clock02.c: Remove.
* psxhdrs/clock03.c: Remove.
* psxhdrs/clock04.c: Remove.
* psxhdrs/clock05.c: Remove.
* psxhdrs/clock06.c: Remove.
* psxhdrs/cond01.c: Remove.
* psxhdrs/cond02.c: Remove.
* psxhdrs/cond03.c: Remove.
* psxhdrs/cond04.c: Remove.
* psxhdrs/cond05.c: Remove.
* psxhdrs/cond06.c: Remove.
* psxhdrs/cond07.c: Remove.
* psxhdrs/cond08.c: Remove.
* psxhdrs/cond09.c: Remove.
* psxhdrs/cond10.c: Remove.
* psxhdrs/key01.c: Remove.
* psxhdrs/key02.c: Remove.
* psxhdrs/key03.c: Remove.
* psxhdrs/key04.c: Remove.
* psxhdrs/mutex01.c: Remove.
* psxhdrs/mutex02.c: Remove.
* psxhdrs/mutex03.c: Remove.
* psxhdrs/mutex04.c: Remove.
* psxhdrs/mutex05.c: Remove.
* psxhdrs/mutex06.c: Remove.
* psxhdrs/mutex07.c: Remove.
* psxhdrs/mutex08.c: Remove.
* psxhdrs/mutex09.c: Remove.
* psxhdrs/mutex10.c: Remove.
* psxhdrs/mutex11.c: Remove.
* psxhdrs/mutex12.c: Remove.
* psxhdrs/mutex13.c: Remove.
* psxhdrs/mutex14.c: Remove.
* psxhdrs/mutex15.c: Remove.
* psxhdrs/mutex16.c: Remove.
* psxhdrs/proc01.c: Remove.
* psxhdrs/proc02.c: Remove.
* psxhdrs/proc03.c: Remove.
* psxhdrs/proc04.c: Remove.
* psxhdrs/proc05.c: Remove.
* psxhdrs/proc06.c: Remove.
* psxhdrs/proc07.c: Remove.
* psxhdrs/proc08.c: Remove.
* psxhdrs/proc09.c: Remove.
* psxhdrs/proc10.c: Remove.
* psxhdrs/proc11.c: Remove.
* psxhdrs/proc12.c: Remove.
* psxhdrs/proc13.c: Remove.
* psxhdrs/proc14.c: Remove.
* psxhdrs/pthread01.c: Remove.
* psxhdrs/pthread02.c: Remove.
* psxhdrs/pthread03.c: Remove.
* psxhdrs/pthread04.c: Remove.
* psxhdrs/pthread05.c: Remove.
* psxhdrs/pthread06.c: Remove.
* psxhdrs/pthread07.c: Remove.
* psxhdrs/pthread08.c: Remove.
* psxhdrs/pthread09.c: Remove.
* psxhdrs/pthread10.c: Remove.
* psxhdrs/pthread11.c: Remove.
* psxhdrs/pthread12.c: Remove.
* psxhdrs/pthread13.c: Remove.
* psxhdrs/pthread14.c: Remove.
* psxhdrs/pthread15.c: Remove.
* psxhdrs/pthread16.c: Remove.
* psxhdrs/pthread17.c: Remove.
* psxhdrs/pthread18.c: Remove.
* psxhdrs/pthread19.c: Remove.
* psxhdrs/pthread20.c: Remove.
* psxhdrs/pthread21.c: Remove.
* psxhdrs/pthread22.c: Remove.
* psxhdrs/pthread23.c: Remove.
* psxhdrs/pthread24.c: Remove.
* psxhdrs/pthread25.c: Remove.
* psxhdrs/pthread26.c: Remove.
* psxhdrs/pthread27.c: Remove.
* psxhdrs/pthread28.c: Remove.
* psxhdrs/pthread29.c: Remove.
* psxhdrs/pthread30.c: Remove.
* psxhdrs/pthread31.c: Remove.
* psxhdrs/pthread32.c: Remove.
* psxhdrs/pthread33.c: Remove.
* psxhdrs/pthread34.c: Remove.
* psxhdrs/pthread35.c: Remove.
* psxhdrs/pthread36.c: Remove.
* psxhdrs/sched01.c: Remove.
* psxhdrs/sched02.c: Remove.
* psxhdrs/sched03.c: Remove.
* psxhdrs/sched04.c: Remove.
* psxhdrs/sched05.c: Remove.
* psxhdrs/sched06.c: Remove.
* psxhdrs/sched07.c: Remove.
* psxhdrs/sched08.c: Remove.
* psxhdrs/signal01.c: Remove.
* psxhdrs/signal02.c: Remove.
* psxhdrs/signal03.c: Remove.
* psxhdrs/signal04.c: Remove.
* psxhdrs/signal05.c: Remove.
* psxhdrs/signal06.c: Remove.
* psxhdrs/signal07.c: Remove.
* psxhdrs/signal08.c: Remove.
* psxhdrs/signal09.c: Remove.
* psxhdrs/signal10.c: Remove.
* psxhdrs/signal11.c: Remove.
* psxhdrs/signal12.c: Remove.
* psxhdrs/signal13.c: Remove.
* psxhdrs/signal14.c: Remove.
* psxhdrs/signal15.c: Remove.
* psxhdrs/signal16.c: Remove.
* psxhdrs/signal17.c: Remove.
* psxhdrs/signal18.c: Remove.
* psxhdrs/signal19.c: Remove.
* psxhdrs/signal20.c: Remove.
* psxhdrs/signal21.c: Remove.
* psxhdrs/signal22.c: Remove.
* psxhdrs/signal23.c: Remove.
* psxhdrs/sync01.c: Remove.
* psxhdrs/sync02.c: Remove.
* psxhdrs/sync03.c: Remove.
* psxhdrs/time01.c: Remove.
* psxhdrs/time02.c: Remove.
* psxhdrs/time03.c: Remove.
* psxhdrs/time04.c: Remove.
* psxhdrs/time05.c: Remove.
* psxhdrs/time06.c: Remove.
* psxhdrs/time07.c: Remove.
* psxhdrs/time08.c: Remove.
* psxhdrs/time09.c: Remove.
* psxhdrs/time10.c: Remove.
* psxhdrs/time11.c: Remove.
* psxhdrs/time12.c: Remove.
* psxhdrs/time13.c: Remove.
* psxhdrs/timer01.c: Remove.
* psxhdrs/timer02.c: Remove.
* psxhdrs/timer03.c: Remove.
* psxhdrs/timer04.c: Remove.
* psxhdrs/timer05.c: Remove.
* psxhdrs/timer06.c: Remove.
* psxhdrs/timer07.c: Remove.
* psxmount/.cvsignore: Remove.
* psxmount/Makefile.am: Remove.
* psxmount/main.c: Remove.
* psxmount/psxmount.scn: Remove.
* psxmount/test.c: Remove.
* psxmsgq01/.cvsignore: Remove.
* psxmsgq01/Makefile.am: Remove.
* psxmsgq01/init.c: Remove.
* psxmsgq01/psxmsgq01.scn: Remove.
* psxmsgq01/system.h: Remove.
* psxreaddir/.cvsignore: Remove.
* psxreaddir/Makefile.am: Remove.
* psxreaddir/main.c: Remove.
* psxreaddir/psxreaddir.scn: Remove.
* psxreaddir/test.c: Remove.
* psxsem01/.cvsignore: Remove.
* psxsem01/Makefile.am: Remove.
* psxsem01/init.c: Remove.
* psxsem01/psxsem01.scn: Remove.
* psxsem01/system.h: Remove.
* psxstat/.cvsignore: Remove.
* psxstat/Makefile.am: Remove.
* psxstat/main.c: Remove.
* psxstat/psxstat.scn: Remove.
* psxstat/test.c: Remove.
* psxtime/.cvsignore: Remove.
* psxtime/Makefile.am: Remove.
* psxtime/main.c: Remove.
* psxtime/psxtime.scn: Remove.
* psxtime/test.c: Remove.
* psxtimer/.cvsignore: Remove.
* psxtimer/Makefile.am: Remove.
* psxtimer/psxtimer.c: Remove.
* psxtimer/psxtimer.scn: Remove.
* psxtimer/system.h: Remove.
Diffstat (limited to 'c/src/tests/psxtests/psxhdrs')
142 files changed, 0 insertions, 4055 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/.cvsignore b/c/src/tests/psxtests/psxhdrs/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/tests/psxtests/psxhdrs/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/tests/psxtests/psxhdrs/Makefile.am b/c/src/tests/psxtests/psxhdrs/Makefile.am deleted file mode 100644 index 033681de6c..0000000000 --- a/c/src/tests/psxtests/psxhdrs/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -## -## $Id$ -## - - -C_FILES = clock01.c clock02.c clock03.c clock04.c clock05.c clock06.c \ - cond01.c cond02.c cond03.c cond04.c cond05.c cond06.c cond07.c cond08.c \ - cond09.c cond10.c key01.c key02.c key03.c key04.c mutex01.c mutex02.c \ - mutex03.c mutex04.c mutex05.c mutex06.c mutex07.c mutex08.c mutex09.c \ - mutex10.c mutex11.c mutex12.c mutex13.c mutex14.c mutex15.c mutex16.c \ - pthread01.c pthread02.c pthread03.c pthread04.c pthread05.c pthread06.c \ - pthread07.c pthread08.c pthread09.c pthread10.c pthread11.c pthread12.c \ - pthread13.c pthread14.c pthread15.c pthread16.c pthread17.c pthread18.c \ - pthread19.c pthread20.c pthread21.c pthread22.c pthread23.c pthread24.c \ - pthread25.c pthread26.c pthread27.c pthread28.c pthread29.c pthread30.c \ - pthread31.c pthread32.c pthread33.c pthread34.c pthread35.c pthread36.c \ - proc01.c proc02.c proc03.c proc04.c proc05.c proc06.c proc07.c proc08.c \ - proc09.c proc10.c proc11.c proc12.c proc13.c proc14.c sched01.c \ - sched02.c sched03.c sched04.c sched05.c sched06.c sched07.c sched08.c \ - signal01.c signal02.c signal03.c signal04.c signal05.c signal06.c \ - signal07.c signal08.c signal09.c signal10.c signal11.c signal12.c \ - signal13.c signal14.c signal15.c signal16.c signal17.c signal18.c \ - signal19.c signal20.c signal21.c signal22.c signal23.c sync01.c sync02.c \ - sync03.c time01.c time02.c time03.c time04.c time05.c time06.c time07.c \ - time08.c time09.c time10.c time11.c time12.c time13.c timer01.c timer02.c \ - timer03.c timer04.c timer05.c timer06.c timer07.c -C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT)) - -SRCS = $(C_FILES) -OBJS = $(C_O_FILES) - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -all-local: ${ARCH} ${OBJS} - -EXTRA_DIST = $(C_FILES) - -include $(top_srcdir)/../automake/local.am diff --git a/c/src/tests/psxtests/psxhdrs/clock01.c b/c/src/tests/psxtests/psxhdrs/clock01.c deleted file mode 100644 index da3a18635d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/clock01.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/clock02.c b/c/src/tests/psxtests/psxhdrs/clock02.c deleted file mode 100644 index a3d6849b6c..0000000000 --- a/c/src/tests/psxtests/psxhdrs/clock02.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/clock03.c b/c/src/tests/psxtests/psxhdrs/clock03.c deleted file mode 100644 index a3e48bf402..0000000000 --- a/c/src/tests/psxtests/psxhdrs/clock03.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/clock04.c b/c/src/tests/psxtests/psxhdrs/clock04.c deleted file mode 100644 index 722be53066..0000000000 --- a/c/src/tests/psxtests/psxhdrs/clock04.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/clock05.c b/c/src/tests/psxtests/psxhdrs/clock05.c deleted file mode 100644 index 53d3753935..0000000000 --- a/c/src/tests/psxtests/psxhdrs/clock05.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/clock06.c b/c/src/tests/psxtests/psxhdrs/clock06.c deleted file mode 100644 index 4e7f8104bc..0000000000 --- a/c/src/tests/psxtests/psxhdrs/clock06.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond01.c b/c/src/tests/psxtests/psxhdrs/cond01.c deleted file mode 100644 index 26077b8718..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond01.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond02.c b/c/src/tests/psxtests/psxhdrs/cond02.c deleted file mode 100644 index 05842bd7f0..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond02.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond03.c b/c/src/tests/psxtests/psxhdrs/cond03.c deleted file mode 100644 index f12457ea10..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond03.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond04.c b/c/src/tests/psxtests/psxhdrs/cond04.c deleted file mode 100644 index cd8e7e26a9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond04.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond05.c b/c/src/tests/psxtests/psxhdrs/cond05.c deleted file mode 100644 index 08b35b4473..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond05.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond06.c b/c/src/tests/psxtests/psxhdrs/cond06.c deleted file mode 100644 index 7bd3078789..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond06.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond07.c b/c/src/tests/psxtests/psxhdrs/cond07.c deleted file mode 100644 index dadcae1494..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond07.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond08.c b/c/src/tests/psxtests/psxhdrs/cond08.c deleted file mode 100644 index adae781984..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond08.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond09.c b/c/src/tests/psxtests/psxhdrs/cond09.c deleted file mode 100644 index 30f053f04d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond09.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/cond10.c b/c/src/tests/psxtests/psxhdrs/cond10.c deleted file mode 100644 index 4560c2a6a9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/cond10.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/key01.c b/c/src/tests/psxtests/psxhdrs/key01.c deleted file mode 100644 index 907838d4c0..0000000000 --- a/c/src/tests/psxtests/psxhdrs/key01.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/key02.c b/c/src/tests/psxtests/psxhdrs/key02.c deleted file mode 100644 index 538bbd88c3..0000000000 --- a/c/src/tests/psxtests/psxhdrs/key02.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/key03.c b/c/src/tests/psxtests/psxhdrs/key03.c deleted file mode 100644 index 38addb1964..0000000000 --- a/c/src/tests/psxtests/psxhdrs/key03.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/key04.c b/c/src/tests/psxtests/psxhdrs/key04.c deleted file mode 100644 index 3e1cc4e3c1..0000000000 --- a/c/src/tests/psxtests/psxhdrs/key04.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex01.c b/c/src/tests/psxtests/psxhdrs/mutex01.c deleted file mode 100644 index 675015206f..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex01.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex02.c b/c/src/tests/psxtests/psxhdrs/mutex02.c deleted file mode 100644 index 7bab4ac31e..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex02.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex03.c b/c/src/tests/psxtests/psxhdrs/mutex03.c deleted file mode 100644 index beb59ad5db..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex03.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex04.c b/c/src/tests/psxtests/psxhdrs/mutex04.c deleted file mode 100644 index 2afe0997a3..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex04.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex05.c b/c/src/tests/psxtests/psxhdrs/mutex05.c deleted file mode 100644 index 5b75d4c6f0..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex05.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex06.c b/c/src/tests/psxtests/psxhdrs/mutex06.c deleted file mode 100644 index 01ada9e875..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex06.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex07.c b/c/src/tests/psxtests/psxhdrs/mutex07.c deleted file mode 100644 index ec5f880cc6..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex07.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex08.c b/c/src/tests/psxtests/psxhdrs/mutex08.c deleted file mode 100644 index d17b7b871f..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex08.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex09.c b/c/src/tests/psxtests/psxhdrs/mutex09.c deleted file mode 100644 index 28fc878344..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex09.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex10.c b/c/src/tests/psxtests/psxhdrs/mutex10.c deleted file mode 100644 index 40852dd51b..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex10.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex11.c b/c/src/tests/psxtests/psxhdrs/mutex11.c deleted file mode 100644 index 0b9e4a580c..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex11.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex12.c b/c/src/tests/psxtests/psxhdrs/mutex12.c deleted file mode 100644 index 23a76eb5cb..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex12.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex13.c b/c/src/tests/psxtests/psxhdrs/mutex13.c deleted file mode 100644 index 255c5d18c9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex13.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex14.c b/c/src/tests/psxtests/psxhdrs/mutex14.c deleted file mode 100644 index 01b453de05..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex14.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex15.c b/c/src/tests/psxtests/psxhdrs/mutex15.c deleted file mode 100644 index 8cac42f8f1..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex15.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/mutex16.c b/c/src/tests/psxtests/psxhdrs/mutex16.c deleted file mode 100644 index f4aa8e657f..0000000000 --- a/c/src/tests/psxtests/psxhdrs/mutex16.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/proc01.c b/c/src/tests/psxtests/psxhdrs/proc01.c deleted file mode 100644 index 7e8d47b153..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc01.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - pid_t pid; - - pid = getpid(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc02.c b/c/src/tests/psxtests/psxhdrs/proc02.c deleted file mode 100644 index f4632be272..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc02.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - pid_t pid; - - pid = getppid(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc03.c b/c/src/tests/psxtests/psxhdrs/proc03.c deleted file mode 100644 index 79ceee5deb..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc03.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> -#include <sys/types.h> - -void test( void ) -{ - uid_t uid; - - uid = getuid(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc04.c b/c/src/tests/psxtests/psxhdrs/proc04.c deleted file mode 100644 index bb4e9f698d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc04.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> -#include <sys/types.h> - -void test( void ) -{ - uid_t uid; - - uid = geteuid(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc05.c b/c/src/tests/psxtests/psxhdrs/proc05.c deleted file mode 100644 index a5a46fa7bb..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc05.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> -#include <sys/types.h> - -void test( void ) -{ - gid_t gid; - - gid = getgid(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc06.c b/c/src/tests/psxtests/psxhdrs/proc06.c deleted file mode 100644 index 833b597b17..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc06.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> -#include <sys/types.h> - -void test( void ) -{ - gid_t gid; - - gid = getegid(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc07.c b/c/src/tests/psxtests/psxhdrs/proc07.c deleted file mode 100644 index f1fce7af2a..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc07.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - uid_t uid; - int result; - - uid = 0; - - result = setuid( uid ); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc08.c b/c/src/tests/psxtests/psxhdrs/proc08.c deleted file mode 100644 index d43ebe53e3..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc08.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - gid_t gid; - int result; - - gid = 0; - - result = setgid( gid ); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc09.c b/c/src/tests/psxtests/psxhdrs/proc09.c deleted file mode 100644 index cbe197c8fa..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc09.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/proc10.c b/c/src/tests/psxtests/psxhdrs/proc10.c deleted file mode 100644 index 96ad638198..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc10.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - char *loginname; - - loginname = getlogin(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc11.c b/c/src/tests/psxtests/psxhdrs/proc11.c deleted file mode 100644 index 24eab9c2e3..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc11.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> -#include <limits.h> /* for LOGIN_NAME_MAX */ - -void test( void ) -{ - char loginnamebuffer[ LOGIN_NAME_MAX ]; - int result; - - result = getlogin_r( loginnamebuffer, LOGIN_NAME_MAX ); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc12.c b/c/src/tests/psxtests/psxhdrs/proc12.c deleted file mode 100644 index f226062fdd..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc12.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - pid_t pgrp; - - pgrp = getpgrp(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc13.c b/c/src/tests/psxtests/psxhdrs/proc13.c deleted file mode 100644 index e8cdaa4d83..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc13.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - pid_t pid; - - pid = setsid(); -} diff --git a/c/src/tests/psxtests/psxhdrs/proc14.c b/c/src/tests/psxtests/psxhdrs/proc14.c deleted file mode 100644 index dfb497d075..0000000000 --- a/c/src/tests/psxtests/psxhdrs/proc14.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <sys/types.h> - -void test( void ) -{ - pid_t pid = 0; - pid_t pgid = 0; - int result; - - result = setpgid( pid, pgid ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread01.c b/c/src/tests/psxtests/psxhdrs/pthread01.c deleted file mode 100644 index f0e397ae2d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread01.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread02.c b/c/src/tests/psxtests/psxhdrs/pthread02.c deleted file mode 100644 index 4cb7692868..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread02.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread03.c b/c/src/tests/psxtests/psxhdrs/pthread03.c deleted file mode 100644 index 1ad5913e67..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread03.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread04.c b/c/src/tests/psxtests/psxhdrs/pthread04.c deleted file mode 100644 index 881ef3a7c9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread04.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread05.c b/c/src/tests/psxtests/psxhdrs/pthread05.c deleted file mode 100644 index 1f02dc0f29..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread05.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread06.c b/c/src/tests/psxtests/psxhdrs/pthread06.c deleted file mode 100644 index afc74ebfbc..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread06.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread07.c b/c/src/tests/psxtests/psxhdrs/pthread07.c deleted file mode 100644 index 399a928c56..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread07.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREADS -#error "rtems is supposed to have pthread_create" -#endif - -void *test_task( - void * arg -) -{ - for ( ; ; ) - ; - return NULL; -} - -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/c/src/tests/psxtests/psxhdrs/pthread08.c b/c/src/tests/psxtests/psxhdrs/pthread08.c deleted file mode 100644 index 072833ae5b..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread08.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread09.c b/c/src/tests/psxtests/psxhdrs/pthread09.c deleted file mode 100644 index 4252d17ee7..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread09.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread10.c b/c/src/tests/psxtests/psxhdrs/pthread10.c deleted file mode 100644 index 5e2967492f..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread10.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread11.c b/c/src/tests/psxtests/psxhdrs/pthread11.c deleted file mode 100644 index 2fc3263614..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread11.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_setschedparam" -#endif - -void test( void ) -{ - pthread_t thread; - int policy; - struct sched_param param; - int result; - - thread = 0; - - policy = SCHED_OTHER; - policy = SCHED_FIFO; - policy = SCHED_RR; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - /* - * really should use sched_get_priority_min() and sched_get_priority_max() - */ - - param.sched_priority = 0; -#ifdef _POSIX_SPORADIC_SERVER - param.ss_low_priority = 0; - param.ss_replenish_period.tv_sec = 0; - param.ss_replenish_period.tv_nsec = 0; - param.ss_initial_budget.tv_sec = 0; - param.ss_initial_budget.tv_nsec = 0; -#endif - - result = pthread_setschedparam( thread, policy, ¶m ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread12.c b/c/src/tests/psxtests/psxhdrs/pthread12.c deleted file mode 100644 index 44c2f5eeeb..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread12.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_getschedparam" -#endif - -void test( void ) -{ - pthread_t thread; - int policy; - struct sched_param param; - int result; - - thread = 0; - - result = pthread_getschedparam( thread, &policy, ¶m ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread13.c b/c/src/tests/psxtests/psxhdrs/pthread13.c deleted file mode 100644 index 717bc49356..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread13.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setscope" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int contentionscope; - int result; - - contentionscope = PTHREAD_SCOPE_SYSTEM; - contentionscope = PTHREAD_SCOPE_PROCESS; - - result = pthread_attr_setscope( &attr, contentionscope ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread14.c b/c/src/tests/psxtests/psxhdrs/pthread14.c deleted file mode 100644 index a20bc30a00..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread14.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getscope" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int contentionscope; - int result; - - result = pthread_attr_getscope( &attr, &contentionscope ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread15.c b/c/src/tests/psxtests/psxhdrs/pthread15.c deleted file mode 100644 index e5b0d7f6dd..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread15.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setinheritsched" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int inheritsched; - int result; - - inheritsched = PTHREAD_INHERIT_SCHED; - inheritsched = PTHREAD_EXPLICIT_SCHED; - - result = pthread_attr_setinheritsched( &attr, inheritsched ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread16.c b/c/src/tests/psxtests/psxhdrs/pthread16.c deleted file mode 100644 index 1d360b6ea6..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread16.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getinheritsched" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int inheritsched; - int result; - - result = pthread_attr_getinheritsched( &attr, &inheritsched ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread17.c b/c/src/tests/psxtests/psxhdrs/pthread17.c deleted file mode 100644 index 89dff22436..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread17.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setschedpolicy" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int policy; - int result; - - policy = SCHED_FIFO; - policy = SCHED_RR; - policy = SCHED_OTHER; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - result = pthread_attr_setschedpolicy( &attr, policy ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread18.c b/c/src/tests/psxtests/psxhdrs/pthread18.c deleted file mode 100644 index 9f6eec7051..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread18.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getschedpolicy" -#endif - -void test( void ) -{ - pthread_attr_t attr; - int policy; - int result; - - result = pthread_attr_getschedpolicy( &attr, &policy ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread19.c b/c/src/tests/psxtests/psxhdrs/pthread19.c deleted file mode 100644 index b1f1f98ff6..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread19.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_setschedparam" -#endif - -void test( void ) -{ - pthread_attr_t attr; - struct sched_param param; - int result; - - result = pthread_attr_setschedparam( &attr, ¶m ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread20.c b/c/src/tests/psxtests/psxhdrs/pthread20.c deleted file mode 100644 index bd3cb7305d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread20.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_attr_getschedparam" -#endif - -void test( void ) -{ - pthread_attr_t attr; - struct sched_param param; - int result; - - result = pthread_attr_getschedparam( &attr, ¶m ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread21.c b/c/src/tests/psxtests/psxhdrs/pthread21.c deleted file mode 100644 index dd16a2406b..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread21.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread22.c b/c/src/tests/psxtests/psxhdrs/pthread22.c deleted file mode 100644 index 46587d12e3..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread22.c +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_setschedparam" -#endif - -void test( void ) -{ - pthread_t thread = 0; - int policy; - struct sched_param param; - int result; - - policy = SCHED_OTHER; - policy = SCHED_FIFO; - policy = SCHED_RR; -#ifdef _POSIX_SPORADIC_SERVER - policy = SCHED_SPORADIC; -#endif - - /* - * really should use sched_get_priority_min() and sched_get_priority_max() - */ - - param.sched_priority = 0; -#ifdef _POSIX_SPORADIC_SERVER - param.ss_low_priority = 0; - param.ss_replenish_period.tv_sec = 0; - param.ss_replenish_period.tv_nsec = 0; - param.ss_initial_budget.tv_sec = 0; - param.ss_initial_budget.tv_nsec = 0; -#endif - - result = pthread_setschedparam( thread, policy, ¶m ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread23.c b/c/src/tests/psxtests/psxhdrs/pthread23.c deleted file mode 100644 index 4d2dd99665..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread23.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <pthread.h> - -#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING -#error "RTEMS is supposed to have pthread_getschedparam" -#endif - -void test( void ) -{ - pthread_t thread = 0; - int policy; - struct sched_param param; - int result; - - result = pthread_getschedparam( thread, &policy, ¶m ); -} diff --git a/c/src/tests/psxtests/psxhdrs/pthread24.c b/c/src/tests/psxtests/psxhdrs/pthread24.c deleted file mode 100644 index ce62367ca1..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread24.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread25.c b/c/src/tests/psxtests/psxhdrs/pthread25.c deleted file mode 100644 index bab821b625..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread25.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread26.c b/c/src/tests/psxtests/psxhdrs/pthread26.c deleted file mode 100644 index dd3e8f1500..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread26.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread27.c b/c/src/tests/psxtests/psxhdrs/pthread27.c deleted file mode 100644 index 51e5cfde46..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread27.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread28.c b/c/src/tests/psxtests/psxhdrs/pthread28.c deleted file mode 100644 index e1e72520b0..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread28.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread29.c b/c/src/tests/psxtests/psxhdrs/pthread29.c deleted file mode 100644 index 206260540b..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread29.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread30.c b/c/src/tests/psxtests/psxhdrs/pthread30.c deleted file mode 100644 index 32b4ac94f4..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread30.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread31.c b/c/src/tests/psxtests/psxhdrs/pthread31.c deleted file mode 100644 index d2f399dda3..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread31.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread32.c b/c/src/tests/psxtests/psxhdrs/pthread32.c deleted file mode 100644 index be193ae31e..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread32.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread33.c b/c/src/tests/psxtests/psxhdrs/pthread33.c deleted file mode 100644 index 122e276815..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread33.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread34.c b/c/src/tests/psxtests/psxhdrs/pthread34.c deleted file mode 100644 index 096561f951..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread34.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread35.c b/c/src/tests/psxtests/psxhdrs/pthread35.c deleted file mode 100644 index 698cdfcf20..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread35.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/pthread36.c b/c/src/tests/psxtests/psxhdrs/pthread36.c deleted file mode 100644 index 9e38bee279..0000000000 --- a/c/src/tests/psxtests/psxhdrs/pthread36.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched01.c b/c/src/tests/psxtests/psxhdrs/sched01.c deleted file mode 100644 index 6b92a3cf77..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched01.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched02.c b/c/src/tests/psxtests/psxhdrs/sched02.c deleted file mode 100644 index da7b668857..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched02.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched03.c b/c/src/tests/psxtests/psxhdrs/sched03.c deleted file mode 100644 index 2e7f5b3d47..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched03.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched04.c b/c/src/tests/psxtests/psxhdrs/sched04.c deleted file mode 100644 index e5adda719a..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched04.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched05.c b/c/src/tests/psxtests/psxhdrs/sched05.c deleted file mode 100644 index 1d483866d1..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched05.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched06.c b/c/src/tests/psxtests/psxhdrs/sched06.c deleted file mode 100644 index 7b85230594..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched06.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched07.c b/c/src/tests/psxtests/psxhdrs/sched07.c deleted file mode 100644 index b00056e2e6..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched07.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/sched08.c b/c/src/tests/psxtests/psxhdrs/sched08.c deleted file mode 100644 index 56f89df3a0..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sched08.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal01.c b/c/src/tests/psxtests/psxhdrs/signal01.c deleted file mode 100644 index f897b36211..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal01.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal02.c b/c/src/tests/psxtests/psxhdrs/signal02.c deleted file mode 100644 index c9e8c0a0d6..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal02.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal03.c b/c/src/tests/psxtests/psxhdrs/signal03.c deleted file mode 100644 index 672dff6761..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal03.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - sigset_t signal_set; - int result; - - result = sigfillset( &signal_set ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal04.c b/c/src/tests/psxtests/psxhdrs/signal04.c deleted file mode 100644 index 58c9c54900..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal04.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal05.c b/c/src/tests/psxtests/psxhdrs/signal05.c deleted file mode 100644 index a6bf097830..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal05.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - sigset_t signal_set; - int result; - - result = sigemptyset( &signal_set ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal06.c b/c/src/tests/psxtests/psxhdrs/signal06.c deleted file mode 100644 index 4ab7bbcdb5..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal06.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal07.c b/c/src/tests/psxtests/psxhdrs/signal07.c deleted file mode 100644 index c40cf71db4..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal07.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal08.c b/c/src/tests/psxtests/psxhdrs/signal08.c deleted file mode 100644 index 9cb959aea9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal08.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal09.c b/c/src/tests/psxtests/psxhdrs/signal09.c deleted file mode 100644 index 902fb519cd..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal09.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal10.c b/c/src/tests/psxtests/psxhdrs/signal10.c deleted file mode 100644 index a366e74650..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal10.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - sigset_t set; - int sig; - int result; - - result = sigwait( &set, &sig ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal11.c b/c/src/tests/psxtests/psxhdrs/signal11.c deleted file mode 100644 index 3afc6347e8..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal11.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - int signal_number; - int result; - - signal_number = SIGALRM; - - result = raise( signal_number ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal12.c b/c/src/tests/psxtests/psxhdrs/signal12.c deleted file mode 100644 index 8533359b17..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal12.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal13.c b/c/src/tests/psxtests/psxhdrs/signal13.c deleted file mode 100644 index 89f8f4586d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal13.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal14.c b/c/src/tests/psxtests/psxhdrs/signal14.c deleted file mode 100644 index 8f40b0c489..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal14.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - sigset_t set; - int result; - - (void) sigemptyset( &set ); - - result = sigpending( &set ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal15.c b/c/src/tests/psxtests/psxhdrs/signal15.c deleted file mode 100644 index 365dc97030..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal15.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - sigset_t sigmask; - int result; - - (void) sigemptyset( &sigmask ); - - result = sigsuspend( &sigmask ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal16.c b/c/src/tests/psxtests/psxhdrs/signal16.c deleted file mode 100644 index 90b159b02d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal16.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal17.c b/c/src/tests/psxtests/psxhdrs/signal17.c deleted file mode 100644 index fe367d0d88..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal17.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal18.c b/c/src/tests/psxtests/psxhdrs/signal18.c deleted file mode 100644 index 69cd84b52a..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal18.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/signal19.c b/c/src/tests/psxtests/psxhdrs/signal19.c deleted file mode 100644 index fdc0558417..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal19.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - sigset_t set; - int sig; - int result; - - (void) sigemptyset( &set ); - - result = sigwait( &set, &sig ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal20.c b/c/src/tests/psxtests/psxhdrs/signal20.c deleted file mode 100644 index 639738e1c6..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal20.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - unsigned int seconds; - unsigned int result; - - seconds = 10; - - result = alarm( seconds ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal21.c b/c/src/tests/psxtests/psxhdrs/signal21.c deleted file mode 100644 index c981ab217c..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal21.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -void test( void ) -{ - int result; - - result = pause(); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal22.c b/c/src/tests/psxtests/psxhdrs/signal22.c deleted file mode 100644 index 547faa51a7..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal22.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> - -void test( void ) -{ - unsigned int seconds; - unsigned int result; - - seconds = 10; - - result = sleep( seconds ); -} diff --git a/c/src/tests/psxtests/psxhdrs/signal23.c b/c/src/tests/psxtests/psxhdrs/signal23.c deleted file mode 100644 index 4a6af9b6cd..0000000000 --- a/c/src/tests/psxtests/psxhdrs/signal23.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-2003. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <signal.h> - -useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval)); -void test( void ) -{ - useconds_t useconds; - useconds_t interval; - useconds_t result; - - useconds = 10; - interval = 10; - - result = ualarm( useconds, interval ); -} diff --git a/c/src/tests/psxtests/psxhdrs/sync01.c b/c/src/tests/psxtests/psxhdrs/sync01.c deleted file mode 100644 index 7ebb18509c..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sync01.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-2003. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> - -void test( void ) -{ - int fd; - int result; - - fd = 4; - result = fsync( fd ); -} diff --git a/c/src/tests/psxtests/psxhdrs/sync02.c b/c/src/tests/psxtests/psxhdrs/sync02.c deleted file mode 100644 index 425feb10fd..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sync02.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-2003. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> - -void test( void ) -{ - int fd; - int result; - - fd = 4; - result = fdatasync( fd ); -} diff --git a/c/src/tests/psxtests/psxhdrs/sync03.c b/c/src/tests/psxtests/psxhdrs/sync03.c deleted file mode 100644 index 44564c0715..0000000000 --- a/c/src/tests/psxtests/psxhdrs/sync03.c +++ /dev/null @@ -1,20 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-2003. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> - -void test( void ) -{ - sync(); -} diff --git a/c/src/tests/psxtests/psxhdrs/time01.c b/c/src/tests/psxtests/psxhdrs/time01.c deleted file mode 100644 index 3e77c3f405..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time01.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <time.h> - -void test( void ) -{ - clock_t clock_ticks; - - clock_ticks = clock(); -} diff --git a/c/src/tests/psxtests/psxhdrs/time02.c b/c/src/tests/psxtests/psxhdrs/time02.c deleted file mode 100644 index 4065559845..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time02.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/time03.c b/c/src/tests/psxtests/psxhdrs/time03.c deleted file mode 100644 index 329dfe89ec..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time03.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/time04.c b/c/src/tests/psxtests/psxhdrs/time04.c deleted file mode 100644 index 2ff1b4f145..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time04.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <time.h> - -void test( void ) -{ - time_t new_time; - - new_time = time( &new_time ); -} diff --git a/c/src/tests/psxtests/psxhdrs/time05.c b/c/src/tests/psxtests/psxhdrs/time05.c deleted file mode 100644 index b8e492a0e9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time05.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/time06.c b/c/src/tests/psxtests/psxhdrs/time06.c deleted file mode 100644 index 42fdadc394..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time06.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <time.h> - -void test( void ) -{ - char *buffer; - struct tm timestruct; - - buffer = asctime( ×truct ); -} diff --git a/c/src/tests/psxtests/psxhdrs/time07.c b/c/src/tests/psxtests/psxhdrs/time07.c deleted file mode 100644 index 9928ae9a9d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time07.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <time.h> - -void test( void ) -{ - char *buffer; - time_t time; - - buffer = ctime( &time ); -} diff --git a/c/src/tests/psxtests/psxhdrs/time08.c b/c/src/tests/psxtests/psxhdrs/time08.c deleted file mode 100644 index 62daec0726..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time08.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <time.h> - -void test( void ) -{ - time_t time; - struct tm *timestruct; - - timestruct = gmtime( &time ); -} diff --git a/c/src/tests/psxtests/psxhdrs/time09.c b/c/src/tests/psxtests/psxhdrs/time09.c deleted file mode 100644 index c0377dd873..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time09.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <time.h> - -void test( void ) -{ - time_t time; - struct tm *timestruct; - - timestruct = localtime( &time ); -} diff --git a/c/src/tests/psxtests/psxhdrs/time10.c b/c/src/tests/psxtests/psxhdrs/time10.c deleted file mode 100644 index 75325851dd..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time10.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/time11.c b/c/src/tests/psxtests/psxhdrs/time11.c deleted file mode 100644 index 575e662568..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time11.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/time12.c b/c/src/tests/psxtests/psxhdrs/time12.c deleted file mode 100644 index 26683b5c5a..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time12.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/time13.c b/c/src/tests/psxtests/psxhdrs/time13.c deleted file mode 100644 index e571e24f68..0000000000 --- a/c/src/tests/psxtests/psxhdrs/time13.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/timer01.c b/c/src/tests/psxtests/psxhdrs/timer01.c deleted file mode 100644 index 8f71a30055..0000000000 --- a/c/src/tests/psxtests/psxhdrs/timer01.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/timer02.c b/c/src/tests/psxtests/psxhdrs/timer02.c deleted file mode 100644 index 5949300b52..0000000000 --- a/c/src/tests/psxtests/psxhdrs/timer02.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/timer03.c b/c/src/tests/psxtests/psxhdrs/timer03.c deleted file mode 100644 index f30bb3047d..0000000000 --- a/c/src/tests/psxtests/psxhdrs/timer03.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/timer04.c b/c/src/tests/psxtests/psxhdrs/timer04.c deleted file mode 100644 index 7de072d58c..0000000000 --- a/c/src/tests/psxtests/psxhdrs/timer04.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/timer05.c b/c/src/tests/psxtests/psxhdrs/timer05.c deleted file mode 100644 index 71f5a7a211..0000000000 --- a/c/src/tests/psxtests/psxhdrs/timer05.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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/c/src/tests/psxtests/psxhdrs/timer06.c b/c/src/tests/psxtests/psxhdrs/timer06.c deleted file mode 100644 index 833aece2c9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/timer06.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $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 ); -} diff --git a/c/src/tests/psxtests/psxhdrs/timer07.c b/c/src/tests/psxtests/psxhdrs/timer07.c deleted file mode 100644 index 47016934e9..0000000000 --- a/c/src/tests/psxtests/psxhdrs/timer07.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This test file is used to verify that the header files associated with - * invoking this function are correct. - * - * COPYRIGHT (c) 1989-2003. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include <unistd.h> - -void test( void ) -{ - unsigned long usec; - unsigned result; - - usec = 0; - result = usleep( usec ); -} |