Changeset 0dc6477 in rtems


Ignore:
Timestamp:
Jun 21, 2010, 4:38:34 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10
Children:
654169d
Parents:
54a3c4d
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

    r54a3c4d r0dc6477  
     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

    r54a3c4d r0dc6477  
    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.