2010-06-21 Peter Dufault <dufault@hda.com>

PR 1570/cpukit
	* posix/src/semtimedwait.c: This routine is supposed to return -1/errno
	NOT the status directly.
This commit is contained in:
Joel Sherrill
2010-06-21 16:38:40 +00:00
parent 9511a0ab23
commit ca07e7db38
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2010-06-21 Peter Dufault <dufault@hda.com>
PR 1570/cpukit
* posix/src/semtimedwait.c: This routine is supposed to return -1/errno
NOT the status directly.
2010-06-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1554/cpukit

View File

@@ -76,10 +76,10 @@ int sem_timedwait(
if ( !do_wait && (lock_status == EBUSY) ) {
switch (lock_status) {
case POSIX_ABSOLUTE_TIMEOUT_INVALID:
return EINVAL;
rtems_set_errno_and_return_minus_one( EINVAL );
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
return ETIMEDOUT;
rtems_set_errno_and_return_minus_one( ETIMEDOUT );
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
break;
}