Changeset d8af86b in rtems


Ignore:
Timestamp:
Jun 21, 2010, 4:38:26 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
f63801a2
Parents:
ad37630
Message:

2010-06-21 Peter Dufault <dufault@…>

PR 1570/cpukit

  • posix/src/semtimedwait.c: This routine is supposed to return -1/errno NOT the status directly.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rad37630 rd8af86b  
     12010-06-21      Peter Dufault <dufault@hda.com>
     2
     3        PR 1570/cpukit
     4        * posix/src/semtimedwait.c: This routine is supposed to return -1/errno
     5        NOT the status directly.
     6
    172010-06-21      Joel Sherrill <joel.sherrilL@OARcorp.com>
    28
  • cpukit/posix/src/semtimedwait.c

    rad37630 rd8af86b  
    7373    switch (lock_status) {
    7474      case POSIX_ABSOLUTE_TIMEOUT_INVALID:
    75         return EINVAL;
     75        rtems_set_errno_and_return_minus_one( EINVAL );
    7676      case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
    7777      case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
    78         return ETIMEDOUT;
     78        rtems_set_errno_and_return_minus_one( ETIMEDOUT );
    7979      case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
    8080        break;
Note: See TracChangeset for help on using the changeset viewer.