From 8e605e789df868763e388dca7040538c1de41b85 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 27 Mar 2000 05:36:34 +0000 Subject: Update. 2000-03-26 Ulrich Drepper * 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. --- linuxthreads/semaphore.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linuxthreads/semaphore.h') 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 #include +#ifdef __USE_XOPEN2K +# define __need_timespec +# include +#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; -- cgit v1.2.3