Changeset d8af86b in rtems for cpukit/posix/src/semtimedwait.c


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.