Changeset 5f08fd6 in rtems


Ignore:
Timestamp:
08/12/96 19:55:09 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
221bd65
Parents:
c4f5e752
Message:

nanosleep: verify rqtp parameter is non-NULL.

nanosleep: return 0 time remaining for a yield case.

Files:
2 edited

Legend:

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

    rc4f5e752 r5f08fd6  
    248248  Watchdog_Interval ticks;
    249249
     250  if ( !rqtp )
     251    set_errno_and_return_minus_one( EINVAL );
     252
    250253  /*
    251254   *  Return EAGAIN if the delay interval is negative. 
     
    273276    _Thread_Yield_processor();
    274277    _Thread_Dispatch();
     278    if ( rmtp ) {
     279       rmtp->tv_sec = 0;
     280       rmtp->tv_nsec = 0;
     281    }
    275282    return 0;
    276283  }
  • cpukit/posix/src/time.c

    rc4f5e752 r5f08fd6  
    248248  Watchdog_Interval ticks;
    249249
     250  if ( !rqtp )
     251    set_errno_and_return_minus_one( EINVAL );
     252
    250253  /*
    251254   *  Return EAGAIN if the delay interval is negative. 
     
    273276    _Thread_Yield_processor();
    274277    _Thread_Dispatch();
     278    if ( rmtp ) {
     279       rmtp->tv_sec = 0;
     280       rmtp->tv_nsec = 0;
     281    }
    275282    return 0;
    276283  }
Note: See TracChangeset for help on using the changeset viewer.