aboutsummaryrefslogtreecommitdiffstats
path: root/man3/sem_wait.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/sem_wait.3')
-rw-r--r--man3/sem_wait.317
1 files changed, 11 insertions, 6 deletions
diff --git a/man3/sem_wait.3 b/man3/sem_wait.3
index ae195d95dc..bf95368669 100644
--- a/man3/sem_wait.3
+++ b/man3/sem_wait.3
@@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
-.TH SEM_WAIT 3 2006-03-25 "Linux" "Linux Programmer's Manual"
+.TH SEM_WAIT 3 2007-07-26 "Linux" "Linux Programmer's Manual"
.SH NAME
sem_wait, sem_timedwait, sem_trywait \- lock a semaphore
.SH SYNOPSIS
@@ -29,12 +29,18 @@ sem_wait, sem_timedwait, sem_trywait \- lock a semaphore
.sp
.BI "int sem_wait(sem_t *" sem );
.BI "int sem_trywait(sem_t *" sem );
-.sp
-.B #define _XOPEN_SOURCE 600
-.B #include <semaphore.h>
-.sp
.BI "int sem_timedwait(sem_t *" sem ", const struct timespec *" abs_timeout );
.fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.ad l
+.BR sem_timedwait ():
+_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600
+.ad p
.SH DESCRIPTION
.BR sem_wait ()
decrements (locks) the semaphore pointed to by
@@ -252,5 +258,4 @@ main(int argc, char *argv[])
.\" .BR clock_gettime (3),
.BR sem_getvalue (3),
.BR sem_post (3),
-.BR feature_test_macros (7),
.BR sem_overview (7)