]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/sem_wait.3
fanotify_init.2, fanotify.7: Document FAN_REPORT_TID
[thirdparty/man-pages.git] / man3 / sem_wait.3
index d135cab294e9859d551cc5d9af85178706af2ee9..11179b771178310977c6b40c8ca1039e87ccef02 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH SEM_WAIT 3 2017-03-13 "Linux" "Linux Programmer's Manual"
+.TH SEM_WAIT 3 2017-09-15 "Linux" "Linux Programmer's Manual"
 .SH NAME
 sem_wait, sem_timedwait, sem_trywait \- lock a semaphore
 .SH SYNOPSIS
@@ -81,12 +81,12 @@ in seconds and nanoseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).
 This structure is defined as follows:
 .PP
 .in +4n
-.nf
+.EX
 struct timespec {
     time_t tv_sec;      /* Seconds */
     long   tv_nsec;     /* Nanoseconds [0 .. 999999999] */
 };
-.fi
+.EE
 .in
 .PP
 If the timeout has already expired by the time of the call,
@@ -177,7 +177,7 @@ of the timeout, in seconds, for
 The following shows what happens on two different runs of the program:
 .PP
 .in +4n
-.nf
+.EX
 .RB "$" " ./a.out 2 3"
 About to call sem_timedwait()
 sem_post() from handler
@@ -185,7 +185,7 @@ sem_timedwait() succeeded
 .RB "$" " ./a.out 2 1"
 About to call sem_timedwait()
 sem_timedwait() timed out
-.fi
+.EE
 .in
 .SS Program source
 \&