Changeset ccdf4c57 in rtems


Ignore:
Timestamp:
08/12/96 18:05:47 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c7a9c66
Parents:
d06e9ca
Message:

pthread_mutex_getprioceiling: added error check for null old_ceiling

pthread_mutex_setprioceiling: added comment indicating an error was
impossible to generate.

Files:
2 edited

Legend:

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

    rd06e9ca rccdf4c57  
    592592  int                           status;
    593593
     594  if ( !old_ceiling )
     595    return EINVAL;
     596
    594597  if ( !_POSIX_Priority_Is_valid( prioceiling ) )
    595598    return EINVAL;
     
    608611  switch ( location ) {
    609612    case OBJECTS_ERROR:
    610       return EINVAL;
     613      return EINVAL;        /* impossible to get here */
    611614    case OBJECTS_REMOTE:
    612615      /*  XXX It feels questionable to set the ceiling on a remote mutex. */
    613       return POSIX_MP_NOT_IMPLEMENTED();
    614616      return EINVAL;
    615617    case OBJECTS_LOCAL:
  • cpukit/posix/src/mutex.c

    rd06e9ca rccdf4c57  
    592592  int                           status;
    593593
     594  if ( !old_ceiling )
     595    return EINVAL;
     596
    594597  if ( !_POSIX_Priority_Is_valid( prioceiling ) )
    595598    return EINVAL;
     
    608611  switch ( location ) {
    609612    case OBJECTS_ERROR:
    610       return EINVAL;
     613      return EINVAL;        /* impossible to get here */
    611614    case OBJECTS_REMOTE:
    612615      /*  XXX It feels questionable to set the ceiling on a remote mutex. */
    613       return POSIX_MP_NOT_IMPLEMENTED();
    614616      return EINVAL;
    615617    case OBJECTS_LOCAL:
Note: See TracChangeset for help on using the changeset viewer.