Changeset aae1c932 in rtems


Ignore:
Timestamp:
08/14/96 17:20:03 (26 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4e63ae5
Parents:
87c8fd09
Message:

pthread_cond_timedwait: added error cases for abstime

Files:
2 edited

Legend:

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

    r87c8fd09 raae1c932  
    448448)
    449449{
     450  if ( !abstime )
     451    return EINVAL;
     452
     453/* XXX need to fully address an error occuring in the total timespec */
     454
     455  if ( abstime->tv_sec < 0 || abstime->tv_nsec < 0 )
     456    return EINVAL;
     457
     458  if ( abstime->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
     459    return EINVAL;
     460 
    450461  return _POSIX_Condition_variables_Wait_support(
    451462    cond,
  • cpukit/posix/src/cond.c

    r87c8fd09 raae1c932  
    448448)
    449449{
     450  if ( !abstime )
     451    return EINVAL;
     452
     453/* XXX need to fully address an error occuring in the total timespec */
     454
     455  if ( abstime->tv_sec < 0 || abstime->tv_nsec < 0 )
     456    return EINVAL;
     457
     458  if ( abstime->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
     459    return EINVAL;
     460 
    450461  return _POSIX_Condition_variables_Wait_support(
    451462    cond,
Note: See TracChangeset for help on using the changeset viewer.