diff options
Diffstat (limited to 'cpukit/posix/src/semwait.c')
-rw-r--r-- | cpukit/posix/src/semwait.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/cpukit/posix/src/semwait.c b/cpukit/posix/src/semwait.c index 30cf5ad344..0353af4029 100644 --- a/cpukit/posix/src/semwait.c +++ b/cpukit/posix/src/semwait.c @@ -18,21 +18,11 @@ #include "config.h" #endif -#include <stdarg.h> - -#include <errno.h> -#include <fcntl.h> -#include <pthread.h> -#include <semaphore.h> -#include <limits.h> - -#include <rtems/system.h> #include <rtems/posix/semaphoreimpl.h> -#include <rtems/seterr.h> -int sem_wait( - sem_t *sem -) +int sem_wait( sem_t *sem ) { - return _POSIX_Semaphore_Wait_support( sem, true, WATCHDOG_NO_TIMEOUT ); + POSIX_SEMAPHORE_VALIDATE_OBJECT( sem ); + _Semaphore_Wait( &sem->_Semaphore ); + return 0; } |