cleanup status vs. result

This commit is contained in:
Joel Sherrill
1996-05-23 19:31:54 +00:00
parent 318ac69029
commit 02bfc5682e
58 changed files with 96 additions and 96 deletions

View File

@@ -21,8 +21,8 @@
void test( void )
{
int result;
pthread_condattr_t attribute;
int result;
result = pthread_condattr_init( &attribute );
}

View File

@@ -21,8 +21,8 @@
void test( void )
{
int result;
pthread_condattr_t attribute;
int result;
result = pthread_condattr_destroy( &attribute );
}

View File

@@ -21,8 +21,8 @@
void test( void )
{
int result;
pthread_mutexattr_t attribute;
int result;
result = pthread_mutexattr_init( &attribute );
}

View File

@@ -21,8 +21,8 @@
void test( void )
{
int result;
pthread_mutexattr_t attribute;
int result;
result = pthread_mutexattr_destroy( &attribute );
}

View File

@@ -21,8 +21,8 @@
void test( void )
{
int result;
pthread_attr_t attribute;
int result;
result = pthread_attr_init( &attribute );
}

View File

@@ -21,8 +21,8 @@
void test( void )
{
int result;
pthread_attr_t attribute;
int result;
result = pthread_attr_destroy( &attribute );
}

View File

@@ -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;

View File

@@ -21,9 +21,9 @@
void test( void )
{
int result;
pthread_attr_t attribute;
int state;
int result;
result = pthread_attr_getdetachstate( &attribute, &state );
}

View File

@@ -26,9 +26,9 @@
void test( void )
{
int result;
pthread_attr_t attribute;
size_t size;
int result;
size = PTHREAD_STACK_MIN;

View File

@@ -25,9 +25,9 @@
void test( void )
{
int result;
pthread_attr_t attribute;
size_t size;
int result;
result = pthread_attr_getstacksize( &attribute, &size );
}

View File

@@ -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 );
}

View File

@@ -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, &param );
result = pthread_setschedparam( thread, policy, &param );
}

View File

@@ -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, &param );
result = pthread_getschedparam( thread, &policy, &param );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -23,7 +23,7 @@ void test( void )
{
pthread_attr_t attr;
struct sched_param param;
int status;
int result;
status = pthread_attr_setschedparam( &attr, &param );
result = pthread_attr_setschedparam( &attr, &param );
}

View File

@@ -23,7 +23,7 @@ void test( void )
{
pthread_attr_t attr;
struct sched_param param;
int status;
int result;
status = pthread_attr_getschedparam( &attr, &param );
result = pthread_attr_getschedparam( &attr, &param );
}

View File

@@ -22,8 +22,8 @@
void test( void )
{
pthread_t thread;
int status;
int result;
thread = 0;
status = pthread_detach( thread );
result = pthread_detach( thread );
}

View File

@@ -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, &param );
result = pthread_setschedparam( thread, policy, &param );
}

View File

@@ -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, &param );
result = pthread_getschedparam( thread, &policy, &param );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}

View File

@@ -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 );
}