aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/semaphore.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-27 05:36:34 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-27 05:36:34 +0000
commit8e605e789df868763e388dca7040538c1de41b85 (patch)
tree5c243130cd406eda3e1e2d582535e38d614d36f0 /linuxthreads/semaphore.h
parent1edf26ffc696dc0520def24e6a852add3566860e (diff)
downloadglibc-8e605e789df868763e388dca7040538c1de41b85.tar
glibc-8e605e789df868763e388dca7040538c1de41b85.tar.gz
glibc-8e605e789df868763e388dca7040538c1de41b85.tar.bz2
glibc-8e605e789df868763e388dca7040538c1de41b85.zip
Update.
2000-03-26 Ulrich Drepper <drepper@redhat.com> * include/features.h: Undef and document __USE_XOPEN2K. * malloc/mcheck.c: Implement pedantic checking of all allocated blocks whenever a function is called. Initiated by calling mcheck_pedantic instead of mcheck. * malloc/mcheck.h: Declare mcheck_pedantic. * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic. * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck for now.
Diffstat (limited to 'linuxthreads/semaphore.h')
-rw-r--r--linuxthreads/semaphore.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/linuxthreads/semaphore.h b/linuxthreads/semaphore.h
index 21a9deaafe..583b65ea18 100644
--- a/linuxthreads/semaphore.h
+++ b/linuxthreads/semaphore.h
@@ -17,6 +17,10 @@
#include <features.h>
#include <sys/types.h>
+#ifdef __USE_XOPEN2K
+# define __need_timespec
+# include <time.h>
+#endif
#ifndef _PTHREAD_DESCR_DEFINED
/* Thread descriptors. Needed for `sem_t' definition. */
@@ -66,6 +70,12 @@ extern int sem_unlink (__const char *__name) __THROW;
/* Wait for SEM being posted. */
extern int sem_wait (sem_t *__sem) __THROW;
+#ifdef __USE_XOPEN2K
+/* Similar to `sem_wait' but wait only until ABSTIME. */
+extern int sem_timedwait (sem_t *__sem, __const struct timespec *__abstime)
+ __THROW;
+#endif
+
/* Test whether SEM is posted. */
extern int sem_trywait (sem_t *__sem) __THROW;