diff options
Diffstat (limited to 'man3/sem_wait.3')
| -rw-r--r-- | man3/sem_wait.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/sem_wait.3 b/man3/sem_wait.3 index f22ff020c8..9a0320c5ef 100644 --- a/man3/sem_wait.3 +++ b/man3/sem_wait.3 @@ -56,7 +56,7 @@ If the semaphore currently has the value zero, then the call blocks until either it becomes possible to perform the decrement (i.e., the semaphore value rises above zero), or a signal handler interrupts the call. - +.PP .BR sem_trywait () is the same as .BR sem_wait (), @@ -66,7 +66,7 @@ then call returns an error set to .BR EAGAIN ) instead of blocking. - +.PP .BR sem_timedwait () is the same as .BR sem_wait (), @@ -79,7 +79,7 @@ The argument points to a structure that specifies an absolute timeout in seconds and nanoseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). This structure is defined as follows: - +.PP .nf .in +4n struct timespec { @@ -97,7 +97,7 @@ fails with a timeout error .RI ( errno set to .BR ETIMEDOUT ). - +.PP If the operation can be performed immediately, then .BR sem_timedwait () never fails with a timeout error, regardless of the value of @@ -175,7 +175,7 @@ The second command-line argument specifies the length of the timeout, in seconds, for .BR sem_timedwait (). The following shows what happens on two different runs of the program: - +.PP .in +4n .nf .RB "$" " ./a.out 2 3" |
