summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/semaphorewaitsupp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/semaphorewaitsupp.c')
-rw-r--r--cpukit/posix/src/semaphorewaitsupp.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/cpukit/posix/src/semaphorewaitsupp.c b/cpukit/posix/src/semaphorewaitsupp.c
index 7c76ff87bd..1c5f815b25 100644
--- a/cpukit/posix/src/semaphorewaitsupp.c
+++ b/cpukit/posix/src/semaphorewaitsupp.c
@@ -26,13 +26,13 @@
*/
int _POSIX_Semaphore_Wait_support(
- sem_t *sem,
- boolean blocking,
- Watchdog_Interval timeout
+ sem_t *sem,
+ Core_semaphore_Blocking_option blocking,
+ Watchdog_Interval timeout
)
{
- register POSIX_Semaphore_Control *the_semaphore;
- Objects_Locations location;
+ POSIX_Semaphore_Control *the_semaphore;
+ Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
@@ -65,6 +65,9 @@ int _POSIX_Semaphore_Wait_support(
* count to the largest value the count can hold.
*/
break;
+ case CORE_SEMAPHORE_BAD_TIMEOUT_VALUE:
+ rtems_set_errno_and_return_minus_one( EINVAL );
+ break;
}
}
return 0;