summaryrefslogtreecommitdiff
path: root/sysdeps/pthread/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/semaphore.h')
-rw-r--r--sysdeps/pthread/semaphore.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/pthread/semaphore.h b/sysdeps/pthread/semaphore.h
index 87c054392c..6e74aa3176 100644
--- a/sysdeps/pthread/semaphore.h
+++ b/sysdeps/pthread/semaphore.h
@@ -64,6 +64,13 @@ extern int sem_timedwait (sem_t *__restrict __sem,
__nonnull ((1, 2));
#endif
+#ifdef __USE_GNU
+extern int sem_clockwait (sem_t *__restrict __sem,
+ clockid_t clock,
+ const struct timespec *__restrict __abstime)
+ __nonnull ((1, 3));
+#endif
+
/* Test whether SEM is posted. */
extern int sem_trywait (sem_t *__sem) __THROWNL __nonnull ((1));