Changeset 02bfc56 in rtems


Ignore:
Timestamp:
May 23, 1996, 7:31:54 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d3fed0a
Parents:
318ac69
Message:

cleanup status vs. result

Files:
58 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psxhdrs/cond01.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_condattr_t attribute;
    2425  int result;
    25   pthread_condattr_t attribute;
    2626
    2727  result = pthread_condattr_init( &attribute );
  • c/src/tests/psxtests/psxhdrs/cond02.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_condattr_t attribute;
    2425  int result;
    25   pthread_condattr_t attribute;
    2626
    2727  result = pthread_condattr_destroy( &attribute );
  • c/src/tests/psxtests/psxhdrs/mutex01.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_mutexattr_t attribute;
    2425  int result;
    25   pthread_mutexattr_t attribute;
    2626
    2727  result = pthread_mutexattr_init( &attribute );
  • c/src/tests/psxtests/psxhdrs/mutex02.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_mutexattr_t attribute;
    2425  int result;
    25   pthread_mutexattr_t attribute;
    2626
    2727  result = pthread_mutexattr_destroy( &attribute );
  • c/src/tests/psxtests/psxhdrs/pthread01.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_attr_t attribute;
    2425  int result;
    25   pthread_attr_t attribute;
    2626
    2727  result = pthread_attr_init( &attribute );
  • c/src/tests/psxtests/psxhdrs/pthread02.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_attr_t  attribute;
    2425  int             result;
    25   pthread_attr_t  attribute;
    2626
    2727  result = pthread_attr_destroy( &attribute );
  • c/src/tests/psxtests/psxhdrs/pthread03.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
    24   int             result;
    2524  pthread_attr_t  attribute;
    2625  int             state;
     26  int             result;
    2727
    2828  state = PTHREAD_CREATE_DETACHED;
  • c/src/tests/psxtests/psxhdrs/pthread04.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
    24   int             result;
    2524  pthread_attr_t  attribute;
    2625  int             state;
     26  int             result;
    2727
    2828  result = pthread_attr_getdetachstate( &attribute, &state );
  • c/src/tests/psxtests/psxhdrs/pthread05.c

    r318ac69 r02bfc56  
    2727void test( void )
    2828{
    29   int             result;
    3029  pthread_attr_t  attribute;
    3130  size_t          size;
     31  int             result;
    3232
    3333  size = PTHREAD_STACK_MIN;
  • c/src/tests/psxtests/psxhdrs/pthread06.c

    r318ac69 r02bfc56  
    2626void test( void )
    2727{
    28   int             result;
    2928  pthread_attr_t  attribute;
    3029  size_t          size;
     30  int             result;
    3131
    3232  result = pthread_attr_getstacksize( &attribute, &size );
  • c/src/tests/psxtests/psxhdrs/pthread10.c

    r318ac69 r02bfc56  
    2424  pthread_t  id_1 = 0;
    2525  pthread_t  id_2 = 0;
    26   int        status;
     26  int        result;
    2727
    28   status = pthread_equal( id_1, id_2 );
     28  result = pthread_equal( id_1, id_2 );
    2929}
  • c/src/tests/psxtests/psxhdrs/pthread11.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    2929  thread = 0;
     
    3939  param.sched_priority = 0;
    4040
    41   status = pthread_setschedparam( thread, policy, &param );
     41  result = pthread_setschedparam( thread, policy, &param );
    4242}
  • c/src/tests/psxtests/psxhdrs/pthread12.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    2929  thread = 0;
    3030
    31   status = pthread_getschedparam( thread, &policy, &param );
     31  result = pthread_getschedparam( thread, &policy, &param );
    3232}
  • c/src/tests/psxtests/psxhdrs/pthread13.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             contentionscope;
    26   int             status;
     26  int             result;
    2727
    2828  contentionscope = PTHREAD_SCOPE_SYSTEM;
    2929  contentionscope = PTHREAD_SCOPE_PROCESS;
    3030
    31   status = pthread_attr_setscope( &attr, contentionscope );
     31  result = pthread_attr_setscope( &attr, contentionscope );
    3232}
  • c/src/tests/psxtests/psxhdrs/pthread14.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             contentionscope;
    26   int             status;
     26  int             result;
    2727
    28   status = pthread_attr_getscope( &attr, &contentionscope );
     28  result = pthread_attr_getscope( &attr, &contentionscope );
    2929}
  • c/src/tests/psxtests/psxhdrs/pthread15.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             inheritsched;
    26   int             status;
     26  int             result;
    2727
    2828  inheritsched = PTHREAD_INHERIT_SCHED;
    2929  inheritsched = PTHREAD_EXPLICIT_SCHED;
    3030 
    31   status = pthread_attr_setinheritsched( &attr, inheritsched );
     31  result = pthread_attr_setinheritsched( &attr, inheritsched );
    3232}
  • c/src/tests/psxtests/psxhdrs/pthread16.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             inheritsched;
    26   int             status;
     26  int             result;
    2727
    28   status = pthread_attr_getinheritsched( &attr, &inheritsched );
     28  result = pthread_attr_getinheritsched( &attr, &inheritsched );
    2929}
  • c/src/tests/psxtests/psxhdrs/pthread17.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             policy;
    26   int             status;
     26  int             result;
    2727
    2828  policy = SCHED_FIFO;
     
    3030  policy = SCHED_OTHER;
    3131 
    32   status = pthread_attr_setschedpolicy( &attr, policy );
     32  result = pthread_attr_setschedpolicy( &attr, policy );
    3333}
  • c/src/tests/psxtests/psxhdrs/pthread18.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             policy;
    26   int             status;
     26  int             result;
    2727
    28   status = pthread_attr_getschedpolicy( &attr, &policy );
     28  result = pthread_attr_getschedpolicy( &attr, &policy );
    2929}
  • c/src/tests/psxtests/psxhdrs/pthread19.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t      attr;
    2525  struct sched_param  param;
    26   int                 status;
     26  int                 result;
    2727
    28   status = pthread_attr_setschedparam( &attr, &param );
     28  result = pthread_attr_setschedparam( &attr, &param );
    2929}
  • c/src/tests/psxtests/psxhdrs/pthread20.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t      attr;
    2525  struct sched_param  param;
    26   int                 status;
     26  int                 result;
    2727
    28   status = pthread_attr_getschedparam( &attr, &param );
     28  result = pthread_attr_getschedparam( &attr, &param );
    2929}
  • c/src/tests/psxtests/psxhdrs/pthread21.c

    r318ac69 r02bfc56  
    2323{
    2424  pthread_t   thread;
    25   int         status;
     25  int         result;
    2626
    2727  thread = 0;
    28   status = pthread_detach( thread );
     28  result = pthread_detach( thread );
    2929}
  • c/src/tests/psxtests/psxhdrs/pthread22.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    2929  policy = SCHED_OTHER;
     
    3333  param.sched_priority = 0;
    3434
    35   status = pthread_setschedparam( thread, policy, &param );
     35  result = pthread_setschedparam( thread, policy, &param );
    3636}
  • c/src/tests/psxtests/psxhdrs/pthread23.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    29   status = pthread_getschedparam( thread, &policy, &param );
     29  result = pthread_getschedparam( thread, &policy, &param );
    3030}
  • c/src/tests/psxtests/psxhdrs/pthread26.c

    r318ac69 r02bfc56  
    2424  pthread_t   thread;
    2525  void       *value_ptr;
    26   int         status;
     26  int         result;
    2727
    2828  thread = 0;
    2929
    30   status = pthread_join( thread, &value_ptr );
     30  result = pthread_join( thread, &value_ptr );
    3131}
  • c/src/tests/psxtests/psxhdrs/pthread27.c

    r318ac69 r02bfc56  
    2727{
    2828  pthread_once_t   once_control = PTHREAD_ONCE_INIT;
    29   int              status;
     29  int              result;
    3030
    31   status = pthread_once( &once_control, init_routine );
     31  result = pthread_once( &once_control, init_routine );
    3232}
  • c/src/tests/psxtests/psxhdrs/pthread28.c

    r318ac69 r02bfc56  
    2727{
    2828  pthread_t   thread;
    29   int         status;
     29  int         result;
    3030
    3131  thread = 0;
    32   status = pthread_cancel( thread );
     32  result = pthread_cancel( thread );
    3333}
  • c/src/tests/psxtests/psxhdrs/pthread29.c

    r318ac69 r02bfc56  
    2828  int         state;
    2929  int         oldstate;
    30   int         status;
     30  int         result;
    3131
    3232  state = PTHREAD_CANCEL_ENABLE;
    3333  state = PTHREAD_CANCEL_DISABLE;
    3434
    35   status = pthread_setcancelstate( state, &oldstate );
     35  result = pthread_setcancelstate( state, &oldstate );
    3636}
  • c/src/tests/psxtests/psxhdrs/pthread30.c

    r318ac69 r02bfc56  
    2828  int         type;
    2929  int         oldtype;
    30   int         status;
     30  int         result;
    3131
    3232  type = PTHREAD_CANCEL_DEFERRED;
    3333  type = PTHREAD_CANCEL_ASYNCHRONOUS;
    3434
    35   status = pthread_setcanceltype( type, &oldtype );
     35  result = pthread_setcanceltype( type, &oldtype );
    3636}
  • testsuites/psxtests/psxhdrs/cond01.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_condattr_t attribute;
    2425  int result;
    25   pthread_condattr_t attribute;
    2626
    2727  result = pthread_condattr_init( &attribute );
  • testsuites/psxtests/psxhdrs/cond02.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_condattr_t attribute;
    2425  int result;
    25   pthread_condattr_t attribute;
    2626
    2727  result = pthread_condattr_destroy( &attribute );
  • testsuites/psxtests/psxhdrs/mutex01.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_mutexattr_t attribute;
    2425  int result;
    25   pthread_mutexattr_t attribute;
    2626
    2727  result = pthread_mutexattr_init( &attribute );
  • testsuites/psxtests/psxhdrs/mutex02.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_mutexattr_t attribute;
    2425  int result;
    25   pthread_mutexattr_t attribute;
    2626
    2727  result = pthread_mutexattr_destroy( &attribute );
  • testsuites/psxtests/psxhdrs/pthread01.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_attr_t attribute;
    2425  int result;
    25   pthread_attr_t attribute;
    2626
    2727  result = pthread_attr_init( &attribute );
  • testsuites/psxtests/psxhdrs/pthread02.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
     24  pthread_attr_t  attribute;
    2425  int             result;
    25   pthread_attr_t  attribute;
    2626
    2727  result = pthread_attr_destroy( &attribute );
  • testsuites/psxtests/psxhdrs/pthread03.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
    24   int             result;
    2524  pthread_attr_t  attribute;
    2625  int             state;
     26  int             result;
    2727
    2828  state = PTHREAD_CREATE_DETACHED;
  • testsuites/psxtests/psxhdrs/pthread04.c

    r318ac69 r02bfc56  
    2222void test( void )
    2323{
    24   int             result;
    2524  pthread_attr_t  attribute;
    2625  int             state;
     26  int             result;
    2727
    2828  result = pthread_attr_getdetachstate( &attribute, &state );
  • testsuites/psxtests/psxhdrs/pthread05.c

    r318ac69 r02bfc56  
    2727void test( void )
    2828{
    29   int             result;
    3029  pthread_attr_t  attribute;
    3130  size_t          size;
     31  int             result;
    3232
    3333  size = PTHREAD_STACK_MIN;
  • testsuites/psxtests/psxhdrs/pthread06.c

    r318ac69 r02bfc56  
    2626void test( void )
    2727{
    28   int             result;
    2928  pthread_attr_t  attribute;
    3029  size_t          size;
     30  int             result;
    3131
    3232  result = pthread_attr_getstacksize( &attribute, &size );
  • testsuites/psxtests/psxhdrs/pthread10.c

    r318ac69 r02bfc56  
    2424  pthread_t  id_1 = 0;
    2525  pthread_t  id_2 = 0;
    26   int        status;
     26  int        result;
    2727
    28   status = pthread_equal( id_1, id_2 );
     28  result = pthread_equal( id_1, id_2 );
    2929}
  • testsuites/psxtests/psxhdrs/pthread11.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    2929  thread = 0;
     
    3939  param.sched_priority = 0;
    4040
    41   status = pthread_setschedparam( thread, policy, &param );
     41  result = pthread_setschedparam( thread, policy, &param );
    4242}
  • testsuites/psxtests/psxhdrs/pthread12.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    2929  thread = 0;
    3030
    31   status = pthread_getschedparam( thread, &policy, &param );
     31  result = pthread_getschedparam( thread, &policy, &param );
    3232}
  • testsuites/psxtests/psxhdrs/pthread13.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             contentionscope;
    26   int             status;
     26  int             result;
    2727
    2828  contentionscope = PTHREAD_SCOPE_SYSTEM;
    2929  contentionscope = PTHREAD_SCOPE_PROCESS;
    3030
    31   status = pthread_attr_setscope( &attr, contentionscope );
     31  result = pthread_attr_setscope( &attr, contentionscope );
    3232}
  • testsuites/psxtests/psxhdrs/pthread14.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             contentionscope;
    26   int             status;
     26  int             result;
    2727
    28   status = pthread_attr_getscope( &attr, &contentionscope );
     28  result = pthread_attr_getscope( &attr, &contentionscope );
    2929}
  • testsuites/psxtests/psxhdrs/pthread15.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             inheritsched;
    26   int             status;
     26  int             result;
    2727
    2828  inheritsched = PTHREAD_INHERIT_SCHED;
    2929  inheritsched = PTHREAD_EXPLICIT_SCHED;
    3030 
    31   status = pthread_attr_setinheritsched( &attr, inheritsched );
     31  result = pthread_attr_setinheritsched( &attr, inheritsched );
    3232}
  • testsuites/psxtests/psxhdrs/pthread16.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             inheritsched;
    26   int             status;
     26  int             result;
    2727
    28   status = pthread_attr_getinheritsched( &attr, &inheritsched );
     28  result = pthread_attr_getinheritsched( &attr, &inheritsched );
    2929}
  • testsuites/psxtests/psxhdrs/pthread17.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             policy;
    26   int             status;
     26  int             result;
    2727
    2828  policy = SCHED_FIFO;
     
    3030  policy = SCHED_OTHER;
    3131 
    32   status = pthread_attr_setschedpolicy( &attr, policy );
     32  result = pthread_attr_setschedpolicy( &attr, policy );
    3333}
  • testsuites/psxtests/psxhdrs/pthread18.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t  attr;
    2525  int             policy;
    26   int             status;
     26  int             result;
    2727
    28   status = pthread_attr_getschedpolicy( &attr, &policy );
     28  result = pthread_attr_getschedpolicy( &attr, &policy );
    2929}
  • testsuites/psxtests/psxhdrs/pthread19.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t      attr;
    2525  struct sched_param  param;
    26   int                 status;
     26  int                 result;
    2727
    28   status = pthread_attr_setschedparam( &attr, &param );
     28  result = pthread_attr_setschedparam( &attr, &param );
    2929}
  • testsuites/psxtests/psxhdrs/pthread20.c

    r318ac69 r02bfc56  
    2424  pthread_attr_t      attr;
    2525  struct sched_param  param;
    26   int                 status;
     26  int                 result;
    2727
    28   status = pthread_attr_getschedparam( &attr, &param );
     28  result = pthread_attr_getschedparam( &attr, &param );
    2929}
  • testsuites/psxtests/psxhdrs/pthread21.c

    r318ac69 r02bfc56  
    2323{
    2424  pthread_t   thread;
    25   int         status;
     25  int         result;
    2626
    2727  thread = 0;
    28   status = pthread_detach( thread );
     28  result = pthread_detach( thread );
    2929}
  • testsuites/psxtests/psxhdrs/pthread22.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    2929  policy = SCHED_OTHER;
     
    3333  param.sched_priority = 0;
    3434
    35   status = pthread_setschedparam( thread, policy, &param );
     35  result = pthread_setschedparam( thread, policy, &param );
    3636}
  • testsuites/psxtests/psxhdrs/pthread23.c

    r318ac69 r02bfc56  
    2525  int                 policy;
    2626  struct sched_param  param;
    27   int                 status;
     27  int                 result;
    2828
    29   status = pthread_getschedparam( thread, &policy, &param );
     29  result = pthread_getschedparam( thread, &policy, &param );
    3030}
  • testsuites/psxtests/psxhdrs/pthread26.c

    r318ac69 r02bfc56  
    2424  pthread_t   thread;
    2525  void       *value_ptr;
    26   int         status;
     26  int         result;
    2727
    2828  thread = 0;
    2929
    30   status = pthread_join( thread, &value_ptr );
     30  result = pthread_join( thread, &value_ptr );
    3131}
  • testsuites/psxtests/psxhdrs/pthread27.c

    r318ac69 r02bfc56  
    2727{
    2828  pthread_once_t   once_control = PTHREAD_ONCE_INIT;
    29   int              status;
     29  int              result;
    3030
    31   status = pthread_once( &once_control, init_routine );
     31  result = pthread_once( &once_control, init_routine );
    3232}
  • testsuites/psxtests/psxhdrs/pthread28.c

    r318ac69 r02bfc56  
    2727{
    2828  pthread_t   thread;
    29   int         status;
     29  int         result;
    3030
    3131  thread = 0;
    32   status = pthread_cancel( thread );
     32  result = pthread_cancel( thread );
    3333}
  • testsuites/psxtests/psxhdrs/pthread29.c

    r318ac69 r02bfc56  
    2828  int         state;
    2929  int         oldstate;
    30   int         status;
     30  int         result;
    3131
    3232  state = PTHREAD_CANCEL_ENABLE;
    3333  state = PTHREAD_CANCEL_DISABLE;
    3434
    35   status = pthread_setcancelstate( state, &oldstate );
     35  result = pthread_setcancelstate( state, &oldstate );
    3636}
  • testsuites/psxtests/psxhdrs/pthread30.c

    r318ac69 r02bfc56  
    2828  int         type;
    2929  int         oldtype;
    30   int         status;
     30  int         result;
    3131
    3232  type = PTHREAD_CANCEL_DEFERRED;
    3333  type = PTHREAD_CANCEL_ASYNCHRONOUS;
    3434
    35   status = pthread_setcanceltype( type, &oldtype );
     35  result = pthread_setcanceltype( type, &oldtype );
    3636}
Note: See TracChangeset for help on using the changeset viewer.