Changeset 48e685c in rtems


Ignore:
Timestamp:
08/15/96 16:22:59 (27 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
948721c
Parents:
fb7d080
Message:

fixed typo for NOTSUP -> ENOTSUP

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/pthread.c

    rfb7d080 r48e685c  
    364364
    365365    case PTHREAD_SCOPE_SYSTEM:
    366 /* XXX needs to be ENOTSUP */
    367       return ENOSYS;
     366      return ENOTSUP;
    368367
    369368    default:
     
    382381)
    383382{
    384   if ( !attr || !attr->is_initialized )
     383  if ( !attr || !attr->is_initialized || !contentionscope )
    385384    return EINVAL;
    386385
     
    409408
    410409    default:
    411       return EINVAL;
     410      return ENOTSUP;
    412411  }
    413412}
     
    423422)
    424423{
    425   if ( !attr || !attr->is_initialized )
     424  if ( !attr || !attr->is_initialized || !inheritsched )
    426425    return EINVAL;
    427426
     
    452451 
    453452    default:
    454       return EINVAL;
     453      return ENOTSUP;
    455454  }
    456455}
     
    466465)
    467466{
    468   if ( !attr || !attr->is_initialized )
     467  if ( !attr || !attr->is_initialized || !policy )
    469468    return EINVAL;
    470469
     
    692691)
    693692{
    694   if ( !attr || !attr->is_initialized )
     693  if ( !attr || !attr->is_initialized || !stacksize )
    695694    return EINVAL;
    696695
     
    729728)
    730729{
    731   if ( !attr || !attr->is_initialized )
     730  if ( !attr || !attr->is_initialized || !stackaddr )
    732731    return EINVAL;
    733732
     
    763762)
    764763{
    765   if ( !attr || !attr->is_initialized )
     764  if ( !attr || !attr->is_initialized || !detachstate )
    766765    return EINVAL;
    767766
     
    867866
    868867  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
    869     return ENOSYS;
     868    return ENOTSUP;
    870869
    871870  /*
     
    962961    _POSIX_Threads_Free( the_thread );
    963962    _Thread_Enable_dispatch();
    964     return EINVAL;
     963    return EAGAIN;
    965964  }
    966965
     
    12761275)
    12771276{
    1278   if ( !attr || !attr->is_initialized )
     1277  if ( !attr || !attr->is_initialized || !clock_allowed )
    12791278    return EINVAL;
    12801279
  • cpukit/posix/src/pthread.c

    rfb7d080 r48e685c  
    364364
    365365    case PTHREAD_SCOPE_SYSTEM:
    366 /* XXX needs to be ENOTSUP */
    367       return ENOSYS;
     366      return ENOTSUP;
    368367
    369368    default:
     
    382381)
    383382{
    384   if ( !attr || !attr->is_initialized )
     383  if ( !attr || !attr->is_initialized || !contentionscope )
    385384    return EINVAL;
    386385
     
    409408
    410409    default:
    411       return EINVAL;
     410      return ENOTSUP;
    412411  }
    413412}
     
    423422)
    424423{
    425   if ( !attr || !attr->is_initialized )
     424  if ( !attr || !attr->is_initialized || !inheritsched )
    426425    return EINVAL;
    427426
     
    452451 
    453452    default:
    454       return EINVAL;
     453      return ENOTSUP;
    455454  }
    456455}
     
    466465)
    467466{
    468   if ( !attr || !attr->is_initialized )
     467  if ( !attr || !attr->is_initialized || !policy )
    469468    return EINVAL;
    470469
     
    692691)
    693692{
    694   if ( !attr || !attr->is_initialized )
     693  if ( !attr || !attr->is_initialized || !stacksize )
    695694    return EINVAL;
    696695
     
    729728)
    730729{
    731   if ( !attr || !attr->is_initialized )
     730  if ( !attr || !attr->is_initialized || !stackaddr )
    732731    return EINVAL;
    733732
     
    763762)
    764763{
    765   if ( !attr || !attr->is_initialized )
     764  if ( !attr || !attr->is_initialized || !detachstate )
    766765    return EINVAL;
    767766
     
    867866
    868867  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
    869     return ENOSYS;
     868    return ENOTSUP;
    870869
    871870  /*
     
    962961    _POSIX_Threads_Free( the_thread );
    963962    _Thread_Enable_dispatch();
    964     return EINVAL;
     963    return EAGAIN;
    965964  }
    966965
     
    12761275)
    12771276{
    1278   if ( !attr || !attr->is_initialized )
     1277  if ( !attr || !attr->is_initialized || !clock_allowed )
    12791278    return EINVAL;
    12801279
Note: See TracChangeset for help on using the changeset viewer.