Changeset 18cf727 in rtems


Ignore:
Timestamp:
Jun 21, 2010, 4:38:47 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
6685b744
Parents:
7cf2cfaa
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

    r7cf2cfaa r18cf727  
     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
    172009-12-10      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • cpukit/posix/src/semtimedwait.c

    r7cf2cfaa r18cf727  
    7777    switch (lock_status) {
    7878      case POSIX_ABSOLUTE_TIMEOUT_INVALID:
    79         return EINVAL;
     79        rtems_set_errno_and_return_minus_one( EINVAL );
    8080      case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
    8181      case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
    82         return ETIMEDOUT;
     82        rtems_set_errno_and_return_minus_one( ETIMEDOUT );
    8383      case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
    8484        break;
Note: See TracChangeset for help on using the changeset viewer.