From 02bfc5682e6ae08275802375736e085d4e9ad753 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 23 May 1996 19:31:54 +0000 Subject: cleanup status vs. result --- c/src/tests/psxtests/psxhdrs/cond01.c | 2 +- c/src/tests/psxtests/psxhdrs/cond02.c | 2 +- c/src/tests/psxtests/psxhdrs/mutex01.c | 2 +- c/src/tests/psxtests/psxhdrs/mutex02.c | 2 +- c/src/tests/psxtests/psxhdrs/pthread01.c | 2 +- c/src/tests/psxtests/psxhdrs/pthread02.c | 2 +- c/src/tests/psxtests/psxhdrs/pthread03.c | 2 +- c/src/tests/psxtests/psxhdrs/pthread04.c | 2 +- c/src/tests/psxtests/psxhdrs/pthread05.c | 2 +- c/src/tests/psxtests/psxhdrs/pthread06.c | 2 +- c/src/tests/psxtests/psxhdrs/pthread10.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread11.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread12.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread13.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread14.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread15.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread16.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread17.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread18.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread19.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread20.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread21.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread22.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread23.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread26.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread27.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread28.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread29.c | 4 ++-- c/src/tests/psxtests/psxhdrs/pthread30.c | 4 ++-- 29 files changed, 48 insertions(+), 48 deletions(-) (limited to 'c/src') diff --git a/c/src/tests/psxtests/psxhdrs/cond01.c b/c/src/tests/psxtests/psxhdrs/cond01.c index a63cdae1a6..1d19c90b29 100644 --- a/c/src/tests/psxtests/psxhdrs/cond01.c +++ b/c/src/tests/psxtests/psxhdrs/cond01.c @@ -21,8 +21,8 @@ void test( void ) { - int result; pthread_condattr_t attribute; + int result; result = pthread_condattr_init( &attribute ); } diff --git a/c/src/tests/psxtests/psxhdrs/cond02.c b/c/src/tests/psxtests/psxhdrs/cond02.c index 8d36b5da9e..9faadc033e 100644 --- a/c/src/tests/psxtests/psxhdrs/cond02.c +++ b/c/src/tests/psxtests/psxhdrs/cond02.c @@ -21,8 +21,8 @@ void test( void ) { - int result; pthread_condattr_t attribute; + int result; result = pthread_condattr_destroy( &attribute ); } diff --git a/c/src/tests/psxtests/psxhdrs/mutex01.c b/c/src/tests/psxtests/psxhdrs/mutex01.c index 6f9a3128c7..903de2066d 100644 --- a/c/src/tests/psxtests/psxhdrs/mutex01.c +++ b/c/src/tests/psxtests/psxhdrs/mutex01.c @@ -21,8 +21,8 @@ void test( void ) { - int result; pthread_mutexattr_t attribute; + int result; result = pthread_mutexattr_init( &attribute ); } diff --git a/c/src/tests/psxtests/psxhdrs/mutex02.c b/c/src/tests/psxtests/psxhdrs/mutex02.c index d011007a47..feab14c187 100644 --- a/c/src/tests/psxtests/psxhdrs/mutex02.c +++ b/c/src/tests/psxtests/psxhdrs/mutex02.c @@ -21,8 +21,8 @@ void test( void ) { - int result; pthread_mutexattr_t attribute; + int result; result = pthread_mutexattr_destroy( &attribute ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread01.c b/c/src/tests/psxtests/psxhdrs/pthread01.c index 16b450ca1a..b8507416b4 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread01.c +++ b/c/src/tests/psxtests/psxhdrs/pthread01.c @@ -21,8 +21,8 @@ void test( void ) { - int result; pthread_attr_t attribute; + int result; result = pthread_attr_init( &attribute ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread02.c b/c/src/tests/psxtests/psxhdrs/pthread02.c index f46253fdea..52dbc3e99a 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread02.c +++ b/c/src/tests/psxtests/psxhdrs/pthread02.c @@ -21,8 +21,8 @@ void test( void ) { - int result; pthread_attr_t attribute; + int result; result = pthread_attr_destroy( &attribute ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread03.c b/c/src/tests/psxtests/psxhdrs/pthread03.c index 94ce5d80b8..d5ec98b8e1 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread03.c +++ b/c/src/tests/psxtests/psxhdrs/pthread03.c @@ -21,9 +21,9 @@ void test( void ) { - int result; pthread_attr_t attribute; int state; + int result; state = PTHREAD_CREATE_DETACHED; state = PTHREAD_CREATE_JOINABLE; diff --git a/c/src/tests/psxtests/psxhdrs/pthread04.c b/c/src/tests/psxtests/psxhdrs/pthread04.c index 8880b457bc..7ae9f7f630 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread04.c +++ b/c/src/tests/psxtests/psxhdrs/pthread04.c @@ -21,9 +21,9 @@ void test( void ) { - int result; pthread_attr_t attribute; int state; + int result; result = pthread_attr_getdetachstate( &attribute, &state ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread05.c b/c/src/tests/psxtests/psxhdrs/pthread05.c index 1736b55c94..bb36065d0c 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread05.c +++ b/c/src/tests/psxtests/psxhdrs/pthread05.c @@ -26,9 +26,9 @@ void test( void ) { - int result; pthread_attr_t attribute; size_t size; + int result; size = PTHREAD_STACK_MIN; diff --git a/c/src/tests/psxtests/psxhdrs/pthread06.c b/c/src/tests/psxtests/psxhdrs/pthread06.c index bbcc6a0de3..3bb0ed98ed 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread06.c +++ b/c/src/tests/psxtests/psxhdrs/pthread06.c @@ -25,9 +25,9 @@ void test( void ) { - int result; pthread_attr_t attribute; size_t size; + int result; result = pthread_attr_getstacksize( &attribute, &size ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread10.c b/c/src/tests/psxtests/psxhdrs/pthread10.c index 32396cff8e..88ab2a9eae 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread10.c +++ b/c/src/tests/psxtests/psxhdrs/pthread10.c @@ -23,7 +23,7 @@ void test( void ) { pthread_t id_1 = 0; pthread_t id_2 = 0; - int status; + int result; - status = pthread_equal( id_1, id_2 ); + result = pthread_equal( id_1, id_2 ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread11.c b/c/src/tests/psxtests/psxhdrs/pthread11.c index 20bc83310a..521ff7616d 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread11.c +++ b/c/src/tests/psxtests/psxhdrs/pthread11.c @@ -24,7 +24,7 @@ void test( void ) pthread_t thread; int policy; struct sched_param param; - int status; + int result; thread = 0; @@ -38,5 +38,5 @@ void test( void ) param.sched_priority = 0; - status = pthread_setschedparam( thread, policy, ¶m ); + result = pthread_setschedparam( thread, policy, ¶m ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread12.c b/c/src/tests/psxtests/psxhdrs/pthread12.c index c22d275ece..fd275597db 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread12.c +++ b/c/src/tests/psxtests/psxhdrs/pthread12.c @@ -24,9 +24,9 @@ void test( void ) pthread_t thread; int policy; struct sched_param param; - int status; + int result; thread = 0; - status = pthread_getschedparam( thread, &policy, ¶m ); + result = pthread_getschedparam( thread, &policy, ¶m ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread13.c b/c/src/tests/psxtests/psxhdrs/pthread13.c index 23747f41ab..9800b3992a 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread13.c +++ b/c/src/tests/psxtests/psxhdrs/pthread13.c @@ -23,10 +23,10 @@ void test( void ) { pthread_attr_t attr; int contentionscope; - int status; + int result; contentionscope = PTHREAD_SCOPE_SYSTEM; contentionscope = PTHREAD_SCOPE_PROCESS; - status = pthread_attr_setscope( &attr, contentionscope ); + result = pthread_attr_setscope( &attr, contentionscope ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread14.c b/c/src/tests/psxtests/psxhdrs/pthread14.c index b24d5a457b..9ae414c9f0 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread14.c +++ b/c/src/tests/psxtests/psxhdrs/pthread14.c @@ -23,7 +23,7 @@ void test( void ) { pthread_attr_t attr; int contentionscope; - int status; + int result; - status = pthread_attr_getscope( &attr, &contentionscope ); + result = pthread_attr_getscope( &attr, &contentionscope ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread15.c b/c/src/tests/psxtests/psxhdrs/pthread15.c index 2ae68f79c6..150ae28ebf 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread15.c +++ b/c/src/tests/psxtests/psxhdrs/pthread15.c @@ -23,10 +23,10 @@ void test( void ) { pthread_attr_t attr; int inheritsched; - int status; + int result; inheritsched = PTHREAD_INHERIT_SCHED; inheritsched = PTHREAD_EXPLICIT_SCHED; - status = pthread_attr_setinheritsched( &attr, inheritsched ); + result = pthread_attr_setinheritsched( &attr, inheritsched ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread16.c b/c/src/tests/psxtests/psxhdrs/pthread16.c index ae60a6cc7a..5f70487c47 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread16.c +++ b/c/src/tests/psxtests/psxhdrs/pthread16.c @@ -23,7 +23,7 @@ void test( void ) { pthread_attr_t attr; int inheritsched; - int status; + int result; - status = pthread_attr_getinheritsched( &attr, &inheritsched ); + result = pthread_attr_getinheritsched( &attr, &inheritsched ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread17.c b/c/src/tests/psxtests/psxhdrs/pthread17.c index 7928ffc3ae..88f1c95e0c 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread17.c +++ b/c/src/tests/psxtests/psxhdrs/pthread17.c @@ -23,11 +23,11 @@ void test( void ) { pthread_attr_t attr; int policy; - int status; + int result; policy = SCHED_FIFO; policy = SCHED_RR; policy = SCHED_OTHER; - status = pthread_attr_setschedpolicy( &attr, policy ); + result = pthread_attr_setschedpolicy( &attr, policy ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread18.c b/c/src/tests/psxtests/psxhdrs/pthread18.c index c5862903d5..75e5b24122 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread18.c +++ b/c/src/tests/psxtests/psxhdrs/pthread18.c @@ -23,7 +23,7 @@ void test( void ) { pthread_attr_t attr; int policy; - int status; + int result; - status = pthread_attr_getschedpolicy( &attr, &policy ); + result = pthread_attr_getschedpolicy( &attr, &policy ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread19.c b/c/src/tests/psxtests/psxhdrs/pthread19.c index 87e3b609ec..0b6a595b78 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread19.c +++ b/c/src/tests/psxtests/psxhdrs/pthread19.c @@ -23,7 +23,7 @@ void test( void ) { pthread_attr_t attr; struct sched_param param; - int status; + int result; - status = pthread_attr_setschedparam( &attr, ¶m ); + result = pthread_attr_setschedparam( &attr, ¶m ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread20.c b/c/src/tests/psxtests/psxhdrs/pthread20.c index 5f3e1771cf..4e0d789e6f 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread20.c +++ b/c/src/tests/psxtests/psxhdrs/pthread20.c @@ -23,7 +23,7 @@ void test( void ) { pthread_attr_t attr; struct sched_param param; - int status; + int result; - status = pthread_attr_getschedparam( &attr, ¶m ); + result = pthread_attr_getschedparam( &attr, ¶m ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread21.c b/c/src/tests/psxtests/psxhdrs/pthread21.c index 6bf46247f5..6b4bff7983 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread21.c +++ b/c/src/tests/psxtests/psxhdrs/pthread21.c @@ -22,8 +22,8 @@ void test( void ) { pthread_t thread; - int status; + int result; thread = 0; - status = pthread_detach( thread ); + result = pthread_detach( thread ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread22.c b/c/src/tests/psxtests/psxhdrs/pthread22.c index a49c4f3cac..e36936f9f9 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread22.c +++ b/c/src/tests/psxtests/psxhdrs/pthread22.c @@ -24,7 +24,7 @@ void test( void ) pthread_t thread = 0; int policy; struct sched_param param; - int status; + int result; policy = SCHED_OTHER; policy = SCHED_FIFO; @@ -32,5 +32,5 @@ void test( void ) param.sched_priority = 0; - status = pthread_setschedparam( thread, policy, ¶m ); + result = pthread_setschedparam( thread, policy, ¶m ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread23.c b/c/src/tests/psxtests/psxhdrs/pthread23.c index c02c6f76d7..db72cff1dd 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread23.c +++ b/c/src/tests/psxtests/psxhdrs/pthread23.c @@ -24,7 +24,7 @@ void test( void ) pthread_t thread = 0; int policy; struct sched_param param; - int status; + int result; - status = pthread_getschedparam( thread, &policy, ¶m ); + result = pthread_getschedparam( thread, &policy, ¶m ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread26.c b/c/src/tests/psxtests/psxhdrs/pthread26.c index 2c79f566a4..91955bc771 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread26.c +++ b/c/src/tests/psxtests/psxhdrs/pthread26.c @@ -23,9 +23,9 @@ void test( void ) { pthread_t thread; void *value_ptr; - int status; + int result; thread = 0; - status = pthread_join( thread, &value_ptr ); + result = pthread_join( thread, &value_ptr ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread27.c b/c/src/tests/psxtests/psxhdrs/pthread27.c index eec4e4bf7b..6f349aec86 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread27.c +++ b/c/src/tests/psxtests/psxhdrs/pthread27.c @@ -26,7 +26,7 @@ void init_routine( void ) void test( void ) { pthread_once_t once_control = PTHREAD_ONCE_INIT; - int status; + int result; - status = pthread_once( &once_control, init_routine ); + result = pthread_once( &once_control, init_routine ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread28.c b/c/src/tests/psxtests/psxhdrs/pthread28.c index 3980030edd..0207082e16 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread28.c +++ b/c/src/tests/psxtests/psxhdrs/pthread28.c @@ -26,8 +26,8 @@ void init_routine( void ) void test( void ) { pthread_t thread; - int status; + int result; thread = 0; - status = pthread_cancel( thread ); + result = pthread_cancel( thread ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread29.c b/c/src/tests/psxtests/psxhdrs/pthread29.c index 3232407ee4..59b56c25fd 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread29.c +++ b/c/src/tests/psxtests/psxhdrs/pthread29.c @@ -27,10 +27,10 @@ void test( void ) { int state; int oldstate; - int status; + int result; state = PTHREAD_CANCEL_ENABLE; state = PTHREAD_CANCEL_DISABLE; - status = pthread_setcancelstate( state, &oldstate ); + result = pthread_setcancelstate( state, &oldstate ); } diff --git a/c/src/tests/psxtests/psxhdrs/pthread30.c b/c/src/tests/psxtests/psxhdrs/pthread30.c index 169f95c64b..0d92f8adec 100644 --- a/c/src/tests/psxtests/psxhdrs/pthread30.c +++ b/c/src/tests/psxtests/psxhdrs/pthread30.c @@ -27,10 +27,10 @@ void test( void ) { int type; int oldtype; - int status; + int result; type = PTHREAD_CANCEL_DEFERRED; type = PTHREAD_CANCEL_ASYNCHRONOUS; - status = pthread_setcanceltype( type, &oldtype ); + result = pthread_setcanceltype( type, &oldtype ); } -- cgit v1.2.3