summaryrefslogtreecommitdiff
path: root/semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'semaphore.c')
-rw-r--r--semaphore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/semaphore.c b/semaphore.c
index 54005db..86222ec 100644
--- a/semaphore.c
+++ b/semaphore.c
@@ -258,7 +258,7 @@ sem_trywait (sem_t * sem)
* ERRNO
* EAGAIN the semaphore was already locked,
* EINVAL 'sem' is not a valid semaphore,
- * ENOSYS semaphores are not supported,
+ * ENOTSUP sem_trywait is not supported,
* EINTR the function was interrupted by a signal,
* EDEADLK a deadlock condition was detected.
*
@@ -270,7 +270,7 @@ sem_trywait (sem_t * sem)
/*
* not yet implemented!
*/
- int result = EINVAL;
+ errno = ENOTSUP;
return -1;
#else /* NEED_SEM */