* thread.cc (semaphore::_getvalue): Set *sval as appropriate. Set errno and

return -1 on error.
This commit is contained in:
Christopher Faylor
2013-09-25 14:44:45 +00:00
parent 31fb5c6433
commit 1dc2c177f4
3 changed files with 19 additions and 3 deletions

View File

@ -185,7 +185,7 @@ sem_timedwait (sem_t * sem, const struct timespec *abstime)
}
int
sem_post (sem_t * sem)
sem_post (sem_t *sem)
{
return semaphore::post (sem);
}