summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
commit1b4f2b305c95a832a259e4c4944f1a0981676eba (patch)
tree1ee56809b12a03ba53d630f5483a48387f72b74a /testsuites/psxtests
parentRemove stray white spaces. (diff)
downloadrtems-1b4f2b305c95a832a259e4c4944f1a0981676eba.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/include/pmacros.h6
-rw-r--r--testsuites/psxtests/psx01/init.c28
-rw-r--r--testsuites/psxtests/psx01/task.c2
-rw-r--r--testsuites/psxtests/psx02/init.c18
-rw-r--r--testsuites/psxtests/psx03/init.c22
-rw-r--r--testsuites/psxtests/psx03/task.c4
-rw-r--r--testsuites/psxtests/psx04/init.c76
-rw-r--r--testsuites/psxtests/psx04/task3.c22
-rw-r--r--testsuites/psxtests/psx05/init.c112
-rw-r--r--testsuites/psxtests/psx06/init.c4
-rw-r--r--testsuites/psxtests/psx06/task.c4
-rw-r--r--testsuites/psxtests/psx06/task2.c10
-rw-r--r--testsuites/psxtests/psx07/init.c134
-rw-r--r--testsuites/psxtests/psx08/init.c14
-rw-r--r--testsuites/psxtests/psx08/task2.c2
-rw-r--r--testsuites/psxtests/psx08/task3.c2
-rw-r--r--testsuites/psxtests/psx09/init.c26
-rw-r--r--testsuites/psxtests/psx10/init.c8
-rw-r--r--testsuites/psxtests/psx11/init.c20
-rw-r--r--testsuites/psxtests/psx11/task.c14
-rw-r--r--testsuites/psxtests/psx12/init.c16
-rw-r--r--testsuites/psxtests/psx13/test.c64
-rw-r--r--testsuites/psxtests/psxcancel/init.c2
-rw-r--r--testsuites/psxtests/psxchroot01/test.c18
-rw-r--r--testsuites/psxtests/psxfile01/test.c4
-rw-r--r--testsuites/psxtests/psxfile01/test_cat.c2
-rw-r--r--testsuites/psxtests/psxfile01/test_extend.c2
-rw-r--r--testsuites/psxtests/psxhdrs/clock01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/clock02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/clock03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/clock04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/clock05.c2
-rw-r--r--testsuites/psxtests/psxhdrs/clock06.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond05.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond06.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond07.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond08.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond09.c2
-rw-r--r--testsuites/psxtests/psxhdrs/cond10.c2
-rw-r--r--testsuites/psxtests/psxhdrs/key01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/key02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/key03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/key04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex05.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex06.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex07.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex08.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex09.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex10.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex11.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex12.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex13.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex14.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex15.c2
-rw-r--r--testsuites/psxtests/psxhdrs/mutex16.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc05.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc06.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc07.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc08.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc09.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc10.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc11.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc12.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc13.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc14.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread06.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread07.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread09.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread10.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread11.c4
-rw-r--r--testsuites/psxtests/psxhdrs/pthread12.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread13.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread14.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread15.c4
-rw-r--r--testsuites/psxtests/psxhdrs/pthread16.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread17.c4
-rw-r--r--testsuites/psxtests/psxhdrs/pthread18.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread19.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread20.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread21.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread22.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread23.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread26.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread27.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread28.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread29.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread30.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread31.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread32.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread33.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread34.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread35.c2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread36.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched05.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched06.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched07.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sched08.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal05.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal06.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal07.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal08.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal09.c4
-rw-r--r--testsuites/psxtests/psxhdrs/signal10.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal11.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal12.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal13.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal14.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal15.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal16.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal17.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal18.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal19.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal20.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal21.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal22.c2
-rw-r--r--testsuites/psxtests/psxhdrs/signal23.c4
-rw-r--r--testsuites/psxtests/psxhdrs/sync01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sync02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/sync03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/time01.c2
-rw-r--r--testsuites/psxtests/psxhdrs/time02.c2
-rw-r--r--testsuites/psxtests/psxhdrs/time03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/time04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/time05.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time06.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time07.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time08.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time09.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time10.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time11.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time12.c4
-rw-r--r--testsuites/psxtests/psxhdrs/time13.c4
-rw-r--r--testsuites/psxtests/psxhdrs/timer01.c4
-rw-r--r--testsuites/psxtests/psxhdrs/timer02.c4
-rw-r--r--testsuites/psxtests/psxhdrs/timer03.c2
-rw-r--r--testsuites/psxtests/psxhdrs/timer04.c2
-rw-r--r--testsuites/psxtests/psxhdrs/timer05.c2
-rw-r--r--testsuites/psxtests/psxhdrs/timer06.c6
-rw-r--r--testsuites/psxtests/psxhdrs/timer07.c4
-rw-r--r--testsuites/psxtests/psxmount/main.c2
-rw-r--r--testsuites/psxtests/psxmount/test.c28
-rw-r--r--testsuites/psxtests/psxmsgq01/init.c130
-rw-r--r--testsuites/psxtests/psxreaddir/test.c26
-rw-r--r--testsuites/psxtests/psxsem01/init.c46
-rw-r--r--testsuites/psxtests/psxstat/test.c26
-rw-r--r--testsuites/psxtests/psxtime/test.c4
-rw-r--r--testsuites/psxtests/psxtimer/psxtimer.c16
-rw-r--r--testsuites/psxtests/psxtimer/system.h2
171 files changed, 612 insertions, 612 deletions
diff --git a/testsuites/psxtests/include/pmacros.h b/testsuites/psxtests/include/pmacros.h
index 0338038d51..f49cc42f91 100644
--- a/testsuites/psxtests/include/pmacros.h
+++ b/testsuites/psxtests/include/pmacros.h
@@ -26,7 +26,7 @@
#define TM_THURSDAY 4
#define TM_FRIDAY 5
#define TM_SATURDAY 6
-
+
#define TM_JANUARY 0
#define TM_FEBRUARY 1
#define TM_MARCH 2
@@ -39,7 +39,7 @@
#define TM_OCTOBER 10
#define TM_NOVEMBER 12
#define TM_DECEMBER 12
-
+
#ifndef build_time
#define build_time( TM, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
{ (TM)->tm_year = YR; \
@@ -65,7 +65,7 @@
\
status = clock_settime( CLOCK_REALTIME, &tv ); \
assert( !status ); \
- } while ( 0 )
+ } while ( 0 )
#define print_current_time(s1, s2) \
do { \
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index a436e51b52..4aa3cb7d81 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -39,7 +39,7 @@ void *POSIX_Init(
status = uname( NULL );
assert( status == -1 );
assert( errno == EFAULT );
-
+
status = uname( &uts );
assert( !status );
printf( "Init: uts.sysname: %s\n", uts.sysname );
@@ -48,7 +48,7 @@ void *POSIX_Init(
printf( "Init: uts.version: %s\n", uts.version );
printf( "Init: uts.machine: %s\n", uts.machine );
puts("");
-
+
/* error cases in clock_gettime and clock_settime */
puts( "Init: clock_gettime - EINVAL (invalid clockid)" );
@@ -113,7 +113,7 @@ void *POSIX_Init(
printf( ctime( &seconds ) );
/* just to have the value copied out through the parameter */
-
+
seconds = time( &seconds1 );
assert( seconds == seconds1 );
@@ -146,10 +146,10 @@ void *POSIX_Init(
/* use nanosleep to yield */
- tv.tv_sec = 0;
- tv.tv_nsec = 0;
+ tv.tv_sec = 0;
+ tv.tv_nsec = 0;
- puts( "Init: nanosleep - yield" );
+ puts( "Init: nanosleep - yield" );
status = nanosleep ( &tv, &tr );
assert( !status );
assert( !tr.tv_sec );
@@ -157,10 +157,10 @@ void *POSIX_Init(
/* use nanosleep to delay */
- tv.tv_sec = 3;
- tv.tv_nsec = 500000;
+ tv.tv_sec = 3;
+ tv.tv_nsec = 500000;
- puts( "Init: nanosleep - 3.05 seconds" );
+ puts( "Init: nanosleep - 3.05 seconds" );
status = nanosleep ( &tv, &tr );
assert( !status );
@@ -168,7 +168,7 @@ void *POSIX_Init(
status = clock_gettime( CLOCK_REALTIME, &tv );
assert( !status );
-
+
printf( ctime( &tv.tv_sec ) );
/* check the time remaining */
@@ -193,7 +193,7 @@ void *POSIX_Init(
assert( errno == EINVAL );
/* exercise get maximum priority */
-
+
priority = sched_get_priority_max( SCHED_FIFO );
printf( "Init: sched_get_priority_max (SCHED_FIFO) -- %d\n", priority );
assert( priority != -1 );
@@ -204,7 +204,7 @@ void *POSIX_Init(
assert( errno == EINVAL );
/* print the round robin time quantum */
-
+
status = sched_rr_get_interval( getpid(), &tr );
printf(
"Init: Round Robin quantum is %ld seconds, %ld nanoseconds\n",
@@ -212,7 +212,7 @@ void *POSIX_Init(
tr.tv_nsec
);
assert( !status );
-
+
/* create a thread */
puts( "Init: pthread_create - SUCCESSFUL" );
diff --git a/testsuites/psxtests/psx01/task.c b/testsuites/psxtests/psx01/task.c
index 96c8f77676..2a9cc379c1 100644
--- a/testsuites/psxtests/psx01/task.c
+++ b/testsuites/psxtests/psx01/task.c
@@ -36,7 +36,7 @@ void *Task_1_through_3(
puts( "Task_1: sched_yield to Init" );
status = sched_yield();
assert( !status );
-
+
/* switch to Task_1 */
/* now do some real testing */
diff --git a/testsuites/psxtests/psx02/init.c b/testsuites/psxtests/psx02/init.c
index acc02bb880..57193a39b4 100644
--- a/testsuites/psxtests/psx02/init.c
+++ b/testsuites/psxtests/psx02/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -59,7 +59,7 @@ void *POSIX_Init(
act.sa_handler = Signal_handler;
act.sa_flags = 0;
-
+
sigaction( SIGUSR1, &act, NULL );
/* simple signal to self */
@@ -87,8 +87,8 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
-
-
+
+
printf( "Init: send SIGUSR1 to self\n" );
status = pthread_kill( Init_id, SIGUSR1 );
assert( !status );
@@ -96,7 +96,7 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
-
+
printf( "Init: Unblock SIGUSR1\n" );
status = sigprocmask( SIG_UNBLOCK, &mask, NULL );
assert( !status );
@@ -107,26 +107,26 @@ void *POSIX_Init(
assert( !status );
/*
- * Loop for 5 seconds seeing how many signals we catch
+ * Loop for 5 seconds seeing how many signals we catch
*/
tr.tv_sec = 5;
tr.tv_nsec = 0;
-
+
do {
tv = tr;
Signal_occurred = 0;
status = nanosleep ( &tv, &tr );
-
+
if ( status == -1 ) {
assert( errno == EINTR );
assert( tr.tv_nsec || tr.tv_sec );
} else if ( !status ) {
assert( !tr.tv_nsec && !tr.tv_sec );
}
-
+
printf(
"Init: signal was %sprocessed with %d:%d time remaining\n",
(Signal_occurred) ? "" : "not ",
diff --git a/testsuites/psxtests/psx03/init.c b/testsuites/psxtests/psx03/init.c
index 0a28676296..0b6faa0d15 100644
--- a/testsuites/psxtests/psx03/init.c
+++ b/testsuites/psxtests/psx03/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -61,7 +61,7 @@ void *POSIX_Init(
act.sa_handler = Signal_handler;
act.sa_flags = 0;
-
+
sigaction( SIGUSR1, &act, NULL );
/* initialize signal handler variables */
@@ -70,7 +70,7 @@ void *POSIX_Init(
Signal_occurred = 0;
/*
- * wait on SIGUSR1 for 3 seconds, will timeout
+ * wait on SIGUSR1 for 3 seconds, will timeout
*/
/* initialize the signal set we will wait for to SIGUSR1 */
@@ -88,7 +88,7 @@ void *POSIX_Init(
signo = sigtimedwait( &waitset, &siginfo, &timeout );
assert( signo == -1 );
- if ( errno == EAGAIN )
+ if ( errno == EAGAIN )
puts( "Init: correctly timed out waiting for SIGUSR1." );
else
printf( "sigtimedwait returned wrong errno - %d\n", errno );
@@ -119,10 +119,10 @@ void *POSIX_Init(
assert( !status );
/* signal handler is still installed, waitset is still set for SIGUSR1 */
-
+
timeout.tv_sec = 3;
timeout.tv_nsec = 0;
-
+
puts( "Init: waiting on any signal for 3 seconds." );
signo = sigtimedwait( &waitset, &siginfo, &timeout );
@@ -133,7 +133,7 @@ void *POSIX_Init(
else
printf( "sigtimedwait returned wrong errno - %d\n", errno );
assert( signo == -1 );
-
+
/*
* wait on SIGUSR1 for 3 seconds, Task_2 will send it to us
*/
@@ -146,12 +146,12 @@ void *POSIX_Init(
assert( !status );
/* signal handler is still installed, waitset is still set for SIGUSR1 */
-
+
/* wait on SIGUSR1 for 3 seconds, will receive SIGUSR1 from Task_2 */
-
+
timeout.tv_sec = 3;
timeout.tv_nsec = 0;
-
+
/* just so we can check that these were altered */
siginfo.si_code = -1;
@@ -165,7 +165,7 @@ void *POSIX_Init(
assert( siginfo.si_signo == SIGUSR1 );
assert( siginfo.si_code == SI_USER );
assert( siginfo.si_value.sival_int != -1 ); /* rtems does always set this */
-
+
/* try out a process signal */
empty_line();
diff --git a/testsuites/psxtests/psx03/task.c b/testsuites/psxtests/psx03/task.c
index 6b41659cf3..df3fdaed5d 100644
--- a/testsuites/psxtests/psx03/task.c
+++ b/testsuites/psxtests/psx03/task.c
@@ -49,13 +49,13 @@ void *Task_2(
int status;
/* send SIGUSR1 to Init which is waiting on SIGUSR1 */
-
+
print_current_time( "Task_2: ", "" );
puts( "Task_1: pthread_kill - SIGUSR1 to Init" );
status = pthread_kill( Init_id, SIGUSR1 );
assert( !status );
-
+
pthread_exit( NULL );
/* switch to Init */
diff --git a/testsuites/psxtests/psx04/init.c b/testsuites/psxtests/psx04/init.c
index 78b5dae6a5..6f1d588dfe 100644
--- a/testsuites/psxtests/psx04/init.c
+++ b/testsuites/psxtests/psx04/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -108,7 +108,7 @@ void *POSIX_Init(
act.sa_handler = Signal_handler;
act.sa_flags = 0;
-
+
sigaction( SIGUSR1, &act, NULL );
/* simple signal to process */
@@ -137,7 +137,7 @@ void *POSIX_Init(
puts( "Init: Block SIGUSR1" );
act.sa_handler = Signal_handler;
act.sa_flags = 0;
-
+
sigaction( SIGUSR1, &act, NULL );
/* simple signal to process */
@@ -168,7 +168,7 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
-
+
puts( "Init: send SIGUSR1 to process" );
status = kill( getpid(), SIGUSR1 );
assert( !status );
@@ -176,7 +176,7 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
-
+
puts( "Init: Unblock SIGUSR1" );
status = sigprocmask( SIG_UNBLOCK, &mask, NULL );
assert( !status );
@@ -192,12 +192,12 @@ void *POSIX_Init(
puts( "Init: Block SIGUSR1" );
status = sigprocmask( SIG_BLOCK, &mask, NULL );
assert( !status );
-
+
status = sigpending( &pending_set );
assert( !status );
printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
- puts( "Init: sleep so the other task can block" );
+ puts( "Init: sleep so the other task can block" );
status = sleep( 1 );
assert( !status );
@@ -206,12 +206,12 @@ void *POSIX_Init(
puts( "Init: send SIGUSR1 to process" );
status = kill( getpid(), SIGUSR1 );
assert( !status );
-
+
status = sigpending( &pending_set );
assert( !status );
printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
- puts( "Init: sleep so the other task can catch signal" );
+ puts( "Init: sleep so the other task can catch signal" );
status = sleep( 1 );
assert( !status );
@@ -222,27 +222,27 @@ void *POSIX_Init(
empty_line();
/* install a signal handler for SIGALRM and unblock it */
-
+
status = sigemptyset( &act.sa_mask );
assert( !status );
-
+
act.sa_handler = Signal_handler;
act.sa_flags = 0;
-
+
sigaction( SIGALRM, &act, NULL );
-
+
status = sigemptyset( &mask );
assert( !status );
-
+
status = sigaddset( &mask, SIGALRM );
assert( !status );
-
+
puts( "Init: Unblock SIGALRM" );
status = sigprocmask( SIG_UNBLOCK, &mask, NULL );
assert( !status );
/* schedule the alarm */
-
+
puts( "Init: Firing alarm in 5 seconds" );
status = alarm( 5 );
printf( "Init: %d seconds left on previous alarm\n", status );
@@ -264,7 +264,7 @@ void *POSIX_Init(
status = sigemptyset( &mask );
assert( !status );
-
+
status = sigaddset( &mask, SIGUSR1 );
assert( !status );
@@ -277,7 +277,7 @@ void *POSIX_Init(
assert( !status );
/* test inquiry about current blocked set with pthread_sigmask */
-
+
status = pthread_sigmask( 0, NULL, &oset );
printf( "Init: Current blocked set is 0x%08x\n", (unsigned int) oset );
assert( !status );
@@ -286,7 +286,7 @@ void *POSIX_Init(
status = sigemptyset( &mask );
assert( !status );
-
+
puts( "Init: Unblock all signals" );
status = pthread_sigmask( SIG_SETMASK, &mask, &oset );
printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset );
@@ -302,7 +302,7 @@ void *POSIX_Init(
status = sigemptyset( &mask );
assert( !status );
-
+
puts( "Init: sigsuspend for any signal" );
status = sigsuspend( &mask );
assert( status );
@@ -320,10 +320,10 @@ void *POSIX_Init(
act.sa_handler = Signal_handler;
act.sa_flags = SA_SIGINFO;
act.sa_sigaction = Signal_info_handler;
-
+
sigaction( SIGUSR1, &act, NULL );
- puts( "Init: sleep so the Task_3 can sigqueue SIGUSR1" );
+ puts( "Init: sleep so the Task_3 can sigqueue SIGUSR1" );
status = sleep( 1 );
assert( !status );
@@ -347,46 +347,46 @@ void *POSIX_Init(
status = kill( getpid(), SIGUSR1 );
assert( !status );
- puts( "Init: sleep so the Task_3 can receive SIGUSR1" );
+ puts( "Init: sleep so the Task_3 can receive SIGUSR1" );
status = sleep( 1 );
assert( !status );
/* Send SIGUSR1, Task_3 has issued a sigwait */
-
+
status = sigemptyset( &mask );
assert( !status );
-
+
status = sigaddset( &mask, SIGUSR1 );
assert( !status );
-
+
puts( "Init: Block SIGUSR1" );
status = sigprocmask( SIG_BLOCK, &mask, NULL );
assert( !status );
-
+
puts( "Init: send SIGUSR1 to process" );
status = kill( getpid(), SIGUSR1 );
assert( !status );
-
+
puts( "Init: sleep so the Task_3 can receive SIGUSR1" );
status = sleep( 1 );
assert( !status );
/* Send SIGUSR1, Task_3 has issued a sigwaitinfo */
-
+
status = sigemptyset( &mask );
assert( !status );
-
+
status = sigaddset( &mask, SIGUSR2 );
assert( !status );
-
+
puts( "Init: Block SIGUSR2" );
status = sigprocmask( SIG_BLOCK, &mask, NULL );
assert( !status );
-
+
puts( "Init: send SIGUSR2 to process" );
status = kill( getpid(), SIGUSR2 );
assert( !status );
-
+
puts( "Init: sleep so the Task_3 can receive SIGUSR2" );
status = sleep( 1 );
assert( !status );
@@ -435,11 +435,11 @@ void *POSIX_Init(
printf( "status = %d\n", status );
assert( errno == EINVAL );
puts( "Init: sigdelset - EINVAL (set invalid)" );
-
+
status = sigdelset( &mask, 0 );
assert( !status );
puts( "Init: sigdelset - SUCCESSFUL (signal = 0)" );
-
+
status = sigdelset( &mask, 999 );
if ( status != -1 )
printf( "status = %d\n", status );
@@ -451,11 +451,11 @@ void *POSIX_Init(
printf( "status = %d\n", status );
assert( errno == EINVAL );
puts( "Init: sigismember - EINVAL (set invalid)" );
-
+
status = sigismember( &mask, 0 );
assert( !status );
puts( "Init: sigismember - SUCCESSFUL (signal = 0)" );
-
+
status = sigismember( &mask, 999 );
if ( status != -1 )
printf( "status = %d\n", status );
@@ -465,7 +465,7 @@ void *POSIX_Init(
status = sigaction( 0, &act, 0 );
assert( !status );
puts( "Init: sigaction - SUCCESSFUL (signal = 0)" );
-
+
status = sigaction( 999, &act, NULL );
if ( status != -1 )
printf( "status = %d\n", status );
diff --git a/testsuites/psxtests/psx04/task3.c b/testsuites/psxtests/psx04/task3.c
index a465d2ace4..5870e91272 100644
--- a/testsuites/psxtests/psx04/task3.c
+++ b/testsuites/psxtests/psx04/task3.c
@@ -65,36 +65,36 @@ void *Task_3(
status = sigemptyset( &mask );
assert( !status );
-
+
status = sigaddset( &mask, SIGUSR1 );
assert( !status );
-
+
printf( "Task_3: sigwait SIGUSR1\n" );
status = sigwait( &mask, &sig );
-
+
/* switch to Init */
-
+
assert( !status );
printf( "Task_3: signo= %d\n", sig );
/* catch signal with pause */
-
+
empty_line();
status = sigemptyset( &mask );
assert( !status );
-
+
status = sigaddset( &mask, SIGUSR1 );
assert( !status );
-
+
printf( "Task_3: pause\n" );
status = pause( );
-
+
/* switch to Init */
-
+
assert( !(status==-1) );
printf( "Task_3: pause= %d\n", status );
-
+
/* send signal to Init task before it has pended for a signal */
@@ -104,7 +104,7 @@ void *Task_3(
status = pthread_kill( Init_id, SIGUSR2 );
assert( !status );
- printf( "Task_3: sleep so the Init task can reguest a signal\n" );
+ printf( "Task_3: sleep so the Init task can reguest a signal\n" );
status = sleep( 1 );
assert( !status );
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index a8dff61a1d..5ffe5064c2 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -13,7 +13,7 @@
#include "system.h"
#include <errno.h>
-#define MUTEX_BAD_ID 0xfffffffe
+#define MUTEX_BAD_ID 0xfffffffe
void Print_mutexattr(
char *msg,
@@ -88,7 +88,7 @@ void *POSIX_Init(
int old_ceiling;
assert( MUTEX_BAD_ID != PTHREAD_MUTEX_INITIALIZER );
- Mutex_bad_id = MUTEX_BAD_ID;
+ Mutex_bad_id = MUTEX_BAD_ID;
puts( "\n\n*** POSIX TEST 5 ***" );
@@ -100,7 +100,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08x\n", Init_id );
-
+
/* tes pthread_mutex_attr_init */
puts( "Init: pthread_mutexattr_init - EINVAL (NULL attr)" );
@@ -137,11 +137,11 @@ void *POSIX_Init(
puts( "Init: pthread_mutexattr_getpshared - EINVAL (NULL attr)" );
status = pthread_mutexattr_getpshared( NULL, &pshared );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_getpshared - EINVAL (NULL pshared)" );
status = pthread_mutexattr_getpshared( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_getpshared - EINVAL (not initialized)" );
status = pthread_mutexattr_getpshared( &destroyed_attr, &pshared );
assert( status == EINVAL );
@@ -150,7 +150,7 @@ void *POSIX_Init(
puts( "Init: pthread_mutexattr_setpshared - EINVAL (NULL attr)" );
status = pthread_mutexattr_setpshared( NULL, pshared );
assert( status == EINVAL );
-
+
pshared = PTHREAD_PROCESS_PRIVATE;
puts( "Init: pthread_mutexattr_setpshared - EINVAL (not initialized)" );
status = pthread_mutexattr_setpshared( &destroyed_attr, pshared );
@@ -163,23 +163,23 @@ void *POSIX_Init(
puts( "Init: pthread_mutexattr_getprotocol - EINVAL (NULL attr)" );
status = pthread_mutexattr_getprotocol( NULL, &protocol );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_getprotocol - EINVAL (NULL protocol)" );
status = pthread_mutexattr_getprotocol( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_getprotocol - EINVAL (not initialized)" );
status = pthread_mutexattr_getprotocol( &destroyed_attr, &protocol );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_setprotocol - EINVAL (NULL attr)" );
status = pthread_mutexattr_setprotocol( NULL, PTHREAD_PRIO_NONE );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_setprotocol - EINVAL (invalid protocol)" );
status = pthread_mutexattr_setprotocol( &attr, -1 );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_setprotocol - EINVAL (not initialized)" );
status = pthread_mutexattr_setprotocol( &destroyed_attr, -1 );
assert( status == EINVAL );
@@ -187,29 +187,29 @@ void *POSIX_Init(
/* error cases for set and get prioceiling attribute */
empty_line();
-
+
puts( "Init: pthread_mutexattr_getprioceiling - EINVAL (NULL attr)" );
status = pthread_mutexattr_getprioceiling( NULL, &ceiling );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_getprioceiling - EINVAL (NULL prioceiling)" );
status = pthread_mutexattr_getprioceiling( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_getprioceiling - EINVAL (not initialized)" );
status = pthread_mutexattr_getprioceiling( &destroyed_attr, &ceiling );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_setprioceiling - EINVAL (NULL attr)" );
status = pthread_mutexattr_setprioceiling( NULL, 128 );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_setprioceiling - EINVAL (invalid priority)" );
status = pthread_mutexattr_setprioceiling( &attr, 512 );
if ( status != EINVAL )
printf( "status = %d\n", status );
assert( status == EINVAL );
-
+
puts( "Init: pthread_mutexattr_setprioceiling - EINVAL (not initialized)" );
status = pthread_mutexattr_setprioceiling( &destroyed_attr, -1 );
assert( status == EINVAL );
@@ -255,15 +255,15 @@ void *POSIX_Init(
puts( "Init: Changing mutex attributes" );
status = pthread_mutexattr_setprotocol( &attr, PTHREAD_PRIO_INHERIT );
assert( !status );
-
+
status = pthread_mutexattr_setprioceiling( &attr, 128 );
assert( !status );
-
+
status = pthread_mutexattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
assert( !status );
-
+
Print_mutexattr( "Init: ", &attr );
-
+
puts( "Init: Resetting mutex attributes" );
status = pthread_mutexattr_init( &attr );
assert( !status );
@@ -275,7 +275,7 @@ void *POSIX_Init(
status = pthread_mutexattr_setprotocol( &attr, PTHREAD_PRIO_INHERIT );
assert( !status );
-
+
puts( "Init: pthread_mutex_init - SUCCESSFUL" );
status = pthread_mutex_init( &Mutex_id, &attr );
if ( status )
@@ -322,7 +322,7 @@ void *POSIX_Init(
puts( "Init: Sleep 1 second" );
sleep( 1 );
-
+
/* switch to task 1 */
puts( "Init: pthread_mutex_unlock - EINVAL (invalid id)" );
@@ -376,15 +376,15 @@ void *POSIX_Init(
puts( "Init: pthread_mutex_destroy - SUCCESSFUL" );
status = pthread_mutex_destroy( &Mutex2_id );
assert( !status );
-
+
puts( "Init: pthread_mutex_destroy - EINVAL (invalid id)" );
status = pthread_mutex_destroy( &Mutex_bad_id );
assert( status == EINVAL );
-
+
/* destroy a busy mutex */
-
+
empty_line();
-
+
puts( "Init: pthread_mutexattr_init - SUCCESSFUL" );
status = pthread_mutexattr_init( &attr );
assert( !status );
@@ -392,7 +392,7 @@ void *POSIX_Init(
puts( "Init: pthread_mutex_init - SUCCESSFUL" );
status = pthread_mutex_init( &Mutex2_id, &attr );
assert( !status );
-
+
puts( "Init: pthread_mutex_trylock - SUCCESSFUL" );
status = pthread_mutex_trylock( &Mutex2_id );
if ( status )
@@ -416,7 +416,7 @@ void *POSIX_Init(
/* priority inherit mutex */
empty_line();
-
+
puts( "Init: pthread_mutexattr_init - SUCCESSFUL" );
status = pthread_mutexattr_init( &attr );
assert( !status );
@@ -436,14 +436,14 @@ void *POSIX_Init(
assert( !status );
/* create a thread at a lower priority */
-
+
status = pthread_create( &Task2_id, NULL, Task_2, NULL );
assert( !status );
-
+
/* set priority of Task2 to highest priority */
-
+
param.sched_priority = 254;
-
+
puts( "Init: pthread_setschedparam - Setting Task2 priority to highest" );
status = pthread_setschedparam( Task2_id, SCHED_FIFO, &param );
assert( !status );
@@ -457,7 +457,7 @@ void *POSIX_Init(
puts( "Init: pthread_mutex_unlock - SUCCESSFUL" );
status = pthread_mutex_unlock( &Mutex2_id );
assert( !status );
-
+
puts( "Init: pthread_mutexattr_destroy - SUCCESSFUL" );
status = pthread_mutexattr_destroy( &attr );
assert( !status );
@@ -465,25 +465,25 @@ void *POSIX_Init(
puts( "Init: pthread_mutex_destroy - SUCCESSFUL" );
status = pthread_mutex_destroy( &Mutex2_id );
assert( !status );
-
+
/* priority ceiling mutex */
-
+
empty_line();
-
+
puts( "Init: pthread_mutexattr_init - SUCCESSFUL" );
status = pthread_mutexattr_init( &attr );
assert( !status );
-
+
puts(
"Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT)"
);
status = pthread_mutexattr_setprotocol( &attr, PTHREAD_PRIO_PROTECT );
assert( !status );
-
+
puts( "Init: pthread_mutex_init - SUCCESSFUL" );
status = pthread_mutex_init( &Mutex2_id, &attr );
assert( !status );
-
+
puts( "Init: pthread_mutex_getprioceiling - EINVAL (invalid id)" );
status = pthread_mutex_getprioceiling( &Mutex_bad_id, &ceiling );
assert( status == EINVAL );
@@ -495,7 +495,7 @@ void *POSIX_Init(
status = pthread_mutex_getprioceiling( &Mutex2_id, &ceiling );
assert( !status );
printf( "Init: pthread_mutex_getprioceiling - %d\n", ceiling );
-
+
puts( "Init: pthread_mutex_setprioceiling - EINVAL (invalid id)" );
status = pthread_mutex_setprioceiling( &Mutex_bad_id, 200, &old_ceiling );
assert( status == EINVAL );
@@ -516,7 +516,7 @@ void *POSIX_Init(
printf(
"Init: pthread_mutex_setprioceiling - old ceiling = %d\n",old_ceiling
);
-
+
status = pthread_getschedparam( pthread_self(), &policy, &param );
assert( !status );
printf(
@@ -526,7 +526,7 @@ void *POSIX_Init(
puts( "Init: pthread_mutex_trylock - SUCCESSFUL" );
status = pthread_mutex_trylock( &Mutex2_id );
assert( !status );
-
+
status = pthread_getschedparam( pthread_self(), &policy, &param );
assert( !status );
printf(
@@ -534,42 +534,42 @@ void *POSIX_Init(
);
/* create a thread at a higher priority */
-
+
status = pthread_create( &Task3_id, NULL, Task_3, NULL );
assert( !status );
-
+
/* set priority of Task3 to highest priority */
-
+
param.sched_priority = 199;
-
+
status = pthread_setschedparam( Task3_id, SCHED_FIFO, &param );
assert( !status );
puts( "Init: pthread_setschedparam - set Task3 priority to highest" );
-
+
/* DOES NOT SWITCH to Task3 */
puts( "Init: Sleep 1 second" );
assert( !status );
sleep( 1 );
-
+
/* switch to task 3 */
-
+
puts( "Init: pthread_mutex_unlock - SUCCESSFUL" );
status = pthread_mutex_unlock( &Mutex2_id );
assert( !status );
-
+
status = pthread_mutex_getprioceiling( &Mutex2_id, &ceiling );
assert( !status );
printf( "Init: pthread_mutex_getprioceiling- ceiling = %d\n", ceiling );
-
+
/* set priority of Init to highest priority */
-
+
param.sched_priority = 254;
-
+
status = pthread_setschedparam( Init_id, SCHED_FIFO, &param );
assert( !status );
puts( "Init: pthread_setschedparam - set Init priority to highest" );
-
+
puts( "Init: pthread_mutex_lock - EINVAL (priority ceiling violation)" );
status = pthread_mutex_lock( &Mutex2_id );
if ( status != EINVAL )
diff --git a/testsuites/psxtests/psx06/init.c b/testsuites/psxtests/psx06/init.c
index 290d54fbb0..863d8baefc 100644
--- a/testsuites/psxtests/psx06/init.c
+++ b/testsuites/psxtests/psx06/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -46,7 +46,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08x\n", Init_id );
-
+
/* create a couple of threads */
status = pthread_create( &Task_id, NULL, Task_1, NULL );
diff --git a/testsuites/psxtests/psx06/task.c b/testsuites/psxtests/psx06/task.c
index 0fab530f5b..8284ed6119 100644
--- a/testsuites/psxtests/psx06/task.c
+++ b/testsuites/psxtests/psx06/task.c
@@ -26,14 +26,14 @@ void *Task_1(
)
{
int status;
- uint32_t *key_data;
+ uint32_t *key_data;
printf( "Task_1: Setting the key to %d\n", 1 );
status = pthread_setspecific( Key_id, &Data_array[ 1 ] );
if ( status )
printf( "status = %d\n", status );
assert( !status );
-
+
key_data = pthread_getspecific( Key_id );
printf( "Task_1: Got the key value of %ld\n",
(unsigned long) ((uint32_t *)key_data - Data_array) );
diff --git a/testsuites/psxtests/psx06/task2.c b/testsuites/psxtests/psx06/task2.c
index 497b592f2c..e894e40a1d 100644
--- a/testsuites/psxtests/psx06/task2.c
+++ b/testsuites/psxtests/psx06/task2.c
@@ -26,7 +26,7 @@ void *Task_2(
{
int status;
uint32_t *key_data;
-
+
printf( "Destructor invoked %d times\n", Destructor_invoked );
printf( "Task_2: Setting the key to %d\n", 2 );
@@ -34,18 +34,18 @@ void *Task_2(
if ( status )
printf( "status = %d\n", status );
assert( !status );
-
+
key_data = pthread_getspecific( Key_id );
printf( "Task_2: Got the key value of %ld\n",
(unsigned long) ((uint32_t *)key_data - Data_array) );
if ( status )
printf( "status = %d\n", status );
assert( !status );
-
+
puts( "Task2: exitting" );
pthread_exit( NULL );
-
+
/* switch to init task */
-
+
return NULL; /* just so the compiler thinks we returned something */
}
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index ef62680cf1..af0a0222c9 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/psxtests/psx07/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -18,7 +18,7 @@ void print_schedparam(
struct sched_param *schedparam
)
{
- printf( "%ssched priority = %d\n", prefix, schedparam->sched_priority );
+ printf( "%ssched priority = %d\n", prefix, schedparam->sched_priority );
#if defined(_POSIX_SPORADIC_SERVER)
printf( "%sss_low_priority = %d\n", prefix, schedparam->ss_low_priority );
printf( "%sss_replenish_period = (%ld, %ld)\n", prefix,
@@ -31,7 +31,7 @@ void print_schedparam(
printf( "%s_POSIX_SPORADIC_SERVER is not defined\n" );
#endif
}
-
+
void *POSIX_Init(
void *argument
)
@@ -57,7 +57,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08x\n", Init_id );
-
+
/* exercise init and destroy */
puts( "Init: pthread_attr_init - EINVAL (NULL attr)" );
@@ -92,10 +92,10 @@ void *POSIX_Init(
/* junk stack address */
status = pthread_attr_setstackaddr( &attr, (void *)&schedparam );
assert( !status );
-
+
/* must go around pthread_attr_setstacksize to set a bad stack size */
attr.stacksize = 0;
-
+
puts( "Init: pthread_create - EINVAL (stacksize too small)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( status == EINVAL );
@@ -114,7 +114,7 @@ void *POSIX_Init(
/* must go around pthread_attr_set routines to set a bad value */
attr.inheritsched = -1;
-
+
puts( "Init: pthread_create - EINVAL (invalid inherit scheduler)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( status == EINVAL );
@@ -138,7 +138,7 @@ void *POSIX_Init(
status = pthread_attr_setinheritsched( &attr, PTHREAD_INHERIT_SCHED );
assert( !status );
-
+
puts( "Init: pthread_create - SUCCESSFUL (inherit scheduler)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( !status );
@@ -174,19 +174,19 @@ void *POSIX_Init(
puts( "Init: pthread_attr_setscope - SUCCESSFUL" );
status = pthread_attr_setscope( &attr, PTHREAD_SCOPE_PROCESS );
assert( !status );
-
+
puts( "Init: pthread_attr_getscope - EINVAL (NULL attr)" );
status = pthread_attr_getscope( NULL, &scope );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getscope - EINVAL (NULL scope)" );
status = pthread_attr_getscope( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getscope - EINVAL (not initialized attr)" );
status = pthread_attr_getscope( &destroyed_attr, &scope );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getscope - SUCCESSFUL" );
status = pthread_attr_getscope( &attr, &scope );
assert( !status );
@@ -199,88 +199,88 @@ void *POSIX_Init(
puts( "Init: pthread_attr_setinheritsched - EINVAL (NULL attr)" );
status = pthread_attr_setinheritsched( NULL, PTHREAD_INHERIT_SCHED );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setinheritsched - EINVAL (not initialized attr)" );
status =
pthread_attr_setinheritsched( &destroyed_attr, PTHREAD_INHERIT_SCHED );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setinheritsched - ENOTSUP (invalid inheritsched)" );
status = pthread_attr_setinheritsched( &attr, -1 );
assert( status == ENOTSUP );
-
+
puts( "Init: pthread_attr_setinheritsched - SUCCESSFUL" );
status = pthread_attr_setinheritsched( &attr, PTHREAD_INHERIT_SCHED );
assert( !status );
-
+
puts( "Init: pthread_attr_getinheritsched - EINVAL (NULL attr)" );
status = pthread_attr_getinheritsched( NULL, &inheritsched );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getinheritsched - EINVAL (NULL inheritsched)" );
status = pthread_attr_getinheritsched( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getinheritsched - EINVAL (not initialized attr)" );
status = pthread_attr_getinheritsched( &destroyed_attr, &inheritsched );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getinheritsched - SUCCESSFUL" );
status = pthread_attr_getinheritsched( &attr, &inheritsched );
assert( !status );
printf( "Init: current inherit scheduler attribute = %d\n", inheritsched );
/* exercise get and set inherit scheduler */
-
+
empty_line();
-
+
puts( "Init: pthread_attr_setschedpolicy - EINVAL (NULL attr)" );
status = pthread_attr_setschedpolicy( NULL, SCHED_FIFO );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setschedpolicy - EINVAL (not initialized attr)" );
status =
pthread_attr_setschedpolicy( &destroyed_attr, SCHED_OTHER );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setschedpolicy - ENOTSUP (invalid schedpolicy)" );
status = pthread_attr_setschedpolicy( &attr, -1 );
assert( status == ENOTSUP );
-
+
puts( "Init: pthread_attr_setschedpolicy - SUCCESSFUL" );
status = pthread_attr_setschedpolicy( &attr, SCHED_RR );
assert( !status );
-
+
puts( "Init: pthread_attr_getschedpolicy - EINVAL (NULL attr)" );
status = pthread_attr_getschedpolicy( NULL, &schedpolicy );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getschedpolicy - EINVAL (NULL schedpolicy)" );
status = pthread_attr_getschedpolicy( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getschedpolicy - EINVAL (not initialized attr)" );
status = pthread_attr_getschedpolicy( &destroyed_attr, &schedpolicy );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getschedpolicy - SUCCESSFUL" );
status = pthread_attr_getschedpolicy( &attr, &schedpolicy );
assert( !status );
printf( "Init: current scheduler policy attribute = %d\n", schedpolicy );
-
+
/* exercise get and set stack size */
-
+
empty_line();
-
+
puts( "Init: pthread_attr_setstacksize - EINVAL (NULL attr)" );
status = pthread_attr_setstacksize( NULL, 0 );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setstacksize - EINVAL (not initialized attr)" );
status =
pthread_attr_setstacksize( &destroyed_attr, 0 );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setstacksize - SUCCESSFUL (low stacksize)" );
status = pthread_attr_setstacksize( &attr, 0 );
assert( !status );
@@ -288,19 +288,19 @@ void *POSIX_Init(
puts( "Init: pthread_attr_setstacksize - SUCCESSFUL (high stacksize)" );
status = pthread_attr_setstacksize( &attr, STACK_MINIMUM_SIZE * 2 );
assert( !status );
-
+
puts( "Init: pthread_attr_getstacksize - EINVAL (NULL attr)" );
status = pthread_attr_getstacksize( NULL, &stacksize );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getstacksize - EINVAL (NULL stacksize)" );
status = pthread_attr_getstacksize( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getstacksize - EINVAL (not initialized attr)" );
status = pthread_attr_getstacksize( &destroyed_attr, &stacksize );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getstacksize - SUCCESSFUL" );
status = pthread_attr_getstacksize( &attr, &stacksize );
assert( !status );
@@ -308,72 +308,72 @@ void *POSIX_Init(
printf( "Init: current stack size attribute is OK\n" );
/* exercise get and set stack address */
-
+
empty_line();
-
+
puts( "Init: pthread_attr_setstackaddr - EINVAL (NULL attr)" );
status = pthread_attr_setstackaddr( NULL, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setstackaddr - EINVAL (not initialized attr)" );
status =
pthread_attr_setstackaddr( &destroyed_attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setstackaddr - SUCCESSFUL" );
status = pthread_attr_setstackaddr( &attr, 0 );
assert( !status );
-
+
puts( "Init: pthread_attr_getstackaddr - EINVAL (NULL attr)" );
status = pthread_attr_getstackaddr( NULL, &stackaddr );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getstackaddr - EINVAL (NULL stackaddr)" );
status = pthread_attr_getstackaddr( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getstackaddr - EINVAL (not initialized attr)" );
status = pthread_attr_getstackaddr( &destroyed_attr, &stackaddr );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getstackaddr - SUCCESSFUL" );
status = pthread_attr_getstackaddr( &attr, &stackaddr );
assert( !status );
printf( "Init: current stack address attribute = %p\n", stackaddr );
-
+
/* exercise get and set detach state */
-
+
empty_line();
-
+
puts( "Init: pthread_attr_setdetachstate - EINVAL (NULL attr)" );
status = pthread_attr_setdetachstate( NULL, PTHREAD_CREATE_DETACHED );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setdetachstate - EINVAL (not initialized attr)" );
status =
pthread_attr_setdetachstate( &destroyed_attr, PTHREAD_CREATE_JOINABLE );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setdetachstate - EINVAL (invalid detachstate)" );
status = pthread_attr_setdetachstate( &attr, -1 );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setdetachstate - SUCCESSFUL" );
status = pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_JOINABLE );
assert( !status );
-
+
puts( "Init: pthread_attr_getdetachstate - EINVAL (NULL attr)" );
status = pthread_attr_getdetachstate( NULL, &detachstate );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getdetachstate - EINVAL (NULL detatchstate)" );
status = pthread_attr_getdetachstate( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getdetachstate - EINVAL (not initialized attr)" );
status = pthread_attr_getdetachstate( &destroyed_attr, &detachstate );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getdetachstate - SUCCESSFUL" );
status = pthread_attr_getdetachstate( &attr, &detachstate );
assert( !status );
@@ -392,31 +392,31 @@ void *POSIX_Init(
puts( "Init: pthread_attr_setschedparam - EINVAL (NULL attr)" );
status = pthread_attr_setschedparam( NULL, &schedparam );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setschedparam - EINVAL (not initialized attr)" );
status = pthread_attr_setschedparam( &destroyed_attr, &schedparam );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setschedparam - EINVAL (NULL schedparam)" );
status = pthread_attr_setschedparam( &attr, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_setschedparam - SUCCESSFUL" );
status = pthread_attr_setschedparam( &attr, &schedparam );
assert( !status );
-
+
puts( "Init: pthread_attr_getschedparam - EINVAL (NULL attr)" );
status = pthread_attr_getschedparam( NULL, &schedparam );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getschedparam - EINVAL (not initialized attr)" );
status = pthread_attr_getschedparam( &destroyed_attr, &schedparam );
assert( status == EINVAL );
-
+
puts( "Init: pthread_attr_getschedparam - EINVAL (NULL schedparam)" );
status = pthread_attr_getschedparam( &attr, NULL );
assert( status == EINVAL );
-
+
/* exercise pthread_getschedparam */
empty_line();
@@ -424,19 +424,19 @@ void *POSIX_Init(
puts( "Init: pthread_getschedparam - EINVAL (NULL policy)" );
status = pthread_getschedparam( pthread_self(), NULL, &schedparam );
assert( status == EINVAL );
-
+
puts( "Init: pthread_getschedparam - EINVAL (NULL schedparam)" );
status = pthread_getschedparam( pthread_self(), &schedpolicy, NULL );
assert( status == EINVAL );
-
+
puts( "Init: pthread_getschedparam - ESRCH (bad thread)" );
status = pthread_getschedparam( -1, &schedpolicy, &schedparam );
assert( status == ESRCH );
-
+
puts( "Init: pthread_getschedparam - SUCCESSFUL" );
status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
assert( !status );
-
+
printf( "Init: policy = %d\n", schedpolicy );
print_schedparam( "Init: ", &schedparam );
@@ -465,7 +465,7 @@ void *POSIX_Init(
status = pthread_setschedparam( -1, SCHED_OTHER, &schedparam );
assert( status == ESRCH );
- /* now get sporadic server errors */
+ /* now get sporadic server errors */
schedparam.ss_replenish_period.tv_sec = 1;
schedparam.ss_replenish_period.tv_nsec = 0;
diff --git a/testsuites/psxtests/psx08/init.c b/testsuites/psxtests/psx08/init.c
index b3f630208f..eb21f41f75 100644
--- a/testsuites/psxtests/psx08/init.c
+++ b/testsuites/psxtests/psx08/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -42,10 +42,10 @@ void *POSIX_Init(
assert( !status );
/* create thread */
-
+
status = pthread_create( &Task1_id, NULL, Task_1, NULL );
assert( !status );
-
+
puts( "Init: pthread_join - ESRCH (invalid id)" );
status = pthread_join( -1, &return_pointer );
assert( status == ESRCH );
@@ -66,14 +66,14 @@ void *POSIX_Init(
return_pointer,
&Task1_id
);
-
+
puts( "Init: creating two pthreads" );
status = pthread_create( &Task2_id, NULL, Task_2, NULL );
assert( !status );
-
+
status = pthread_create( &Task3_id, NULL, Task_3, NULL );
assert( !status );
-
+
puts( "Init: pthread_join - SUCCESSFUL" );
status = pthread_join( Task2_id, &return_pointer );
/* assert is below comment */
@@ -91,7 +91,7 @@ void *POSIX_Init(
return_pointer,
&Task2_id
);
-
+
puts( "Init: exitting" );
return NULL;
}
diff --git a/testsuites/psxtests/psx08/task2.c b/testsuites/psxtests/psx08/task2.c
index ffdd92bbdb..d7f8fc003c 100644
--- a/testsuites/psxtests/psx08/task2.c
+++ b/testsuites/psxtests/psx08/task2.c
@@ -38,7 +38,7 @@ void *Task_2(
if ( status != EINVAL )
printf( "status = %d\n", status );
assert( status == EINVAL );
-
+
puts( "Task_2: join to self task (Init) -- EDEADLK" );
status = pthread_join( pthread_self(), NULL );
if ( status != EDEADLK )
diff --git a/testsuites/psxtests/psx08/task3.c b/testsuites/psxtests/psx08/task3.c
index 3584a30bbb..24aa724fc7 100644
--- a/testsuites/psxtests/psx08/task3.c
+++ b/testsuites/psxtests/psx08/task3.c
@@ -34,7 +34,7 @@ void *Task_3(
if ( status )
printf( "status = %d\n", status );
assert( !status );
-
+
if ( return_pointer == &Task2_id )
puts( "Task_3: pthread_join returned correct pointer" );
else
diff --git a/testsuites/psxtests/psx09/init.c b/testsuites/psxtests/psx09/init.c
index 47be091e6d..e931866fee 100644
--- a/testsuites/psxtests/psx09/init.c
+++ b/testsuites/psxtests/psx09/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -54,7 +54,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08x\n", Init_id );
-
+
/* try to use this thread as a sporadic server */
puts( "Init: pthread_getschedparam - SUCCESSFUL" );
@@ -89,7 +89,7 @@ void *POSIX_Init(
for ( passes=0 ; passes <= 3 ; ) {
status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
assert( !status );
-
+
if ( priority != schedparam.sched_priority ) {
priority = schedparam.sched_priority;
sprintf( buffer, " - new priority = %d", priority );
@@ -117,7 +117,7 @@ void *POSIX_Init(
schedparam.sched_priority = HIGH_PRIORITY;
schedparam.ss_low_priority = LOW_PRIORITY;
-
+
puts( "Init: pthread_setschedparam - SUCCESSFUL (sporadic server)" );
status = pthread_setschedparam( pthread_self(), SCHED_SPORADIC, &schedparam );
assert( !status );
@@ -128,10 +128,10 @@ void *POSIX_Init(
status = pthread_mutexattr_setprotocol( &attr, PTHREAD_PRIO_PROTECT );
assert( !status );
-
+
status = pthread_mutexattr_setprioceiling( &attr, MEDIUM_PRIORITY );
assert( !status );
-
+
puts( "Init: Creating a mutex" );
status = pthread_mutex_init( &Mutex_id, &attr );
if ( status )
@@ -140,7 +140,7 @@ void *POSIX_Init(
status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
assert( !status );
-
+
priority = schedparam.sched_priority;
sprintf( buffer, " - new priority = %d", priority );
print_current_time( "Init: ", buffer );
@@ -179,18 +179,18 @@ void *POSIX_Init(
for ( ; ; ) {
status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
assert( !status );
-
+
if ( schedparam.sched_priority == HIGH_PRIORITY )
break;
}
-
+
priority = schedparam.sched_priority;
sprintf( buffer, " - new priority = %d", priority );
print_current_time( "Init: ", buffer );
-
+
/* with this unlock we should be able to go to low priority */
- puts( "Init: unlock mutex" );
+ puts( "Init: unlock mutex" );
status = pthread_mutex_unlock( &Mutex_id );
if ( status )
printf( "status = %d\n", status );
@@ -206,14 +206,14 @@ void *POSIX_Init(
for ( ; ; ) {
status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
assert( !status );
-
+
if ( schedparam.sched_priority == LOW_PRIORITY )
break;
}
status = pthread_getschedparam( pthread_self(), &schedpolicy, &schedparam );
assert( !status );
-
+
priority = schedparam.sched_priority;
sprintf( buffer, " - new priority = %d", priority );
print_current_time( "Init: ", buffer );
diff --git a/testsuites/psxtests/psx10/init.c b/testsuites/psxtests/psx10/init.c
index 09cbabc3eb..a9749e0087 100644
--- a/testsuites/psxtests/psx10/init.c
+++ b/testsuites/psxtests/psx10/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -221,7 +221,7 @@ void *POSIX_Init(
printf( "status = %d\n", status );
assert( status == EINVAL );
puts( "Init: pthread_cond_wait - EINVAL (mutex invalid)" );
-
+
status = pthread_cond_timedwait( &Cond1_id, NULL, &timeout );
if ( status != EINVAL )
printf( "status = %d\n", status );
@@ -261,7 +261,7 @@ void *POSIX_Init(
/* wait and timedwait without mutex */
/* XXX - this case is commented out in the code pending review
- *
+ *
* status = pthread_cond_wait( &Cond1_id, &Mutex_id );
* if ( status != EINVAL )
* printf( "status = %d\n", status );
@@ -270,7 +270,7 @@ void *POSIX_Init(
puts( "Init: pthread_cond_wait - EINVAL (mutex not locked before call)" );
/* XXX - this case is commented out in the code pending review
- *
+ *
* status = clock_gettime( CLOCK_REALTIME, &timeout );
* assert( !status );
* timeout.tv_sec += 1;
diff --git a/testsuites/psxtests/psx11/init.c b/testsuites/psxtests/psx11/init.c
index 766e1df382..cbea072ae5 100644
--- a/testsuites/psxtests/psx11/init.c
+++ b/testsuites/psxtests/psx11/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -31,7 +31,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08x\n", Init_id );
-
+
/* exercise pthread_setschedparam */
param.sched_priority = 127;
@@ -53,33 +53,33 @@ void *POSIX_Init(
assert( !status );
/* create a thread as SCHED_FIFO */
-
+
puts( "Init: create a thread of SCHED_FIFO with priority 120" );
status = pthread_attr_init( &attr );
assert( !status );
-
+
attr.schedpolicy = SCHED_FIFO;
attr.schedparam.sched_priority = 120;
-
+
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( !status );
-
+
puts( "Init: join with the other thread" );
status = pthread_join( Task_id, NULL );
assert( !status );
/* create a thread as SCHED_RR */
-
+
puts( "Init: create a thread of SCHED_RR with priority 120" );
status = pthread_attr_init( &attr );
assert( !status );
-
+
attr.schedpolicy = SCHED_RR;
attr.schedparam.sched_priority = 120;
-
+
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( !status );
-
+
puts( "Init: join with the other thread" );
status = pthread_join( Task_id, NULL );
assert( !status );
diff --git a/testsuites/psxtests/psx11/task.c b/testsuites/psxtests/psx11/task.c
index 29ee014870..020e686b64 100644
--- a/testsuites/psxtests/psx11/task.c
+++ b/testsuites/psxtests/psx11/task.c
@@ -29,14 +29,14 @@ void diff_timespec(
)
{
int nsecs_per_sec = 1000000000;
-
+
result->tv_sec = stop->tv_sec - start->tv_sec;
if ( stop->tv_nsec < start->tv_nsec ) {
result->tv_nsec = nsecs_per_sec - start->tv_nsec + stop->tv_nsec;
result->tv_sec--;
} else
result->tv_nsec = stop->tv_nsec - start->tv_nsec;
-
+
}
void *Task_1(
@@ -51,7 +51,7 @@ void *Task_1(
status = clock_gettime( CLOCK_REALTIME, &start );
assert( !status );
-
+
status = sched_rr_get_interval( getpid(), &delay );
assert( !status );
@@ -63,8 +63,8 @@ void *Task_1(
delay.tv_nsec -= 1000000000;
delay.tv_sec++;
}
-
-
+
+
puts( "Task_1: killing time" );
for ( ; ; ) {
@@ -78,10 +78,10 @@ void *Task_1(
if ( difference.tv_sec > delay.tv_sec )
break;
-
+
if ( difference.tv_nsec > delay.tv_nsec )
break;
-
+
}
puts( "Task_1: exitting" );
diff --git a/testsuites/psxtests/psx12/init.c b/testsuites/psxtests/psx12/init.c
index 142f429ebd..fe83f470de 100644
--- a/testsuites/psxtests/psx12/init.c
+++ b/testsuites/psxtests/psx12/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -50,7 +50,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08x\n", Init_id );
-
+
/* invalid scheduling policy error */
puts( "Init: pthread_attr_init - SUCCESSFUL" );
@@ -79,7 +79,7 @@ void *POSIX_Init(
schedparam.ss_replenish_period.tv_nsec = 0;
schedparam.ss_initial_budget.tv_sec = 2;
schedparam.ss_initial_budget.tv_nsec = 0;
-
+
schedparam.sched_priority = 200;
schedparam.ss_low_priority = 100;
@@ -88,7 +88,7 @@ void *POSIX_Init(
status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
assert( !status );
-
+
puts( "Init: pthread_create - EINVAL (replenish < budget)" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( status == EINVAL );
@@ -99,7 +99,7 @@ void *POSIX_Init(
schedparam.ss_replenish_period.tv_nsec = 0;
schedparam.ss_initial_budget.tv_sec = 1;
schedparam.ss_initial_budget.tv_nsec = 0;
-
+
schedparam.sched_priority = 200;
schedparam.ss_low_priority = -1;
@@ -116,13 +116,13 @@ void *POSIX_Init(
schedparam.ss_replenish_period.tv_nsec = 0;
schedparam.ss_initial_budget.tv_sec = 1;
schedparam.ss_initial_budget.tv_nsec = 0;
-
+
schedparam.sched_priority = 200;
schedparam.ss_low_priority = 100;
-
+
status = pthread_attr_setschedparam( &attr, &schedparam );
assert( !status );
-
+
puts( "Init: pthread_create - SUCCESSFUL" );
status = pthread_create( &Task_id, &attr, Task_1, NULL );
assert( !status );
diff --git a/testsuites/psxtests/psx13/test.c b/testsuites/psxtests/psx13/test.c
index b019d3da40..8cfb3aa378 100644
--- a/testsuites/psxtests/psx13/test.c
+++ b/testsuites/psxtests/psx13/test.c
@@ -1,4 +1,4 @@
-/*
+/*
* Psx13
* Chris Bond (working under Jennifer's account)
*
@@ -40,8 +40,8 @@
/*-------------------------------------------------------------------
* InitFiles function
*
- * Initializes the three files to be used in the test.
- *
+ * Initializes the three files to be used in the test.
+ *
* arguments: none
* assumptions: fopen, fprintf, fwrite, FILE are available
* actions: creates testfile1, a text file with 'a'..'z' listed 4 times.
@@ -49,7 +49,7 @@
* creates testfile3, a binary file with 0..9 listed 4 times.
* returns: TRUE if files opened successfully.
* FALSE if fail on file open for write.
- *
+ *
* ------------------------------------------------------------------
*/
@@ -77,7 +77,7 @@ int InitFiles (void) {
if (letter > 'z')
letter = 'a';
}
-
+
number = 0;
for (count = 0; count <40; ++count) {
@@ -96,7 +96,7 @@ int InitFiles (void) {
retval = TRUE;
}
- else
+ else
retval = FALSE;
/* assert (retval == TRUE);*/
@@ -111,7 +111,7 @@ int InitFiles (void) {
*
* arguments: none
* assumptions: lseek available
- * actions: hits lseek with some dummy arguments.
+ * actions: hits lseek with some dummy arguments.
* returns: value of return from lseek.
*
* ---------------------------------------------------------------
@@ -146,7 +146,7 @@ int DeviceLSeekTest (void) {
* actions: Gets a file descriptor(fd1) for test file1.
* dups fd1 to fd2.
* sets fd1 to append mode
- * checks fd2 to ensure it's in append mode, also.
+ * checks fd2 to ensure it's in append mode, also.
* returns: success if fd2 is indeed a copy of fd1.
*
* ---------------------------------------------------------------
@@ -169,7 +169,7 @@ int DupTest(void) {
close (fd1);
flags = (flags & O_APPEND);
-
+
retval = (flags == O_APPEND);
}
@@ -192,7 +192,7 @@ int DupTest(void) {
* actions: Gets a file descriptor(fd1) for test file1.
* dups fd1 to fd2.
* sets fd1 to append mode
- * checks fd2 to ensure it's in append mode, also.
+ * checks fd2 to ensure it's in append mode, also.
* sets fd1 to invalid value, fd2 to valid, tries to dup2.
* sets fd2 to invalid value, fd1 to valid tries to dup2.
* returns: success if fd2 is a copy of fd1, and invalid fd1 or fd2 produce errors.
@@ -240,14 +240,14 @@ int Dup2Test(void) {
else {
fd1 = dup(fd2);
fd2 = -1;
-
+
if (dup2(fd1, fd2) != -1)
retval = FALSE;
}
}
close (fd1);
-
+
/* assert (retval == TRUE);*/
return (retval);
@@ -276,9 +276,9 @@ int FDataSyncTest(void) {
int fd = -1;
int error = 0, retval = TRUE;
-
+
/* Try it with a RD_ONLY file. */
-
+
fd = open ("testfile1.tst", O_RDONLY);
error = fdatasync(fd);
@@ -286,7 +286,7 @@ int FDataSyncTest(void) {
retval = TRUE;
else
retval = FALSE;
-
+
close (fd);
if (retval == TRUE) {
@@ -314,7 +314,7 @@ int FDataSyncTest(void) {
retval = FALSE;
close (fd);
-
+
}
/* assert (retval == TRUE);*/
@@ -359,7 +359,7 @@ int UMaskTest (void) {
/* ---------------------------------------------------------------
* UTimeTest function
*
- * Hits the utime code. Does NOT test the functionality of the underlying utime
+ * Hits the utime code. Does NOT test the functionality of the underlying utime
* entry in the IMFS op table.
*
* arguments: none
@@ -402,7 +402,7 @@ int UTimeTest (void) {
if ((fstat.st_atime == 12345) && (fstat.st_mtime == 54321 ))
retval = TRUE;
- else
+ else
retval = FALSE;
}
@@ -435,7 +435,7 @@ int PipeTest (void) {
int error = 0, retval = FALSE;
int fd[2];
-
+
error = pipe(fd);
if ((error == -1) && (errno == ENOSYS))
@@ -479,8 +479,8 @@ int PathConfTest (void) {
else
retval = FALSE;
}
-
- else
+
+ else
retval = FALSE;
/* assert (retval == TRUE);*/
@@ -498,7 +498,7 @@ int PathConfTest (void) {
* assumptions: fpathconf function available.
* actions: Call fpathconf with all arguments, plus an invalid.
*
- * returns: TRUE always.
+ * returns: TRUE always.
*
* ---------------------------------------------------------------
*/
@@ -513,7 +513,7 @@ int FPathConfTest (void) {
if (error == -1) {
fd = open("testfile1.tst", O_RDWR);
-
+
error = fpathconf(fd, _PC_LINK_MAX);
error = fpathconf(fd, _PC_MAX_CANON);
error = fpathconf(fd, _PC_MAX_INPUT);
@@ -521,17 +521,17 @@ int FPathConfTest (void) {
error = fpathconf(fd, _PC_PATH_MAX);
error = fpathconf(fd, _PC_PIPE_BUF);
error = fpathconf(fd, _PC_CHOWN_RESTRICTED);
- error = fpathconf(fd, _PC_NO_TRUNC);
+ error = fpathconf(fd, _PC_NO_TRUNC);
error = fpathconf(fd, _PC_VDISABLE);
error = fpathconf(fd, _PC_ASYNC_IO);
error = fpathconf(fd, _PC_PRIO_IO);
error = fpathconf(fd, _PC_SYNC_IO);
error = fpathconf(fd, 255);
-
+
retval = TRUE;
}
-
- else
+
+ else
retval = FALSE;
/* assert (retval == TRUE);*/
@@ -560,7 +560,7 @@ int FSyncTest (void) {
int error = 0, retval = FALSE;
int fd = -1;
-
+
fd = open("testfile1.tst", O_RDWR);
if (fd != -1) {
@@ -575,7 +575,7 @@ int FSyncTest (void) {
close(fd);
}
- else
+ else
retval = FALSE;
/* assert (retval == TRUE);*/
@@ -589,7 +589,7 @@ int FSyncTest (void) {
*
* main entry point to the test
*
- * ---------------------------------------------------------------
+ * ---------------------------------------------------------------
*/
#if defined(__rtems__)
@@ -617,7 +617,7 @@ int main(
printf ("Success.\n");
else
printf ("Failed!!!\n");
-
+
printf ("Testing dup2()........... ");
if (Dup2Test() == TRUE)
printf ("Success.\n");
@@ -659,7 +659,7 @@ int main(
printf ("Success.\n");
else
printf ("Failed!!!\n");
-
+
printf ("Testing fpathconf()...... ");
if (FPathConfTest() == TRUE)
printf ("Success.\n");
diff --git a/testsuites/psxtests/psxcancel/init.c b/testsuites/psxtests/psxcancel/init.c
index df3eda0664..54d488a2ba 100644
--- a/testsuites/psxtests/psxcancel/init.c
+++ b/testsuites/psxtests/psxcancel/init.c
@@ -1,6 +1,6 @@
/*
* Thread Test Program
- *
+ *
* - test of POSIX's pthread_init() function from rtemstask Init()
*
* ott@linux.thai.net
diff --git a/testsuites/psxtests/psxchroot01/test.c b/testsuites/psxtests/psxchroot01/test.c
index 3dbd881679..19348508c3 100644
--- a/testsuites/psxtests/psxchroot01/test.c
+++ b/testsuites/psxtests/psxchroot01/test.c
@@ -2,12 +2,12 @@
* This is a native test to explore how the readdir() family works.
* Newlib supports the following readdir() family members:
*
- * closedir() -
- * readdir() -
- * scandir() -
- * opendir() -
- * rewinddir() -
- * telldir() - BSD not in POSIX
+ * closedir() -
+ * readdir() -
+ * scandir() -
+ * opendir() -
+ * rewinddir() -
+ * telldir() - BSD not in POSIX
* seekdir() - BSD not in POSIX
*
*
@@ -96,19 +96,19 @@ int main(
touch( "/one/one.test" );
touch( "/one/two/two.test" );
-
+
status = chroot( "/one" );
assert( status == 0 );
status = fileexists( "/one/one.test" );
printf( "%s on /one/one.test\n", (!status) ? "SUCCESS" : "FAILURE" );
-
+
status = fileexists( "/two/two.test" );
printf( "%s on /two/two.test\n", (status) ? "SUCCESS" : "FAILURE" );
puts( "Reset the private environment" );
rtems_libio_set_private_env();
-
+
status = fileexists( "/one/one.test" );
printf( "%s on /one/one.test\n", ( status) ? "SUCCESS" : "FAILURE" );
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c
index bf77d44935..fe14649218 100644
--- a/testsuites/psxtests/psxfile01/test.c
+++ b/testsuites/psxtests/psxfile01/test.c
@@ -438,7 +438,7 @@ int main(
while ( fgets(buffer, 128, file) )
printf( "%s", buffer );
- /*
+ /*
* Verify only atime changed for a read.
*/
status = stat( "/tmp/j", &buf );
@@ -464,7 +464,7 @@ int main(
status = truncate( "/tmp/j", 40 );
assert( !status );
- /*
+ /*
* Verify truncate changed only atime.
*/
status = stat( "/tmp/j", &buf );
diff --git a/testsuites/psxtests/psxfile01/test_cat.c b/testsuites/psxtests/psxfile01/test_cat.c
index ea1e63ef7e..0dfcd3975b 100644
--- a/testsuites/psxtests/psxfile01/test_cat.c
+++ b/testsuites/psxtests/psxfile01/test_cat.c
@@ -1,5 +1,5 @@
/*
- * A test support function which performs a crude version of
+ * A test support function which performs a crude version of
* "cat" so you can look at specific parts of a file.
*
* $Id$
diff --git a/testsuites/psxtests/psxfile01/test_extend.c b/testsuites/psxtests/psxfile01/test_extend.c
index 3ab66c1410..bbc5b7b5d7 100644
--- a/testsuites/psxtests/psxfile01/test_extend.c
+++ b/testsuites/psxtests/psxfile01/test_extend.c
@@ -1,5 +1,5 @@
/*
- * A test support function which extends the file to the specified
+ * A test support function which extends the file to the specified
* length. This handles the implied open(), lseek(), write(), and close()
* operations.
*
diff --git a/testsuites/psxtests/psxhdrs/clock01.c b/testsuites/psxtests/psxhdrs/clock01.c
index da3a18635d..5b0584116a 100644
--- a/testsuites/psxtests/psxhdrs/clock01.c
+++ b/testsuites/psxtests/psxhdrs/clock01.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have clock_gettime"
#endif
diff --git a/testsuites/psxtests/psxhdrs/clock02.c b/testsuites/psxtests/psxhdrs/clock02.c
index a3d6849b6c..aa59dadbb3 100644
--- a/testsuites/psxtests/psxhdrs/clock02.c
+++ b/testsuites/psxtests/psxhdrs/clock02.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have clock_settime"
#endif
diff --git a/testsuites/psxtests/psxhdrs/clock03.c b/testsuites/psxtests/psxhdrs/clock03.c
index a3e48bf402..197fdf6326 100644
--- a/testsuites/psxtests/psxhdrs/clock03.c
+++ b/testsuites/psxtests/psxhdrs/clock03.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have clock_getres"
#endif
diff --git a/testsuites/psxtests/psxhdrs/clock04.c b/testsuites/psxtests/psxhdrs/clock04.c
index 722be53066..2584d89b9b 100644
--- a/testsuites/psxtests/psxhdrs/clock04.c
+++ b/testsuites/psxtests/psxhdrs/clock04.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_CPUTIME
#error "rtems is supposed to have clock_getcpuclockid"
#endif
diff --git a/testsuites/psxtests/psxhdrs/clock05.c b/testsuites/psxtests/psxhdrs/clock05.c
index 53d3753935..9abe84c6dd 100644
--- a/testsuites/psxtests/psxhdrs/clock05.c
+++ b/testsuites/psxtests/psxhdrs/clock05.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_CPUTIME
#error "rtems is supposed to have clock_setenable_attr"
#endif
diff --git a/testsuites/psxtests/psxhdrs/clock06.c b/testsuites/psxtests/psxhdrs/clock06.c
index 4e7f8104bc..c0d9cfd8d5 100644
--- a/testsuites/psxtests/psxhdrs/clock06.c
+++ b/testsuites/psxtests/psxhdrs/clock06.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_CPUTIME
#error "rtems is supposed to have clock_getenable_attr"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond01.c b/testsuites/psxtests/psxhdrs/cond01.c
index 26077b8718..c96c8976f2 100644
--- a/testsuites/psxtests/psxhdrs/cond01.c
+++ b/testsuites/psxtests/psxhdrs/cond01.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_condattr_init"
#endif
-
+
void test( void )
{
pthread_condattr_t attribute;
diff --git a/testsuites/psxtests/psxhdrs/cond02.c b/testsuites/psxtests/psxhdrs/cond02.c
index 05842bd7f0..42349f9bcd 100644
--- a/testsuites/psxtests/psxhdrs/cond02.c
+++ b/testsuites/psxtests/psxhdrs/cond02.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_condattr_destroy"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond03.c b/testsuites/psxtests/psxhdrs/cond03.c
index f12457ea10..5147f29d43 100644
--- a/testsuites/psxtests/psxhdrs/cond03.c
+++ b/testsuites/psxtests/psxhdrs/cond03.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cond_init"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond04.c b/testsuites/psxtests/psxhdrs/cond04.c
index cd8e7e26a9..e87a3782c4 100644
--- a/testsuites/psxtests/psxhdrs/cond04.c
+++ b/testsuites/psxtests/psxhdrs/cond04.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cond_destroy"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond05.c b/testsuites/psxtests/psxhdrs/cond05.c
index 08b35b4473..d07bdc57eb 100644
--- a/testsuites/psxtests/psxhdrs/cond05.c
+++ b/testsuites/psxtests/psxhdrs/cond05.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cond_signal"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond06.c b/testsuites/psxtests/psxhdrs/cond06.c
index 7bd3078789..944b399150 100644
--- a/testsuites/psxtests/psxhdrs/cond06.c
+++ b/testsuites/psxtests/psxhdrs/cond06.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cond_wait"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond07.c b/testsuites/psxtests/psxhdrs/cond07.c
index dadcae1494..080c443066 100644
--- a/testsuites/psxtests/psxhdrs/cond07.c
+++ b/testsuites/psxtests/psxhdrs/cond07.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cond_timedwait"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond08.c b/testsuites/psxtests/psxhdrs/cond08.c
index adae781984..9ecda20359 100644
--- a/testsuites/psxtests/psxhdrs/cond08.c
+++ b/testsuites/psxtests/psxhdrs/cond08.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_condattr_getpshared"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond09.c b/testsuites/psxtests/psxhdrs/cond09.c
index 30f053f04d..f7edd17e5a 100644
--- a/testsuites/psxtests/psxhdrs/cond09.c
+++ b/testsuites/psxtests/psxhdrs/cond09.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_condattr_setpshared"
#endif
diff --git a/testsuites/psxtests/psxhdrs/cond10.c b/testsuites/psxtests/psxhdrs/cond10.c
index 4560c2a6a9..7caf4cb9f5 100644
--- a/testsuites/psxtests/psxhdrs/cond10.c
+++ b/testsuites/psxtests/psxhdrs/cond10.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cond_broadcast"
#endif
diff --git a/testsuites/psxtests/psxhdrs/key01.c b/testsuites/psxtests/psxhdrs/key01.c
index 907838d4c0..ee90eccbd2 100644
--- a/testsuites/psxtests/psxhdrs/key01.c
+++ b/testsuites/psxtests/psxhdrs/key01.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_key_create"
#endif
diff --git a/testsuites/psxtests/psxhdrs/key02.c b/testsuites/psxtests/psxhdrs/key02.c
index 538bbd88c3..a96546f213 100644
--- a/testsuites/psxtests/psxhdrs/key02.c
+++ b/testsuites/psxtests/psxhdrs/key02.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_setspecific"
#endif
diff --git a/testsuites/psxtests/psxhdrs/key03.c b/testsuites/psxtests/psxhdrs/key03.c
index 38addb1964..6e099de756 100644
--- a/testsuites/psxtests/psxhdrs/key03.c
+++ b/testsuites/psxtests/psxhdrs/key03.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_getspecific"
#endif
diff --git a/testsuites/psxtests/psxhdrs/key04.c b/testsuites/psxtests/psxhdrs/key04.c
index 3e1cc4e3c1..4d6ebb52cc 100644
--- a/testsuites/psxtests/psxhdrs/key04.c
+++ b/testsuites/psxtests/psxhdrs/key04.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_key_delete"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex01.c b/testsuites/psxtests/psxhdrs/mutex01.c
index 675015206f..d89fda8763 100644
--- a/testsuites/psxtests/psxhdrs/mutex01.c
+++ b/testsuites/psxtests/psxhdrs/mutex01.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutexattr_init"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex02.c b/testsuites/psxtests/psxhdrs/mutex02.c
index 7bab4ac31e..4e73a9a8ba 100644
--- a/testsuites/psxtests/psxhdrs/mutex02.c
+++ b/testsuites/psxtests/psxhdrs/mutex02.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutexattr_destroy"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex03.c b/testsuites/psxtests/psxhdrs/mutex03.c
index beb59ad5db..99c57a2e22 100644
--- a/testsuites/psxtests/psxhdrs/mutex03.c
+++ b/testsuites/psxtests/psxhdrs/mutex03.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutex_init"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex04.c b/testsuites/psxtests/psxhdrs/mutex04.c
index 2afe0997a3..4e88ed2d51 100644
--- a/testsuites/psxtests/psxhdrs/mutex04.c
+++ b/testsuites/psxtests/psxhdrs/mutex04.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutex_destroy"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex05.c b/testsuites/psxtests/psxhdrs/mutex05.c
index 5b75d4c6f0..c7ac684a36 100644
--- a/testsuites/psxtests/psxhdrs/mutex05.c
+++ b/testsuites/psxtests/psxhdrs/mutex05.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutex_lock"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex06.c b/testsuites/psxtests/psxhdrs/mutex06.c
index 01ada9e875..d1e46a6858 100644
--- a/testsuites/psxtests/psxhdrs/mutex06.c
+++ b/testsuites/psxtests/psxhdrs/mutex06.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutex_unlock"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex07.c b/testsuites/psxtests/psxhdrs/mutex07.c
index ec5f880cc6..2276ef81a6 100644
--- a/testsuites/psxtests/psxhdrs/mutex07.c
+++ b/testsuites/psxtests/psxhdrs/mutex07.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIO_INHERIT
#error "rtems is supposed to have pthread_mutexattr_setprotocol"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex08.c b/testsuites/psxtests/psxhdrs/mutex08.c
index d17b7b871f..49c4edb4ea 100644
--- a/testsuites/psxtests/psxhdrs/mutex08.c
+++ b/testsuites/psxtests/psxhdrs/mutex08.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIO_INHERIT
#error "rtems is supposed to have pthread_mutexattr_getprioceiling"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex09.c b/testsuites/psxtests/psxhdrs/mutex09.c
index 28fc878344..85282a9f64 100644
--- a/testsuites/psxtests/psxhdrs/mutex09.c
+++ b/testsuites/psxtests/psxhdrs/mutex09.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIO_INHERIT
#error "rtems is supposed to have pthread_mutexattr_setprioceiling"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex10.c b/testsuites/psxtests/psxhdrs/mutex10.c
index 40852dd51b..51e99ade6a 100644
--- a/testsuites/psxtests/psxhdrs/mutex10.c
+++ b/testsuites/psxtests/psxhdrs/mutex10.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutexattr_getpshared"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex11.c b/testsuites/psxtests/psxhdrs/mutex11.c
index 0b9e4a580c..eb6d8e5959 100644
--- a/testsuites/psxtests/psxhdrs/mutex11.c
+++ b/testsuites/psxtests/psxhdrs/mutex11.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutexattr_setpshared"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex12.c b/testsuites/psxtests/psxhdrs/mutex12.c
index 23a76eb5cb..f48fb9deaa 100644
--- a/testsuites/psxtests/psxhdrs/mutex12.c
+++ b/testsuites/psxtests/psxhdrs/mutex12.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutex_trylock"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex13.c b/testsuites/psxtests/psxhdrs/mutex13.c
index 255c5d18c9..15285c9ba7 100644
--- a/testsuites/psxtests/psxhdrs/mutex13.c
+++ b/testsuites/psxtests/psxhdrs/mutex13.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_mutex_timedlock"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex14.c b/testsuites/psxtests/psxhdrs/mutex14.c
index 01b453de05..687a981152 100644
--- a/testsuites/psxtests/psxhdrs/mutex14.c
+++ b/testsuites/psxtests/psxhdrs/mutex14.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIO_INHERIT
#error "rtems is supposed to have pthread_mutexattr_getprotocol"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex15.c b/testsuites/psxtests/psxhdrs/mutex15.c
index 8cac42f8f1..cc6a7aca9e 100644
--- a/testsuites/psxtests/psxhdrs/mutex15.c
+++ b/testsuites/psxtests/psxhdrs/mutex15.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIO_INHERIT
#error "rtems is supposed to have pthread_mutex_getprioceiling"
#endif
diff --git a/testsuites/psxtests/psxhdrs/mutex16.c b/testsuites/psxtests/psxhdrs/mutex16.c
index f4aa8e657f..e5140b5781 100644
--- a/testsuites/psxtests/psxhdrs/mutex16.c
+++ b/testsuites/psxtests/psxhdrs/mutex16.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIO_INHERIT
#error "rtems is supposed to have pthread_mutex_setprioceiling"
#endif
diff --git a/testsuites/psxtests/psxhdrs/proc01.c b/testsuites/psxtests/psxhdrs/proc01.c
index 7e8d47b153..cda43c09e5 100644
--- a/testsuites/psxtests/psxhdrs/proc01.c
+++ b/testsuites/psxtests/psxhdrs/proc01.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/proc02.c b/testsuites/psxtests/psxhdrs/proc02.c
index f4632be272..78aac3f2c4 100644
--- a/testsuites/psxtests/psxhdrs/proc02.c
+++ b/testsuites/psxtests/psxhdrs/proc02.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/proc03.c b/testsuites/psxtests/psxhdrs/proc03.c
index 79ceee5deb..4b6f390c13 100644
--- a/testsuites/psxtests/psxhdrs/proc03.c
+++ b/testsuites/psxtests/psxhdrs/proc03.c
@@ -14,7 +14,7 @@
#include <unistd.h>
#include <sys/types.h>
-
+
void test( void )
{
uid_t uid;
diff --git a/testsuites/psxtests/psxhdrs/proc04.c b/testsuites/psxtests/psxhdrs/proc04.c
index bb4e9f698d..c127ebe06d 100644
--- a/testsuites/psxtests/psxhdrs/proc04.c
+++ b/testsuites/psxtests/psxhdrs/proc04.c
@@ -14,7 +14,7 @@
#include <unistd.h>
#include <sys/types.h>
-
+
void test( void )
{
uid_t uid;
diff --git a/testsuites/psxtests/psxhdrs/proc05.c b/testsuites/psxtests/psxhdrs/proc05.c
index a5a46fa7bb..e3e67e19e7 100644
--- a/testsuites/psxtests/psxhdrs/proc05.c
+++ b/testsuites/psxtests/psxhdrs/proc05.c
@@ -14,7 +14,7 @@
#include <unistd.h>
#include <sys/types.h>
-
+
void test( void )
{
gid_t gid;
diff --git a/testsuites/psxtests/psxhdrs/proc06.c b/testsuites/psxtests/psxhdrs/proc06.c
index 833b597b17..5244aab354 100644
--- a/testsuites/psxtests/psxhdrs/proc06.c
+++ b/testsuites/psxtests/psxhdrs/proc06.c
@@ -14,7 +14,7 @@
#include <unistd.h>
#include <sys/types.h>
-
+
void test( void )
{
gid_t gid;
diff --git a/testsuites/psxtests/psxhdrs/proc07.c b/testsuites/psxtests/psxhdrs/proc07.c
index f1fce7af2a..0e0577010c 100644
--- a/testsuites/psxtests/psxhdrs/proc07.c
+++ b/testsuites/psxtests/psxhdrs/proc07.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
uid_t uid;
diff --git a/testsuites/psxtests/psxhdrs/proc08.c b/testsuites/psxtests/psxhdrs/proc08.c
index d43ebe53e3..f22f986bfc 100644
--- a/testsuites/psxtests/psxhdrs/proc08.c
+++ b/testsuites/psxtests/psxhdrs/proc08.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
gid_t gid;
diff --git a/testsuites/psxtests/psxhdrs/proc09.c b/testsuites/psxtests/psxhdrs/proc09.c
index cbe197c8fa..120b3e6a93 100644
--- a/testsuites/psxtests/psxhdrs/proc09.c
+++ b/testsuites/psxtests/psxhdrs/proc09.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
gid_t grouplist[ 20 ];
diff --git a/testsuites/psxtests/psxhdrs/proc10.c b/testsuites/psxtests/psxhdrs/proc10.c
index 96ad638198..d9c0daaa57 100644
--- a/testsuites/psxtests/psxhdrs/proc10.c
+++ b/testsuites/psxtests/psxhdrs/proc10.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
char *loginname;
diff --git a/testsuites/psxtests/psxhdrs/proc11.c b/testsuites/psxtests/psxhdrs/proc11.c
index 24eab9c2e3..bac2999707 100644
--- a/testsuites/psxtests/psxhdrs/proc11.c
+++ b/testsuites/psxtests/psxhdrs/proc11.c
@@ -14,7 +14,7 @@
#include <sys/types.h>
#include <limits.h> /* for LOGIN_NAME_MAX */
-
+
void test( void )
{
char loginnamebuffer[ LOGIN_NAME_MAX ];
diff --git a/testsuites/psxtests/psxhdrs/proc12.c b/testsuites/psxtests/psxhdrs/proc12.c
index f226062fdd..7a246acfd4 100644
--- a/testsuites/psxtests/psxhdrs/proc12.c
+++ b/testsuites/psxtests/psxhdrs/proc12.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
pid_t pgrp;
diff --git a/testsuites/psxtests/psxhdrs/proc13.c b/testsuites/psxtests/psxhdrs/proc13.c
index e8cdaa4d83..989f241f51 100644
--- a/testsuites/psxtests/psxhdrs/proc13.c
+++ b/testsuites/psxtests/psxhdrs/proc13.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/proc14.c b/testsuites/psxtests/psxhdrs/proc14.c
index dfb497d075..88e9d7a05c 100644
--- a/testsuites/psxtests/psxhdrs/proc14.c
+++ b/testsuites/psxtests/psxhdrs/proc14.c
@@ -13,7 +13,7 @@
*/
#include <sys/types.h>
-
+
void test( void )
{
pid_t pid = 0;
diff --git a/testsuites/psxtests/psxhdrs/pthread01.c b/testsuites/psxtests/psxhdrs/pthread01.c
index f0e397ae2d..181469a2fa 100644
--- a/testsuites/psxtests/psxhdrs/pthread01.c
+++ b/testsuites/psxtests/psxhdrs/pthread01.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_attr_init"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread03.c b/testsuites/psxtests/psxhdrs/pthread03.c
index 1ad5913e67..b42371bb92 100644
--- a/testsuites/psxtests/psxhdrs/pthread03.c
+++ b/testsuites/psxtests/psxhdrs/pthread03.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_attr_setdetachstate"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread04.c b/testsuites/psxtests/psxhdrs/pthread04.c
index 881ef3a7c9..2a1941a06c 100644
--- a/testsuites/psxtests/psxhdrs/pthread04.c
+++ b/testsuites/psxtests/psxhdrs/pthread04.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_attr_getdetachstate"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread06.c b/testsuites/psxtests/psxhdrs/pthread06.c
index afc74ebfbc..33f5dd069d 100644
--- a/testsuites/psxtests/psxhdrs/pthread06.c
+++ b/testsuites/psxtests/psxhdrs/pthread06.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_getstacksize"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread07.c b/testsuites/psxtests/psxhdrs/pthread07.c
index 399a928c56..09452388ea 100644
--- a/testsuites/psxtests/psxhdrs/pthread07.c
+++ b/testsuites/psxtests/psxhdrs/pthread07.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_create"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread09.c b/testsuites/psxtests/psxhdrs/pthread09.c
index 4252d17ee7..c9b06514ae 100644
--- a/testsuites/psxtests/psxhdrs/pthread09.c
+++ b/testsuites/psxtests/psxhdrs/pthread09.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_self"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread10.c b/testsuites/psxtests/psxhdrs/pthread10.c
index 5e2967492f..4c65e0e293 100644
--- a/testsuites/psxtests/psxhdrs/pthread10.c
+++ b/testsuites/psxtests/psxhdrs/pthread10.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_equal"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread11.c b/testsuites/psxtests/psxhdrs/pthread11.c
index 2fc3263614..aad4b83d49 100644
--- a/testsuites/psxtests/psxhdrs/pthread11.c
+++ b/testsuites/psxtests/psxhdrs/pthread11.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_setschedparam"
#endif
@@ -38,7 +38,7 @@ void test( void )
* really should use sched_get_priority_min() and sched_get_priority_max()
*/
- param.sched_priority = 0;
+ param.sched_priority = 0;
#ifdef _POSIX_SPORADIC_SERVER
param.ss_low_priority = 0;
param.ss_replenish_period.tv_sec = 0;
diff --git a/testsuites/psxtests/psxhdrs/pthread12.c b/testsuites/psxtests/psxhdrs/pthread12.c
index 44c2f5eeeb..987c6f6dfa 100644
--- a/testsuites/psxtests/psxhdrs/pthread12.c
+++ b/testsuites/psxtests/psxhdrs/pthread12.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_getschedparam"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread13.c b/testsuites/psxtests/psxhdrs/pthread13.c
index 717bc49356..5c90869055 100644
--- a/testsuites/psxtests/psxhdrs/pthread13.c
+++ b/testsuites/psxtests/psxhdrs/pthread13.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_setscope"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread14.c b/testsuites/psxtests/psxhdrs/pthread14.c
index a20bc30a00..b7c7e8306c 100644
--- a/testsuites/psxtests/psxhdrs/pthread14.c
+++ b/testsuites/psxtests/psxhdrs/pthread14.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_getscope"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread15.c b/testsuites/psxtests/psxhdrs/pthread15.c
index e5b0d7f6dd..8302481a83 100644
--- a/testsuites/psxtests/psxhdrs/pthread15.c
+++ b/testsuites/psxtests/psxhdrs/pthread15.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_setinheritsched"
#endif
@@ -26,6 +26,6 @@ void test( void )
inheritsched = PTHREAD_INHERIT_SCHED;
inheritsched = PTHREAD_EXPLICIT_SCHED;
-
+
result = pthread_attr_setinheritsched( &attr, inheritsched );
}
diff --git a/testsuites/psxtests/psxhdrs/pthread16.c b/testsuites/psxtests/psxhdrs/pthread16.c
index 1d360b6ea6..0d5cfbdd49 100644
--- a/testsuites/psxtests/psxhdrs/pthread16.c
+++ b/testsuites/psxtests/psxhdrs/pthread16.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_getinheritsched"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread17.c b/testsuites/psxtests/psxhdrs/pthread17.c
index 89dff22436..cd82347960 100644
--- a/testsuites/psxtests/psxhdrs/pthread17.c
+++ b/testsuites/psxtests/psxhdrs/pthread17.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_setschedpolicy"
#endif
@@ -30,6 +30,6 @@ void test( void )
#ifdef _POSIX_SPORADIC_SERVER
policy = SCHED_SPORADIC;
#endif
-
+
result = pthread_attr_setschedpolicy( &attr, policy );
}
diff --git a/testsuites/psxtests/psxhdrs/pthread18.c b/testsuites/psxtests/psxhdrs/pthread18.c
index 9f6eec7051..ae8ce0480c 100644
--- a/testsuites/psxtests/psxhdrs/pthread18.c
+++ b/testsuites/psxtests/psxhdrs/pthread18.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_getschedpolicy"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread19.c b/testsuites/psxtests/psxhdrs/pthread19.c
index b1f1f98ff6..17a85ecda0 100644
--- a/testsuites/psxtests/psxhdrs/pthread19.c
+++ b/testsuites/psxtests/psxhdrs/pthread19.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_setschedparam"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread20.c b/testsuites/psxtests/psxhdrs/pthread20.c
index bd3cb7305d..f9d700e9ad 100644
--- a/testsuites/psxtests/psxhdrs/pthread20.c
+++ b/testsuites/psxtests/psxhdrs/pthread20.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_getschedparam"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread21.c b/testsuites/psxtests/psxhdrs/pthread21.c
index dd16a2406b..91844b310c 100644
--- a/testsuites/psxtests/psxhdrs/pthread21.c
+++ b/testsuites/psxtests/psxhdrs/pthread21.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_detach"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread22.c b/testsuites/psxtests/psxhdrs/pthread22.c
index 46587d12e3..39abb83e8e 100644
--- a/testsuites/psxtests/psxhdrs/pthread22.c
+++ b/testsuites/psxtests/psxhdrs/pthread22.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_setschedparam"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread23.c b/testsuites/psxtests/psxhdrs/pthread23.c
index 4d2dd99665..0e8e5b44ef 100644
--- a/testsuites/psxtests/psxhdrs/pthread23.c
+++ b/testsuites/psxtests/psxhdrs/pthread23.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_getschedparam"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread26.c b/testsuites/psxtests/psxhdrs/pthread26.c
index dd3e8f1500..d42080b5aa 100644
--- a/testsuites/psxtests/psxhdrs/pthread26.c
+++ b/testsuites/psxtests/psxhdrs/pthread26.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_join"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread27.c b/testsuites/psxtests/psxhdrs/pthread27.c
index 51e5cfde46..712d8af252 100644
--- a/testsuites/psxtests/psxhdrs/pthread27.c
+++ b/testsuites/psxtests/psxhdrs/pthread27.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_once"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread28.c b/testsuites/psxtests/psxhdrs/pthread28.c
index e1e72520b0..d7e84565cc 100644
--- a/testsuites/psxtests/psxhdrs/pthread28.c
+++ b/testsuites/psxtests/psxhdrs/pthread28.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cancel"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread29.c b/testsuites/psxtests/psxhdrs/pthread29.c
index 206260540b..52b84509bf 100644
--- a/testsuites/psxtests/psxhdrs/pthread29.c
+++ b/testsuites/psxtests/psxhdrs/pthread29.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_setcancelstate"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread30.c b/testsuites/psxtests/psxhdrs/pthread30.c
index 32b4ac94f4..1e3eafab34 100644
--- a/testsuites/psxtests/psxhdrs/pthread30.c
+++ b/testsuites/psxtests/psxhdrs/pthread30.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_setcanceltype"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread31.c b/testsuites/psxtests/psxhdrs/pthread31.c
index d2f399dda3..a64f0e0327 100644
--- a/testsuites/psxtests/psxhdrs/pthread31.c
+++ b/testsuites/psxtests/psxhdrs/pthread31.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_testcancel"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread32.c b/testsuites/psxtests/psxhdrs/pthread32.c
index be193ae31e..f841dc14b9 100644
--- a/testsuites/psxtests/psxhdrs/pthread32.c
+++ b/testsuites/psxtests/psxhdrs/pthread32.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cleanup_push"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread33.c b/testsuites/psxtests/psxhdrs/pthread33.c
index 122e276815..12c6324535 100644
--- a/testsuites/psxtests/psxhdrs/pthread33.c
+++ b/testsuites/psxtests/psxhdrs/pthread33.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_cleanup_pop"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread34.c b/testsuites/psxtests/psxhdrs/pthread34.c
index 096561f951..9572e03e19 100644
--- a/testsuites/psxtests/psxhdrs/pthread34.c
+++ b/testsuites/psxtests/psxhdrs/pthread34.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_CPUTIME
#error "rtems is supposed to have pthread_getcpuclockid"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread35.c b/testsuites/psxtests/psxhdrs/pthread35.c
index 698cdfcf20..668776ec02 100644
--- a/testsuites/psxtests/psxhdrs/pthread35.c
+++ b/testsuites/psxtests/psxhdrs/pthread35.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_CPUTIME
#error "rtems is supposed to have pthread_attr_setcputime"
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread36.c b/testsuites/psxtests/psxhdrs/pthread36.c
index 9e38bee279..1c06006a70 100644
--- a/testsuites/psxtests/psxhdrs/pthread36.c
+++ b/testsuites/psxtests/psxhdrs/pthread36.c
@@ -13,7 +13,7 @@
*/
#include <pthread.h>
-
+
#ifndef _POSIX_THREAD_CPUTIME
#error "rtems is supposed to have pthread_attr_getcputime"
#endif
diff --git a/testsuites/psxtests/psxhdrs/sched01.c b/testsuites/psxtests/psxhdrs/sched01.c
index 6b92a3cf77..5d9e3f6803 100644
--- a/testsuites/psxtests/psxhdrs/sched01.c
+++ b/testsuites/psxtests/psxhdrs/sched01.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_setparam"
#endif
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/sched02.c b/testsuites/psxtests/psxhdrs/sched02.c
index da7b668857..6102a30a8a 100644
--- a/testsuites/psxtests/psxhdrs/sched02.c
+++ b/testsuites/psxtests/psxhdrs/sched02.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_getparam"
#endif
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/sched03.c b/testsuites/psxtests/psxhdrs/sched03.c
index 2e7f5b3d47..1767f807b0 100644
--- a/testsuites/psxtests/psxhdrs/sched03.c
+++ b/testsuites/psxtests/psxhdrs/sched03.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_setscheduler"
#endif
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/sched04.c b/testsuites/psxtests/psxhdrs/sched04.c
index e5adda719a..674de3dfce 100644
--- a/testsuites/psxtests/psxhdrs/sched04.c
+++ b/testsuites/psxtests/psxhdrs/sched04.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_getscheduler"
#endif
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/sched05.c b/testsuites/psxtests/psxhdrs/sched05.c
index 1d483866d1..302b23fc52 100644
--- a/testsuites/psxtests/psxhdrs/sched05.c
+++ b/testsuites/psxtests/psxhdrs/sched05.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_yield"
#endif
-
+
void test( void )
{
int result;
diff --git a/testsuites/psxtests/psxhdrs/sched06.c b/testsuites/psxtests/psxhdrs/sched06.c
index 7b85230594..a8f7a3197b 100644
--- a/testsuites/psxtests/psxhdrs/sched06.c
+++ b/testsuites/psxtests/psxhdrs/sched06.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_get_priority_max"
#endif
-
+
void test( void )
{
int policy;
diff --git a/testsuites/psxtests/psxhdrs/sched07.c b/testsuites/psxtests/psxhdrs/sched07.c
index b00056e2e6..f96b22629a 100644
--- a/testsuites/psxtests/psxhdrs/sched07.c
+++ b/testsuites/psxtests/psxhdrs/sched07.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_get_priority_min"
#endif
-
+
void test( void )
{
int policy;
diff --git a/testsuites/psxtests/psxhdrs/sched08.c b/testsuites/psxtests/psxhdrs/sched08.c
index 56f89df3a0..b0eb45b36b 100644
--- a/testsuites/psxtests/psxhdrs/sched08.c
+++ b/testsuites/psxtests/psxhdrs/sched08.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_PRIORITY_SCHEDULING
#error "rtems is supposed to have sched_rr_get_interval"
#endif
-
+
void test( void )
{
pid_t pid;
diff --git a/testsuites/psxtests/psxhdrs/signal01.c b/testsuites/psxtests/psxhdrs/signal01.c
index f897b36211..56b7c2644d 100644
--- a/testsuites/psxtests/psxhdrs/signal01.c
+++ b/testsuites/psxtests/psxhdrs/signal01.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t signal_set;
diff --git a/testsuites/psxtests/psxhdrs/signal02.c b/testsuites/psxtests/psxhdrs/signal02.c
index c9e8c0a0d6..66e7620519 100644
--- a/testsuites/psxtests/psxhdrs/signal02.c
+++ b/testsuites/psxtests/psxhdrs/signal02.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t signal_set;
diff --git a/testsuites/psxtests/psxhdrs/signal03.c b/testsuites/psxtests/psxhdrs/signal03.c
index 672dff6761..12808e2b43 100644
--- a/testsuites/psxtests/psxhdrs/signal03.c
+++ b/testsuites/psxtests/psxhdrs/signal03.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t signal_set;
diff --git a/testsuites/psxtests/psxhdrs/signal04.c b/testsuites/psxtests/psxhdrs/signal04.c
index 58c9c54900..9b173822a1 100644
--- a/testsuites/psxtests/psxhdrs/signal04.c
+++ b/testsuites/psxtests/psxhdrs/signal04.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t signal_set;
diff --git a/testsuites/psxtests/psxhdrs/signal05.c b/testsuites/psxtests/psxhdrs/signal05.c
index a6bf097830..f1ddd69d93 100644
--- a/testsuites/psxtests/psxhdrs/signal05.c
+++ b/testsuites/psxtests/psxhdrs/signal05.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t signal_set;
diff --git a/testsuites/psxtests/psxhdrs/signal06.c b/testsuites/psxtests/psxhdrs/signal06.c
index 4ab7bbcdb5..0590404504 100644
--- a/testsuites/psxtests/psxhdrs/signal06.c
+++ b/testsuites/psxtests/psxhdrs/signal06.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
int signal_number;
diff --git a/testsuites/psxtests/psxhdrs/signal07.c b/testsuites/psxtests/psxhdrs/signal07.c
index c40cf71db4..22a03e0cb8 100644
--- a/testsuites/psxtests/psxhdrs/signal07.c
+++ b/testsuites/psxtests/psxhdrs/signal07.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_kill"
#endif
diff --git a/testsuites/psxtests/psxhdrs/signal08.c b/testsuites/psxtests/psxhdrs/signal08.c
index 9cb959aea9..623781f64a 100644
--- a/testsuites/psxtests/psxhdrs/signal08.c
+++ b/testsuites/psxtests/psxhdrs/signal08.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
#ifndef _POSIX_THREADS
#error "rtems is supposed to have pthread_sigmask"
#endif
diff --git a/testsuites/psxtests/psxhdrs/signal09.c b/testsuites/psxtests/psxhdrs/signal09.c
index 902fb519cd..79ee9c852c 100644
--- a/testsuites/psxtests/psxhdrs/signal09.c
+++ b/testsuites/psxtests/psxhdrs/signal09.c
@@ -14,13 +14,13 @@
#include <sys/types.h>
#include <signal.h>
-
+
void test( void )
{
pid_t pid;
int signal_number;
int result;
-
+
pid = 0;
signal_number = SIGALRM;
diff --git a/testsuites/psxtests/psxhdrs/signal10.c b/testsuites/psxtests/psxhdrs/signal10.c
index a366e74650..5a215c6366 100644
--- a/testsuites/psxtests/psxhdrs/signal10.c
+++ b/testsuites/psxtests/psxhdrs/signal10.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t set;
diff --git a/testsuites/psxtests/psxhdrs/signal11.c b/testsuites/psxtests/psxhdrs/signal11.c
index 3afc6347e8..18c1dee813 100644
--- a/testsuites/psxtests/psxhdrs/signal11.c
+++ b/testsuites/psxtests/psxhdrs/signal11.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
int signal_number;
diff --git a/testsuites/psxtests/psxhdrs/signal12.c b/testsuites/psxtests/psxhdrs/signal12.c
index 8533359b17..25382ae82d 100644
--- a/testsuites/psxtests/psxhdrs/signal12.c
+++ b/testsuites/psxtests/psxhdrs/signal12.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
void (*signal_function_pointer)();
diff --git a/testsuites/psxtests/psxhdrs/signal13.c b/testsuites/psxtests/psxhdrs/signal13.c
index 89f8f4586d..54a366b718 100644
--- a/testsuites/psxtests/psxhdrs/signal13.c
+++ b/testsuites/psxtests/psxhdrs/signal13.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
int how;
diff --git a/testsuites/psxtests/psxhdrs/signal14.c b/testsuites/psxtests/psxhdrs/signal14.c
index 8f40b0c489..5384fb2a36 100644
--- a/testsuites/psxtests/psxhdrs/signal14.c
+++ b/testsuites/psxtests/psxhdrs/signal14.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t set;
diff --git a/testsuites/psxtests/psxhdrs/signal15.c b/testsuites/psxtests/psxhdrs/signal15.c
index 365dc97030..db38af651e 100644
--- a/testsuites/psxtests/psxhdrs/signal15.c
+++ b/testsuites/psxtests/psxhdrs/signal15.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t sigmask;
diff --git a/testsuites/psxtests/psxhdrs/signal16.c b/testsuites/psxtests/psxhdrs/signal16.c
index 90b159b02d..acaadeae48 100644
--- a/testsuites/psxtests/psxhdrs/signal16.c
+++ b/testsuites/psxtests/psxhdrs/signal16.c
@@ -17,7 +17,7 @@
#ifndef _POSIX_THREADS
#define "rtems is supposed to have pthread_sigmask"
#endif
-
+
void test( void )
{
int how;
diff --git a/testsuites/psxtests/psxhdrs/signal17.c b/testsuites/psxtests/psxhdrs/signal17.c
index fe367d0d88..99200d5dcd 100644
--- a/testsuites/psxtests/psxhdrs/signal17.c
+++ b/testsuites/psxtests/psxhdrs/signal17.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t set;
diff --git a/testsuites/psxtests/psxhdrs/signal18.c b/testsuites/psxtests/psxhdrs/signal18.c
index 69cd84b52a..11d260c293 100644
--- a/testsuites/psxtests/psxhdrs/signal18.c
+++ b/testsuites/psxtests/psxhdrs/signal18.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t set;
diff --git a/testsuites/psxtests/psxhdrs/signal19.c b/testsuites/psxtests/psxhdrs/signal19.c
index fdc0558417..732dd3c20e 100644
--- a/testsuites/psxtests/psxhdrs/signal19.c
+++ b/testsuites/psxtests/psxhdrs/signal19.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
sigset_t set;
diff --git a/testsuites/psxtests/psxhdrs/signal20.c b/testsuites/psxtests/psxhdrs/signal20.c
index 639738e1c6..7529657c14 100644
--- a/testsuites/psxtests/psxhdrs/signal20.c
+++ b/testsuites/psxtests/psxhdrs/signal20.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
unsigned int seconds;
diff --git a/testsuites/psxtests/psxhdrs/signal21.c b/testsuites/psxtests/psxhdrs/signal21.c
index c981ab217c..ba230fdce0 100644
--- a/testsuites/psxtests/psxhdrs/signal21.c
+++ b/testsuites/psxtests/psxhdrs/signal21.c
@@ -13,7 +13,7 @@
*/
#include <signal.h>
-
+
void test( void )
{
int result;
diff --git a/testsuites/psxtests/psxhdrs/signal22.c b/testsuites/psxtests/psxhdrs/signal22.c
index 547faa51a7..3e8697167b 100644
--- a/testsuites/psxtests/psxhdrs/signal22.c
+++ b/testsuites/psxtests/psxhdrs/signal22.c
@@ -13,7 +13,7 @@
*/
#include <unistd.h>
-
+
void test( void )
{
unsigned int seconds;
diff --git a/testsuites/psxtests/psxhdrs/signal23.c b/testsuites/psxtests/psxhdrs/signal23.c
index 4a6af9b6cd..4d7a4ca157 100644
--- a/testsuites/psxtests/psxhdrs/signal23.c
+++ b/testsuites/psxtests/psxhdrs/signal23.c
@@ -13,14 +13,14 @@
*/
#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;
diff --git a/testsuites/psxtests/psxhdrs/sync01.c b/testsuites/psxtests/psxhdrs/sync01.c
index 7ebb18509c..3949a758dc 100644
--- a/testsuites/psxtests/psxhdrs/sync01.c
+++ b/testsuites/psxtests/psxhdrs/sync01.c
@@ -13,7 +13,7 @@
*/
#include <unistd.h>
-
+
void test( void )
{
int fd;
diff --git a/testsuites/psxtests/psxhdrs/sync02.c b/testsuites/psxtests/psxhdrs/sync02.c
index 425feb10fd..300eeca783 100644
--- a/testsuites/psxtests/psxhdrs/sync02.c
+++ b/testsuites/psxtests/psxhdrs/sync02.c
@@ -13,7 +13,7 @@
*/
#include <unistd.h>
-
+
void test( void )
{
int fd;
diff --git a/testsuites/psxtests/psxhdrs/sync03.c b/testsuites/psxtests/psxhdrs/sync03.c
index 44564c0715..467d1af6ea 100644
--- a/testsuites/psxtests/psxhdrs/sync03.c
+++ b/testsuites/psxtests/psxhdrs/sync03.c
@@ -13,7 +13,7 @@
*/
#include <unistd.h>
-
+
void test( void )
{
sync();
diff --git a/testsuites/psxtests/psxhdrs/time01.c b/testsuites/psxtests/psxhdrs/time01.c
index 3e77c3f405..a4ab5b0296 100644
--- a/testsuites/psxtests/psxhdrs/time01.c
+++ b/testsuites/psxtests/psxhdrs/time01.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
void test( void )
{
clock_t clock_ticks;
diff --git a/testsuites/psxtests/psxhdrs/time02.c b/testsuites/psxtests/psxhdrs/time02.c
index 4065559845..e1afdb1d01 100644
--- a/testsuites/psxtests/psxhdrs/time02.c
+++ b/testsuites/psxtests/psxhdrs/time02.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
void test( void )
{
time_t time1;
diff --git a/testsuites/psxtests/psxhdrs/time03.c b/testsuites/psxtests/psxhdrs/time03.c
index 329dfe89ec..f3634cbcd2 100644
--- a/testsuites/psxtests/psxhdrs/time03.c
+++ b/testsuites/psxtests/psxhdrs/time03.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
void test( void )
{
struct tm timestruct;
diff --git a/testsuites/psxtests/psxhdrs/time04.c b/testsuites/psxtests/psxhdrs/time04.c
index 2ff1b4f145..43eb9c2eec 100644
--- a/testsuites/psxtests/psxhdrs/time04.c
+++ b/testsuites/psxtests/psxhdrs/time04.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
void test( void )
{
time_t new_time;
diff --git a/testsuites/psxtests/psxhdrs/time05.c b/testsuites/psxtests/psxhdrs/time05.c
index b8e492a0e9..65de89c203 100644
--- a/testsuites/psxtests/psxhdrs/time05.c
+++ b/testsuites/psxtests/psxhdrs/time05.c
@@ -13,14 +13,14 @@
*/
#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", &timestruct );
diff --git a/testsuites/psxtests/psxhdrs/time06.c b/testsuites/psxtests/psxhdrs/time06.c
index 42fdadc394..05066f9669 100644
--- a/testsuites/psxtests/psxhdrs/time06.c
+++ b/testsuites/psxtests/psxhdrs/time06.c
@@ -13,11 +13,11 @@
*/
#include <time.h>
-
+
void test( void )
{
char *buffer;
struct tm timestruct;
-
+
buffer = asctime( &timestruct );
}
diff --git a/testsuites/psxtests/psxhdrs/time07.c b/testsuites/psxtests/psxhdrs/time07.c
index 9928ae9a9d..43e1d87e1a 100644
--- a/testsuites/psxtests/psxhdrs/time07.c
+++ b/testsuites/psxtests/psxhdrs/time07.c
@@ -13,11 +13,11 @@
*/
#include <time.h>
-
+
void test( void )
{
char *buffer;
time_t time;
-
+
buffer = ctime( &time );
}
diff --git a/testsuites/psxtests/psxhdrs/time08.c b/testsuites/psxtests/psxhdrs/time08.c
index 62daec0726..0016f03343 100644
--- a/testsuites/psxtests/psxhdrs/time08.c
+++ b/testsuites/psxtests/psxhdrs/time08.c
@@ -13,11 +13,11 @@
*/
#include <time.h>
-
+
void test( void )
{
time_t time;
struct tm *timestruct;
-
+
timestruct = gmtime( &time );
}
diff --git a/testsuites/psxtests/psxhdrs/time09.c b/testsuites/psxtests/psxhdrs/time09.c
index c0377dd873..59d97af024 100644
--- a/testsuites/psxtests/psxhdrs/time09.c
+++ b/testsuites/psxtests/psxhdrs/time09.c
@@ -13,11 +13,11 @@
*/
#include <time.h>
-
+
void test( void )
{
time_t time;
struct tm *timestruct;
-
+
timestruct = localtime( &time );
}
diff --git a/testsuites/psxtests/psxhdrs/time10.c b/testsuites/psxtests/psxhdrs/time10.c
index 75325851dd..f4b5edf41c 100644
--- a/testsuites/psxtests/psxhdrs/time10.c
+++ b/testsuites/psxtests/psxhdrs/time10.c
@@ -13,12 +13,12 @@
*/
#include <time.h>
-
+
void test( void )
{
char *buffer_pointer;
struct tm timestruct;
char buffer[ 80 ];
-
+
buffer_pointer = asctime_r( &timestruct, buffer );
}
diff --git a/testsuites/psxtests/psxhdrs/time11.c b/testsuites/psxtests/psxhdrs/time11.c
index 575e662568..f4c83add22 100644
--- a/testsuites/psxtests/psxhdrs/time11.c
+++ b/testsuites/psxtests/psxhdrs/time11.c
@@ -13,12 +13,12 @@
*/
#include <time.h>
-
+
void test( void )
{
char *buffer_pointer;
char buffer[ 80 ];
time_t time;
-
+
buffer_pointer = ctime_r( &time, buffer );
}
diff --git a/testsuites/psxtests/psxhdrs/time12.c b/testsuites/psxtests/psxhdrs/time12.c
index 26683b5c5a..8377b2b343 100644
--- a/testsuites/psxtests/psxhdrs/time12.c
+++ b/testsuites/psxtests/psxhdrs/time12.c
@@ -13,12 +13,12 @@
*/
#include <time.h>
-
+
void test( void )
{
time_t time;
struct tm *timestruct_pointer;
struct tm timestruct;
-
+
timestruct_pointer = gmtime_r( &time, &timestruct );
}
diff --git a/testsuites/psxtests/psxhdrs/time13.c b/testsuites/psxtests/psxhdrs/time13.c
index e571e24f68..365291dc06 100644
--- a/testsuites/psxtests/psxhdrs/time13.c
+++ b/testsuites/psxtests/psxhdrs/time13.c
@@ -13,12 +13,12 @@
*/
#include <time.h>
-
+
void test( void )
{
time_t time;
struct tm *timestruct_pointer;
struct tm timestruct;
-
+
timestruct_pointer = localtime_r( &time, &timestruct );
}
diff --git a/testsuites/psxtests/psxhdrs/timer01.c b/testsuites/psxtests/psxhdrs/timer01.c
index 8f71a30055..eb58d5b735 100644
--- a/testsuites/psxtests/psxhdrs/timer01.c
+++ b/testsuites/psxtests/psxhdrs/timer01.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have timer_create"
#endif
@@ -31,6 +31,6 @@ void test( void )
evp.sigev_signo = SIGALRM;
evp.sigev_value.sival_int = 0;
evp.sigev_value.sival_ptr = NULL;
-
+
result = timer_create( clock_id, &evp, &timerid );
}
diff --git a/testsuites/psxtests/psxhdrs/timer02.c b/testsuites/psxtests/psxhdrs/timer02.c
index 5949300b52..cf25f6476f 100644
--- a/testsuites/psxtests/psxhdrs/timer02.c
+++ b/testsuites/psxtests/psxhdrs/timer02.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have timer_delete"
#endif
@@ -22,6 +22,6 @@ void test( void )
{
timer_t timerid = 0;
int result;
-
+
result = timer_delete( timerid );
}
diff --git a/testsuites/psxtests/psxhdrs/timer03.c b/testsuites/psxtests/psxhdrs/timer03.c
index f30bb3047d..6460a48c10 100644
--- a/testsuites/psxtests/psxhdrs/timer03.c
+++ b/testsuites/psxtests/psxhdrs/timer03.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have timer_settime"
#endif
diff --git a/testsuites/psxtests/psxhdrs/timer04.c b/testsuites/psxtests/psxhdrs/timer04.c
index 7de072d58c..45a60fb70c 100644
--- a/testsuites/psxtests/psxhdrs/timer04.c
+++ b/testsuites/psxtests/psxhdrs/timer04.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have timer_gettime"
#endif
diff --git a/testsuites/psxtests/psxhdrs/timer05.c b/testsuites/psxtests/psxhdrs/timer05.c
index 71f5a7a211..7da6c48794 100644
--- a/testsuites/psxtests/psxhdrs/timer05.c
+++ b/testsuites/psxtests/psxhdrs/timer05.c
@@ -13,7 +13,7 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have timer_getoverrun"
#endif
diff --git a/testsuites/psxtests/psxhdrs/timer06.c b/testsuites/psxtests/psxhdrs/timer06.c
index 833aece2c9..f2ef8fd4af 100644
--- a/testsuites/psxtests/psxhdrs/timer06.c
+++ b/testsuites/psxtests/psxhdrs/timer06.c
@@ -13,15 +13,15 @@
*/
#include <time.h>
-
+
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have nanosleep"
#endif
void test( void )
{
- struct timespec rqtp;
- struct timespec rmtp;
+ struct timespec rqtp;
+ struct timespec rmtp;
int result;
rqtp.tv_sec = 0;
diff --git a/testsuites/psxtests/psxhdrs/timer07.c b/testsuites/psxtests/psxhdrs/timer07.c
index 47016934e9..bcb6b394fe 100644
--- a/testsuites/psxtests/psxhdrs/timer07.c
+++ b/testsuites/psxtests/psxhdrs/timer07.c
@@ -13,10 +13,10 @@
*/
#include <unistd.h>
-
+
void test( void )
{
- unsigned long usec;
+ unsigned long usec;
unsigned result;
usec = 0;
diff --git a/testsuites/psxtests/psxmount/main.c b/testsuites/psxtests/psxmount/main.c
index 5ca91e8158..24a4bb27cf 100644
--- a/testsuites/psxtests/psxmount/main.c
+++ b/testsuites/psxtests/psxmount/main.c
@@ -1,5 +1,5 @@
/*
- * Simple test program -- check out of the basic file system mounting
+ * Simple test program -- check out of the basic file system mounting
* capabilities
* Attempt to mount the IMFS file system on a mount point in the base IMFS
*/
diff --git a/testsuites/psxtests/psxmount/test.c b/testsuites/psxtests/psxmount/test.c
index f3bc369ccb..e72cb689ed 100644
--- a/testsuites/psxtests/psxmount/test.c
+++ b/testsuites/psxtests/psxmount/test.c
@@ -2,12 +2,12 @@
* This is a native test to explore how the readdir() family works.
* Newlib supports the following readdir() family members:
*
- * closedir() -
- * readdir() -
- * scandir() -
- * opendir() -
- * rewinddir() -
- * telldir() - BSD not in POSIX
+ * closedir() -
+ * readdir() -
+ * scandir() -
+ * opendir() -
+ * rewinddir() -
+ * telldir() - BSD not in POSIX
* seekdir() - BSD not in POSIX
*
*
@@ -56,7 +56,7 @@ char *dnames[] = {
"c/x",
"c/y/a3333",
"c/y/j123",
- "c/y/my_mount_point",
+ "c/y/my_mount_point",
"c/y/my_mount_point/my_dir",
"c/z/my_mount_point",
"END"
@@ -144,7 +144,7 @@ int main(
fd = open ("c/y/my_mount_point/my_dir/d", O_CREAT, S_IRWXU|S_IRWXG|S_IRWXO);
assert( fd != 0 );
close (fd);
-
+
printf("Verify c/y/my_mount_point/my_dir/d\n");
fd = open("c/y/my_mount_point/my_dir/d", S_IRWXU|S_IRWXG|S_IRWXO);
assert( fd != 0 );
@@ -298,7 +298,7 @@ int main(
assert( status == -1 );
assert( errno == ENOTDIR );
-
+
/*
* Verify we cannot unmount a file system while we are in it.
*/
@@ -335,7 +335,7 @@ int main(
status = unmount( "/b/mount_point" );
assert( status == -1 );
assert( errno == ENOENT );
-
+
/*
* Remount the filesystem.
*/
@@ -364,15 +364,15 @@ int main(
status = mkdir( "/c/y/my_mount_point/my_dir", 0x1c0 );
printf("Open /c/y/my_mount_point/my_dir\n");
directory = opendir( "/c/y/my_mount_point/my_dir" );
- assert( directory );
-
+ assert( directory );
+
printf("Unmount /c/y/my_mount_point should fail with EBUSY\n");
status = unmount( "/c/y/my_mount_point" );
assert( status == -1 );
assert( errno == EBUSY );
printf("Close /c/y/my_mount_point/my_dir\n");
- status = closedir( directory );
+ status = closedir( directory );
assert( status == 0 );
/*
@@ -409,7 +409,7 @@ int main(
printf("Verify a hard link across filesystems fails with EXDEV\n");
status = mkdir( "/c/y/my_mount_point/my_dir2", S_IRWXU );
- assert( status == 0 );
+ assert( status == 0 );
status = link( "/c/y/my_mount_point/my_dir2", "/c/y/my_mount_point/my_dir/my_link" );
assert( status == -1 );
diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c
index 9a0d61f474..b152ffc6fb 100644
--- a/testsuites/psxtests/psxmsgq01/init.c
+++ b/testsuites/psxtests/psxmsgq01/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -17,7 +17,7 @@
#include <tmacros.h>
#include <signal.h> /* signal facilities */
-typedef struct {
+typedef struct {
char msg[ 50 ];
int size;
unsigned int priority;
@@ -26,7 +26,7 @@ Test_Message_t Predefined_Msgs[MAXMSG+1];
Test_Message_t Predefined_Msgs[MAXMSG+1] = {
{ "12345678", 9, MQ_PRIO_MAX-1 }, /* Max Length Message med */
{ "", 1, 1 }, /* NULL Message low */
- { "Last", 5, MQ_PRIO_MAX }, /* Queue Full Message hi */
+ { "Last", 5, MQ_PRIO_MAX }, /* Queue Full Message hi */
{ "No Message", 0, MQ_PRIO_MAX-1 }, /* 0 length Message med */
{ "1", 2, 0 }, /* Cause Overflow Behavior */
};
@@ -43,9 +43,9 @@ typedef struct {
int count;
} Test_queue_type;
-Test_queue_type Test_q[ NUMBER_OF_TEST_QUEUES ] =
+Test_queue_type Test_q[ NUMBER_OF_TEST_QUEUES ] =
{
- { 0, 0, "Qread", ( O_CREAT | O_RDONLY | O_NONBLOCK ), MAXMSG, MSGSIZE, 0 },
+ { 0, 0, "Qread", ( O_CREAT | O_RDONLY | O_NONBLOCK ), MAXMSG, MSGSIZE, 0 },
{ 0, 1, "Qwrite", ( O_CREAT | O_WRONLY | O_NONBLOCK ), MAXMSG, MSGSIZE, 0 },
{ 0, 2, "Qnoblock", ( O_CREAT | O_RDWR | O_NONBLOCK ), MAXMSG, MSGSIZE, 0 },
{ 0, 3, "Qblock", ( O_CREAT | O_RDWR ) , MAXMSG, MSGSIZE, 0 },
@@ -89,7 +89,7 @@ void Validate_attributes(
status = mq_getattr( mq, &attr );
fatal_posix_service_status( status, 0, "mq_getattr valid return status");
-
+
if ( mq != Test_q[ DEFAULT_RW ].mq ){
fatal_int_service_status((int)attr.mq_maxmsg, MAXMSG, "maxmsg attribute" );
fatal_int_service_status((int)attr.mq_msgsize,MSGSIZE,"msgsize attribute");
@@ -132,7 +132,7 @@ void open_test_queues()
for( que = 0; que < NUMBER_OF_TEST_QUEUES; que++ ) {
- tq = &Test_q[ que ];
+ tq = &Test_q[ que ];
if ( que == DEFAULT_RW)
Test_q[que].mq = mq_open( tq->name, tq->oflag, 0x777, NULL );
else
@@ -142,9 +142,9 @@ void open_test_queues()
}
status = mq_close( Test_q[CLOSED].mq );
- fatal_posix_service_status( status, 0, "mq_close message queue");
+ fatal_posix_service_status( status, 0, "mq_close message queue");
status = mq_unlink( CLOSED_NAME );
- fatal_posix_service_status( status, 0, "mq_unlink message queue");
+ fatal_posix_service_status( status, 0, "mq_unlink message queue");
}
/*
@@ -176,9 +176,9 @@ void validate_mq_open_error_codes()
attr.mq_maxmsg = -1;
puts( "Init: mq_open - Create with maxmsg (-1) (EINVAL)" );
n_mq2 = mq_open( "mq2", O_CREAT | O_RDONLY, 0x777, &attr);
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_mq2, (int ) (-1), "mq_open error return status" );
- fatal_posix_service_status( errno, EINVAL, "mq_open errno EINVAL");
+ fatal_posix_service_status( errno, EINVAL, "mq_open errno EINVAL");
attr.mq_maxmsg = MAXMSG;
/*
@@ -188,9 +188,9 @@ void validate_mq_open_error_codes()
attr.mq_msgsize = -1;
puts( "Init: mq_open - Create with msgsize (-1) (EINVAL)" );
n_mq2 = mq_open( "mq2", O_CREAT | O_RDONLY, 0x777, &attr);
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_mq2, (int ) (-1), "mq_open error return status" );
- fatal_posix_service_status( errno, EINVAL, "mq_open errno EINVAL");
+ fatal_posix_service_status( errno, EINVAL, "mq_open errno EINVAL");
attr.mq_msgsize = MSGSIZE;
/*
@@ -199,9 +199,9 @@ void validate_mq_open_error_codes()
puts( "Init: mq_open - Open new mq without create flag (ENOENT)" );
n_mq2 = mq_open( "mq3", O_EXCL | O_RDONLY, 0x777, NULL);
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_mq2, (int ) (-1), "mq_open error return status" );
- fatal_posix_service_status( errno, ENOENT, "mq_open errno ENOENT");
+ fatal_posix_service_status( errno, ENOENT, "mq_open errno ENOENT");
/*
* XXX EINTR - call was interrupted by a signal
@@ -213,10 +213,10 @@ void validate_mq_open_error_codes()
puts( "Init: mq_open - Open with too long of a name (ENAMETOOLONG)" );
n_mq2 = mq_open( Get_Too_Long_Name(), O_CREAT | O_RDONLY, 0x777, NULL );
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_mq2, (int ) (-1), "mq_open error return status" );
fatal_posix_service_status( errno, ENAMETOOLONG, "mq_open errno ENAMETOOLONG");
-
+
/*
* XXX - ENAMETOOLONG - Give a name greater than NAME_MAX
* Per implementation not possible.
@@ -227,21 +227,21 @@ void validate_mq_open_error_codes()
*/
puts( "Init: mq_open - Create an Existing mq (EEXIST)" );
- open_mq[0] = mq_open(
+ open_mq[0] = mq_open(
Build_Queue_Name(0), O_CREAT | O_RDWR | O_NONBLOCK, 0x777, NULL );
assert( open_mq[0] != (-1) );
n_mq2 = mq_open(
Build_Queue_Name(0), O_CREAT | O_EXCL | O_RDONLY, 0x777, NULL);
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_mq2, (int ) (-1), "mq_open error return status" );
fatal_posix_service_status( errno, EEXIST, "mq_open errno EEXIST");
status = mq_unlink( Build_Queue_Name(0) );
- fatal_posix_service_status( status, 0, "mq_unlink message queue");
+ fatal_posix_service_status( status, 0, "mq_unlink message queue");
status = mq_close( open_mq[0]);
- fatal_posix_service_status( status, 0, "mq_close message queue");
+ fatal_posix_service_status( status, 0, "mq_close message queue");
/*
* Open maximum number of message queues
@@ -249,11 +249,11 @@ void validate_mq_open_error_codes()
puts( "Init: mq_open - SUCCESSFUL" );
for (i = 0; i < CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES; i++) {
- open_mq[i] = mq_open(
+ open_mq[i] = mq_open(
Build_Queue_Name(i), O_CREAT | O_RDWR | O_NONBLOCK, 0x777, NULL );
assert( open_mq[i] != (-1) );
assert( open_mq[i] );
- /*XXX - Isn't there a more general check */
+ /*XXX - Isn't there a more general check */
/* JRS printf( "mq_open 0x%x %s\n", open_mq[i], Build_Queue_Name(i) ); */
}
@@ -275,9 +275,9 @@ void validate_mq_open_error_codes()
puts( "Init: mq_open - system is out of resources (ENFILE)" );
n_mq2 = mq_open( Build_Queue_Name(i), O_CREAT | O_RDONLY, 0x777, NULL );
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_mq2, (int ) (-1), "mq_open error return status" );
- fatal_posix_service_status( errno, ENFILE, "mq_open errno ENFILE");
+ fatal_posix_service_status( errno, ENFILE, "mq_open errno ENFILE");
/*
* Unlink and Close all queues.
@@ -287,12 +287,12 @@ void validate_mq_open_error_codes()
for (i = 0; i < CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES; i++) {
status = mq_close( open_mq[i]);
- fatal_posix_service_status( status, 0, "mq_close message queue");
+ fatal_posix_service_status( status, 0, "mq_close message queue");
status = mq_unlink( Build_Queue_Name(i) );
if ( status == -1 )
perror( "mq_unlink" );
- fatal_posix_service_status( status, 0, "mq_unlink message queue");
+ fatal_posix_service_status( status, 0, "mq_unlink message queue");
/* JRS printf( "mq_close/mq_unlink 0x%x %s\n", open_mq[i], Build_Queue_Name(i) ); */
}
}
@@ -315,7 +315,7 @@ void validate_mq_unlink_error_codes()
status = mq_unlink( Get_Too_Long_Name() );
fatal_posix_service_status( status, -1, "mq_unlink error return status");
fatal_posix_service_status( errno, ENAMETOOLONG, "mq_unlink errno ENAMETOOLONG");
-
+
/*
* XXX - ENAMETOOLONG - Give a name greater than NAME_MAX
* Per implementation not possible.
@@ -343,7 +343,7 @@ void validate_mq_unlink_error_codes()
puts( "Init: mq_unlink (NULL) - EINVAL" );
status = mq_unlink( NULL );
fatal_posix_service_status( status, -1, "mq_unlink error return status");
- fatal_posix_service_status( errno, EINVAL, "mq_unlink errno value");
+ fatal_posix_service_status( errno, EINVAL, "mq_unlink errno value");
/*
* EINVAL - Unlink a queue with a null name
@@ -352,7 +352,7 @@ void validate_mq_unlink_error_codes()
puts( "Init: mq_unlink (\"\") - EINVAL" );
status = mq_unlink( "" );
fatal_posix_service_status( status, -1, "mq_unlink error return status");
- fatal_posix_service_status( errno, EINVAL, "mq_unlink errno value");
+ fatal_posix_service_status( errno, EINVAL, "mq_unlink errno value");
}
void validate_mq_close_error_codes()
@@ -370,7 +370,7 @@ void validate_mq_close_error_codes()
fatal_posix_service_status( status, -1, "mq_close error return status");
fatal_posix_service_status( errno, EBADF, "mq_close errno EBADF");
}
-
+
void validate_mq_getattr_error_codes()
{
@@ -386,7 +386,7 @@ void validate_mq_getattr_error_codes()
puts( "Init: mq_getattr - unopened queue (EBADF)" );
status = mq_getattr( Test_q[CLOSED].mq, &attr );
fatal_posix_service_status( status, -1, "mq_close error return status");
- fatal_posix_service_status( errno, EBADF, "mq_close errno EBADF");
+ fatal_posix_service_status( errno, EBADF, "mq_close errno EBADF");
/*
* XXX - The following are not listed in the POSIX manual but
@@ -400,7 +400,7 @@ void validate_mq_getattr_error_codes()
puts( "Init: mq_getattr - NULL attributes (EINVAL)" );
status = mq_getattr( Test_q[RW_QUEUE].mq, NULL );
fatal_posix_service_status( status, -1, "mq_close error return status");
- fatal_posix_service_status( errno, EINVAL, "mq_close errno EINVAL");
+ fatal_posix_service_status( errno, EINVAL, "mq_close errno EINVAL");
}
@@ -425,12 +425,12 @@ void Show_send_msg_to_que(
)
{
Test_Message_t *ptr = &Predefined_Msgs[msg];
- printf( "%s mq_send - to %s msg: %s priority %d\n",
+ printf( "%s mq_send - to %s msg: %s priority %d\n",
task_name, Test_q[que].name, ptr->msg, ptr->priority);
Send_msg_to_que( que, msg );
}
-void verify_queues_full(
+void verify_queues_full(
char *task_name
)
{
@@ -452,7 +452,7 @@ void verify_queues_empty(
int que;
printf( "%s Verify Queues are empty\n", task_name );
- for( que = RW_QUEUE; que < CLOSED; que++ )
+ for( que = RW_QUEUE; que < CLOSED; que++ )
Validate_attributes( Test_q[que].mq, Test_q[que].oflag, 0 );
}
@@ -478,7 +478,7 @@ int fill_message_queues(
}
verify_queues_full( "Init:" );
- return msg;
+ return msg;
}
@@ -586,17 +586,17 @@ int validate_mq_send_error_codes( )
i = fill_message_queues( "Init:" );
/*
- * ENOSYS - send not supported
+ * ENOSYS - send not supported
puts( "Init: mq_send - Blocking Queue overflow (ENOSYS)" );
status = mq_send( n_mq1, Predefined_Msgs[i], 0, 0 );
fatal_posix_service_status( status, -1, "mq_send error return status");
fatal_posix_service_status( errno, EBADF, "mq_send errno EBADF");
status = mq_close( n_mq1 );
- fatal_posix_service_status( status, 0, "mq_close message queue");
+ fatal_posix_service_status( status, 0, "mq_close message queue");
status = mq_unlink( "read_only" );
- fatal_posix_service_status( status, 0, "mq_unlink message queue");
+ fatal_posix_service_status( status, 0, "mq_unlink message queue");
*/
/*
@@ -643,14 +643,14 @@ void validate_mq_receive_error_codes( )
*/
puts( "Init: mq_receive - Size is less than the message (EMSGSIZE)" );
- status = mq_receive(
+ status = mq_receive(
Test_q[RW_QUEUE].mq, message, Predefined_Msgs[0].size-1, &priority );
fatal_posix_service_status( status, -1, "mq_ error return status");
fatal_posix_service_status( errno, EMSGSIZE, "mq_receive errno EMSGSIZE");
/*
- * EAGAIN - O_NONBLOCK and Queue is empty
+ * EAGAIN - O_NONBLOCK and Queue is empty
*/
verify_queues_full( "Init:" );
empty_message_queues( "Init:" );
@@ -688,26 +688,26 @@ void verify_open_functionality()
#if 0
puts( "Init: mq_open - Open an existing mq ( same id )" );
n_mq = mq_open( RD_NAME, 0 );
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_mq, (int ) Test_q[RD_QUEUE].mq, "mq_open error return status" );
#endif
}
void verify_unlink_functionality()
-{
+{
mqd_t n_mq;
int status;
Start_Test( "mq_unlink functionality" );
/*
- * Unlink the message queue, then verify an open of the same name produces a
+ * Unlink the message queue, then verify an open of the same name produces a
* different message queue.
*/
puts( "Init: Unlink and Open without closing SUCCESSFUL" );
status = mq_unlink( DEFAULT_NAME );
- fatal_posix_service_status( status, 0, "mq_unlink locked message queue");
+ fatal_posix_service_status( status, 0, "mq_unlink locked message queue");
n_mq = mq_open( DEFAULT_NAME, DEFAULT_ATTR, 0x777, NULL );
assert( n_mq != (-1) );
@@ -715,9 +715,9 @@ void verify_unlink_functionality()
status = mq_unlink( DEFAULT_NAME );
- fatal_posix_service_status( status, 0, "mq_unlink locked message queue");
+ fatal_posix_service_status( status, 0, "mq_unlink locked message queue");
status = mq_close( Test_q[ DEFAULT_RW ].mq );
- fatal_posix_service_status( status, 0, "mq_close message queue");
+ fatal_posix_service_status( status, 0, "mq_close message queue");
Test_q[ DEFAULT_RW ].mq = n_mq;
}
@@ -728,12 +728,12 @@ void verify_close_functionality()
int status;
Start_Test( "Unlink and Close All Files" );
for (i=0; i<DEFAULT_RW; i++) {
-
+
status = mq_unlink( Get_Queue_Name(i) );
- fatal_posix_service_status( status, 0, "mq_unlink message queue");
+ fatal_posix_service_status( status, 0, "mq_unlink message queue");
status = mq_close( Test_q[i].mq );
- fatal_posix_service_status( status, 0, "mq_close message queue");
+ fatal_posix_service_status( status, 0, "mq_close message queue");
}
}
@@ -752,7 +752,7 @@ void verify_timed_send_queue(
timeout.tv_sec = 1;
timeout.tv_nsec = 0;
-
+
printf( "Init: mq_timedsend - on queue %s ", Test_q[que].name);
len = Predefined_Msgs[MAXMSG].size;
msg = Predefined_Msgs[MAXMSG].msg;
@@ -785,7 +785,7 @@ void verify_timed_send()
Start_Test( "mq_timedsend" );
for( que = RW_QUEUE; que < CLOSED; que++ ) {
- if ( que == BLOCKING )
+ if ( que == BLOCKING )
verify_timed_send_queue( que, 1 );
else
verify_timed_send_queue( que, 0 );
@@ -804,7 +804,7 @@ void verify_timed_receive_queue(
struct timeval tv1, tv2, tv3;
struct timezone tz1, tz2;
int status;
-
+
tm.tv_sec = 1;
tm.tv_nsec = 0;
@@ -832,7 +832,7 @@ void verify_timed_receive_queue(
void verify_timed_receive()
{
int que;
-
+
Start_Test( "mq_timedreceive" );
for( que = RW_QUEUE; que < CLOSED; que++ ) {
@@ -868,7 +868,7 @@ void verify_set_attr()
for( i = RW_QUEUE; i < CLOSED; i++ ) {
verify_timed_receive_queue( "Init:", i, 1 );
}
-
+
for(i=0; i<CLOSED; i++) {
attr.mq_flags = Test_q[i].oflag & (~O_NONBLOCK );
status = mq_setattr( Test_q[i].mq, &save_attr[i], NULL );
@@ -925,7 +925,7 @@ void verify_notify()
/* timer create */
event.sigev_notify = SIGEV_SIGNAL;
event.sigev_signo = SIGUSR1;
- if (timer_create (CLOCK_REALTIME, &event, &timer_id) == -1)
+ if (timer_create (CLOCK_REALTIME, &event, &timer_id) == -1)
fatal_posix_service_status( errno, 0, "errno ETIMEDOUT");
/* block the timer signal */
@@ -947,7 +947,7 @@ void verify_notify()
*/
/*
- * XXX setup notification
+ * XXX setup notification
*/
printf( "_____mq_notify - notify when %s gets a message\n",RW_NAME);
@@ -1038,7 +1038,7 @@ void verify_with_threads()
Read_msg_from_que( BLOCKING, 0 ); /* Block until init writes */
print_current_time( "Init: ", "" );
-#if 0
+#if 0
/*
* Fill the queue then create a task then block until the task receives a message.
* Task tests set attributes so one queue will have a thread
@@ -1064,7 +1064,7 @@ void verify_with_threads()
fill_message_queues( "Init:" );
status = pthread_create( &id, NULL, Task_2, NULL );
assert( !status );
- Show_send_msg_to_que( "Init:", BLOCKING, Priority_Order[0] );
+ Show_send_msg_to_que( "Init:", BLOCKING, Priority_Order[0] );
print_current_time( "Init: ", "" );
verify_queues_full( "Init:" );
empty_message_queues( "Init:" );
@@ -1100,7 +1100,7 @@ void validate_mq_setattr()
puts( "Task1:mq_setattr - unopened queue (EBADF)" );
status = mq_setattr( Test_q[CLOSED].mq, &attr, NULL );
fatal_posix_service_status( status, -1, "mq_setattr error return status");
- fatal_posix_service_status( errno, EBADF, "mq_setattr errno EBADF");
+ fatal_posix_service_status( errno, EBADF, "mq_setattr errno EBADF");
/*
* XXX - The following are not listed in the POSIX manual but
@@ -1114,7 +1114,7 @@ void validate_mq_setattr()
puts( "Task1:mq_setattr - NULL attributes (EINVAL)" );
status = mq_setattr( Test_q[RW_QUEUE].mq, NULL, NULL );
fatal_posix_service_status( status, -1, "mq_setattr error return status");
- fatal_posix_service_status( errno, EINVAL, "mq_setattr errno EINVAL");
+ fatal_posix_service_status( errno, EINVAL, "mq_setattr errno EINVAL");
/*
* Verify change queues to blocking, by verifying all queues block
@@ -1135,7 +1135,7 @@ void validate_mq_setattr()
/*
* Restore restore all queues to their old attribute.
*/
-
+
for(i=0; i<CLOSED; i++) {
status = mq_setattr( Test_q[i].mq, &save_attr[i], NULL );
fatal_int_service_status( status, 0, "mq_setattr valid return status");
@@ -1163,7 +1163,7 @@ void *POSIX_Init(
verify_open_functionality();
verify_notify();
verify_with_threads();
-
+
puts( "*** END OF POSIX MESSAGE QUEUE TEST ***" );
rtems_test_exit( 0 );
@@ -1196,7 +1196,7 @@ void *Task_2(
{
print_current_time( "Task_2: ", "" );
-
+
/* Block waiting to send a message */
verify_queues_full( "Task_2:" );
diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c
index aae0e89c85..39b4461d2c 100644
--- a/testsuites/psxtests/psxreaddir/test.c
+++ b/testsuites/psxtests/psxreaddir/test.c
@@ -2,12 +2,12 @@
* This is a native test to explore how the readdir() family works.
* Newlib supports the following readdir() family members:
*
- * closedir() -
- * readdir() -
- * scandir() -
- * opendir() -
- * rewinddir() -
- * telldir() - BSD not in POSIX
+ * closedir() -
+ * readdir() -
+ * scandir() -
+ * opendir() -
+ * rewinddir() -
+ * telldir() - BSD not in POSIX
* seekdir() - BSD not in POSIX
*
*
@@ -60,7 +60,7 @@ void printdir( DIR *directory )
printf( "%-20s %8s %8s %8s %4s\n",
"name", " inode", " offset", "reclen", " type" );
d = readdir(directory);
-
+
while (d) {
printf( "%-20s %8d %8d %6d 0x%04x\n",
d->d_name, (int)d->d_ino, (int)d->d_off, d->d_reclen, d->d_type );
@@ -212,7 +212,7 @@ void test_across_mount()
assert( status == 0 );
status = mkdir( "/imfs/testdir/testsubdir", 0777 );
assert( status == 0 );
-
+
complete_printdir("/imfs" );
complete_printdir("/imfs/" );
complete_printdir("/imfs/." );
@@ -264,7 +264,7 @@ int main(
printf("Create a lot of files\n");
status = mkdir( "/many", 0x1c0 );
- status = chdir( "/many" );
+ status = chdir( "/many" );
for (i = 0; i<44; i++) {
printf("Create %s\n", many_files[i]);
fd = open (many_files[i], O_CREAT, S_IRWXU);
@@ -421,10 +421,10 @@ int main(
rewinddir( directory );
for( off=0 ; off<=200 ; off=off + sizeof(struct dirent) / 4 ) {
seekdir( directory, off );
- printf(
- "seeked to %2d -- currently at %2d\n",
- (int)off,
- (int)telldir(directory)
+ printf(
+ "seeked to %2d -- currently at %2d\n",
+ (int)off,
+ (int)telldir(directory)
);
}
diff --git a/testsuites/psxtests/psxsem01/init.c b/testsuites/psxtests/psxsem01/init.c
index c89f891cf4..bfb2175017 100644
--- a/testsuites/psxtests/psxsem01/init.c
+++ b/testsuites/psxtests/psxsem01/init.c
@@ -31,12 +31,12 @@ void *POSIX_Init(
status = sem_init(&sem2, 0, 1);
fatal_posix_service_status( status, -1, "sem_init error return status");
fatal_posix_service_status( errno, ENOSPC, "sem_init errorno ENOSPC" );
-
+
puts( "Init: sem_init - UNSUCCESSFUL (ENOSYS -- pshared not supported)" );
status = sem_init(&sem2, 1, 1);
fatal_posix_service_status( status, -1, "sem_init error return status");
fatal_posix_service_status( errno, ENOSYS, "sem_init errno set to ENOSYS");
-
+
puts( "Init: sem_getvalue - SUCCESSFUL ");
for (i = 0; i < CONFIGURE_MAXIMUM_POSIX_SEMAPHORES; i++) {
status = sem_getvalue(&sems[i], &value);
@@ -46,12 +46,12 @@ void *POSIX_Init(
}
puts( "Init: sem_getvalue - UNSUCCESSFUL ");
status = sem_getvalue(&sem2, &value);
- fatal_posix_service_status( status, -1, "sem_getvalue error return status");
+ fatal_posix_service_status( status, -1, "sem_getvalue error return status");
fatal_posix_service_status( errno, EINVAL, "sem_getvalue errno EINVAL");
puts( "Init: sem_destroy - SUCCESSFUL" );
status = sem_destroy(&sems[0]);
- fatal_posix_service_status( status, 0, "sem_destroy semaphore 0");
+ fatal_posix_service_status( status, 0, "sem_destroy semaphore 0");
puts( "Init: sem_destroy - UNSUCCESSFUL (EINVAL)" );
status = sem_destroy(&sem2);
@@ -60,7 +60,7 @@ void *POSIX_Init(
puts( "Init: sem_wait - SUCCESSFUL" );
status = sem_wait(&sems[1]);
- fatal_posix_service_status( status, 0, "sem_wait semaphore 1");
+ fatal_posix_service_status( status, 0, "sem_wait semaphore 1");
puts( "Init: sem_wait - UNSUCCESSFUL (EINVAL)" );
status = sem_wait(&sem2);
@@ -69,15 +69,15 @@ void *POSIX_Init(
puts( "Init: sem_post - SUCCESSFUL" );
status = sem_post(&sems[1]);
- fatal_posix_service_status( status, 0, "sem_post semaphore 1");
+ fatal_posix_service_status( status, 0, "sem_post semaphore 1");
puts( "Init: sem_wait - SUCCESSFUL (after a sem_post)" );
status = sem_wait(&sems[1]);
- fatal_posix_service_status( status, 0, "sem_wait semaphore 1");
+ fatal_posix_service_status( status, 0, "sem_wait semaphore 1");
puts( "Init: sem_trywait - SUCCESSFUL" );
status = sem_trywait(&sems[2]);
- fatal_posix_service_status( status, 0, "sem_trywait semaphore 2");
+ fatal_posix_service_status( status, 0, "sem_trywait semaphore 2");
puts( "Init: sem_trywait - UNSUCCESSFUL (EAGAIN)" );
status = sem_trywait(&sems[1]);
@@ -93,7 +93,7 @@ void *POSIX_Init(
waittime.tv_sec = 0;
waittime.tv_nsec = 100;
status = sem_timedwait(&sems[2], &waittime);
- fatal_posix_service_status( status, 0, "sem_timedwait semaphore 2");
+ fatal_posix_service_status( status, 0, "sem_timedwait semaphore 2");
puts( "Init: sem_timedwait - UNSUCCESSFUL (ETIMEDOUT)" );
status = sem_timedwait(&sems[1], &waittime);
@@ -114,7 +114,7 @@ void *POSIX_Init(
for (i = 1; i < CONFIGURE_MAXIMUM_POSIX_SEMAPHORES; i++) {
status = sem_destroy(&sems[i]);
sprintf( failure_msg, "sem_destroy %d", i );
- fatal_posix_service_status( status, 0, failure_msg );
+ fatal_posix_service_status( status, 0, failure_msg );
}
/* Modes are currently unsupported */
@@ -129,15 +129,15 @@ void *POSIX_Init(
puts( "Init: sem_open - Create an Existing sem (EEXIST)" );
n_sem2 = sem_open("sem1", O_CREAT | O_EXCL, 00777, 1);
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_sem2, (int ) SEM_FAILED, "sem_open error return status" );
fatal_posix_service_status( errno, EEXIST, "sem_open errno EEXIST");
puts( "Init: sem_open - Open new sem without create flag (ENOENT)" );
n_sem2 = sem_open("sem3", O_EXCL, 00777, 1);
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_sem2, (int ) SEM_FAILED, "sem_open error return status" );
- fatal_posix_service_status( errno, ENOENT, "sem_open errno EEXIST");
+ fatal_posix_service_status( errno, ENOENT, "sem_open errno EEXIST");
/*
* XXX - Could not hit the following errors:
@@ -152,7 +152,7 @@ void *POSIX_Init(
puts( "Init: sem_wait on sem1" );
status = sem_wait(n_sem1);
- fatal_posix_service_status( status, 0, "sem_wait opened semaphore");
+ fatal_posix_service_status( status, 0, "sem_wait opened semaphore");
/*
* Validate a second open returns the same semaphore.
@@ -160,17 +160,17 @@ void *POSIX_Init(
puts( "Init: sem_open - Open an existing sem ( same id )" );
n_sem2 = sem_open("sem1", 0 );
- fatal_posix_service_status(
+ fatal_posix_service_status(
(int) n_sem2, (int ) n_sem1, "sem_open error return status" );
-
+
/*
- * Unlink the semaphore, then verify an open of the same name produces a
+ * Unlink the semaphore, then verify an open of the same name produces a
* different semaphore.
*/
puts( "Init: sem_unlink - sem1 SUCCESSFUL" );
status = sem_unlink( "sem1" );
- fatal_posix_service_status( status, 0, "sem_unlink locked semaphore");
+ fatal_posix_service_status( status, 0, "sem_unlink locked semaphore");
puts( "Init: sem_open - Reopen sem1 SUCCESSFUL with a different id" );
n_sem2 = sem_open( "sem1", O_CREAT | O_EXCL, 00777, 1);
@@ -183,7 +183,7 @@ void *POSIX_Init(
puts( "Init: sem_close (1) - SUCCESSFUL" );
status = sem_close( n_sem1 );
- fatal_posix_service_status( status, 0, "sem_close semaphore");
+ fatal_posix_service_status( status, 0, "sem_close semaphore");
/*
@@ -193,11 +193,11 @@ void *POSIX_Init(
puts( "Init: sem_close (2) - SUCCESSFUL" );
status = sem_close( n_sem2 );
- fatal_posix_service_status( status, 0, "sem_close semaphore");
+ fatal_posix_service_status( status, 0, "sem_close semaphore");
puts( "Init: sem_unlink - sem1 (2) SUCCESSFUL" );
status = sem_unlink( "sem1" );
- fatal_posix_service_status( status, 0, "sem_unlink locked semaphore");
+ fatal_posix_service_status( status, 0, "sem_unlink locked semaphore");
puts( "Init: sem_close - UNSUCCESSFUL (EINVAL)" );
status = sem_close(n_sem2);
@@ -217,12 +217,12 @@ void *POSIX_Init(
puts( "Init: sem_unlink (NULL) - EINVAL" );
status = sem_unlink( NULL );
fatal_posix_service_status( status, -1, "sem_unlink error return status");
- fatal_posix_service_status( errno, EINVAL, "sem_unlink errno value");
+ fatal_posix_service_status( errno, EINVAL, "sem_unlink errno value");
puts( "Init: sem_unlink (\"\") - EINVAL" );
status = sem_unlink( "" );
fatal_posix_service_status( status, -1, "sem_unlink error return status");
- fatal_posix_service_status( errno, EINVAL, "sem_unlink errno value");
+ fatal_posix_service_status( errno, EINVAL, "sem_unlink errno value");
/*
* XXX - Cant' create location OBJECTS_ERROR or OBJECTS_REMOTE.
diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c
index 8511da3ca8..1619b3498b 100644
--- a/testsuites/psxtests/psxstat/test.c
+++ b/testsuites/psxtests/psxstat/test.c
@@ -56,7 +56,7 @@ char *Directories[] = {
"/my_mount_point/dir4",
"/my_mount_point/dir1/dir1",
"/./././my_mount_point/dir1/ dir1",
- "/./././my_mount_point/links",
+ "/./././my_mount_point/links",
"///my_mount_point/dir1/dir1/../../dir1/../symlinks/////",
0
};
@@ -444,15 +444,15 @@ void make_many_symlinks(
/*
* mkdir() multiple directories at a time
*/
-
+
void make_multiple_directories(
char **files
-)
+)
{
int i;
int status;
- i = 0;
+ i = 0;
while ( files[i] ) {
printf( "Making directory %s\n", files[i] );
status = mkdir( files[i], S_IRWXU );
@@ -460,7 +460,7 @@ void make_multiple_directories(
i++;
}
puts( "" );
-}
+}
/*
* Cause faults.
@@ -480,11 +480,11 @@ void Cause_faults()
printf("\n\nPass an invalid mode to chmod should fail with EPERM \n" );
status = chmod( Files[0], S_IFREG );
- assert( status == -1 );
+ assert( status == -1 );
assert( errno == EPERM );
/*
- * Change file to executable then try to chdir to it.
+ * Change file to executable then try to chdir to it.
*/
status = chmod( Files[0], S_IXUSR );
@@ -525,7 +525,7 @@ void Cause_faults()
assert( status == -1 );
assert( errno == EACCES );
- /*
+ /*
* Check stat with a NULL buffer.
*/
@@ -560,7 +560,7 @@ void Cause_faults()
printf("\n%s Should not have execute permission( access )\n",Directories[0] );
status = access( Directories[0], X_OK );
assert( status != 0 );
-
+
printf("\nRestore %s to RWX\n",Directories[0] );
status = chmod( Directories[0], S_IRWXU );
assert( status == 0 );
@@ -677,7 +677,7 @@ void Cause_faults()
assert( status == 0 );
printf("Open %s for write should fail with EACCES\n", Files[0] );
- fd = open (Files[0], O_WRONLY);
+ fd = open (Files[0], O_WRONLY);
assert( fd == -1 );
assert( errno == EACCES );
@@ -696,7 +696,7 @@ void Cause_faults()
printf( "pass fstat a null pointer should fail with EFAULT\n");
status = fstat( fd, NULL );
- assert( status == -1 );
+ assert( status == -1 );
assert( errno == EFAULT);
/*
@@ -813,7 +813,7 @@ int main(
stat_multiple_files( Links_to_Files );
stat_multiple_files( Links_to_dirlinks );
stat_multiple_files( Links_to_filelinks );
-
+
/*
* Chmod on dir1/dir1. This allows the error path to be hit.
*/
@@ -844,7 +844,7 @@ int main(
status = rtems_task_wake_after( TIMEOUT_VALUE );
chown_multiple_files( Links_to_Dirs );
-
+
puts( "\n\n*** END OF STAT TEST 01 ***" );
rtems_test_exit(0);
}
diff --git a/testsuites/psxtests/psxtime/test.c b/testsuites/psxtests/psxtime/test.c
index c3b5ec6fc8..6fa484cd58 100644
--- a/testsuites/psxtests/psxtime/test.c
+++ b/testsuites/psxtests/psxtime/test.c
@@ -58,7 +58,7 @@ void check_a_tod(
print_time( "rtems_clock_set ", the_tod, "\n" );
status = rtems_clock_set( the_tod );
assert( !status );
-
+
do {
status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &new_tod );
assert( !status );
@@ -69,7 +69,7 @@ void check_a_tod(
assert( result == 0 );
a_time_t = tv.tv_sec; /* ctime() takes a time_t */
printf( "gettimeofday: %s", ctime( &a_time_t) );
-
+
a_time_t = time( 0 );
printf( "time: %s", ctime( &a_time_t ) );
diff --git a/testsuites/psxtests/psxtimer/psxtimer.c b/testsuites/psxtests/psxtimer/psxtimer.c
index fcacb10d75..ac4a7b9de1 100644
--- a/testsuites/psxtests/psxtimer/psxtimer.c
+++ b/testsuites/psxtests/psxtimer/psxtimer.c
@@ -36,7 +36,7 @@ struct periodic_params {
struct timespec period;
int signo; /* signal number */
int id; /* task identification */
- };
+ };
pthread_attr_t attr;
@@ -201,7 +201,7 @@ void * task_c (void *arg)
if (sigwait(&set,&received_sig) == -1) {
perror ("Error in sigwait\n");
pthread_exit ((void *) -1);
- }
+ }
pthread_mutex_lock (&data.mutex);
while (data.updated == FALSE) {
pthread_cond_wait (&data.sync,&data.mutex);
@@ -227,10 +227,10 @@ void *POSIX_Init (
pthread_attr_t attr; /* task attributes */
pthread_t ta,tb,tc; /* threads */
sigset_t set; /* signals */
-
+
struct sched_param sch_param; /* schedule parameters */
struct periodic_params params_a, params_b, params_c;
-
+
puts( "\n\n*** POSIX Timers Test ***" );
data.updated = FALSE;
@@ -282,7 +282,7 @@ void *POSIX_Init (
priority) */
if (pthread_attr_setschedpolicy (&attr,
SCHED_FIFO) != 0) {
- perror ("Error in attribute setschedpolicy\n");
+ perror ("Error in attribute setschedpolicy\n");
}
/* set and create thread A with priority 1 */
@@ -291,7 +291,7 @@ void *POSIX_Init (
if (pthread_attr_setschedparam(&attr, &sch_param) != 0) {
perror ("Error in attribute schedparam\n");
}
-
+
/* Temporal parameters (1 sec. periodicity) */
params_a.period.tv_sec = 1; /* seconds */
@@ -302,12 +302,12 @@ void *POSIX_Init (
}
/* set and create thread B with priority 15 */
-
+
sch_param.sched_priority = 15;
if (pthread_attr_setschedparam(&attr, &sch_param) != 0) {
perror ("Error in attribute schedparam");
}
-
+
/* Temporal parameters (2 sec. periodicity) */
params_b.period.tv_sec = 2; /* seconds */
params_b.period.tv_nsec = 000000000; /* nanoseconds */
diff --git a/testsuites/psxtests/psxtimer/system.h b/testsuites/psxtests/psxtimer/system.h
index c62d3e17ff..2b471f5b32 100644
--- a/testsuites/psxtests/psxtimer/system.h
+++ b/testsuites/psxtests/psxtimer/system.h
@@ -41,7 +41,7 @@ void *task_c(
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
-#define CONFIGURE_MAXIMUM_POSIX_THREADS 4
+#define CONFIGURE_MAXIMUM_POSIX_THREADS 4
#define CONFIGURE_MAXIMUM_POSIX_TIMERS 4
#define CONFIGURE_MAXIMUM_TIMERS 4
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 2