aboutsummaryrefslogtreecommitdiffstats
path: root/man3/sem_wait.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-08-18 03:02:55 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-18 03:47:26 +0200
commit90879cbd20f563af6bcc0ee9035cd59f591c29c7 (patch)
tree3a7e477c5362c6cc857c35673fa99a5185b898af /man3/sem_wait.3
parent97e2d8e602d44b1271f18cd3297a5e40bed3584c (diff)
downloadman-pages-90879cbd20f563af6bcc0ee9035cd59f591c29c7.tar.gz
chmod.2, chown.2, open.2, mkdir.2, mknod.2, readlink.2, stat.2, symlink.2, mkfifo.3, scandir.3, sem_wait.3: ERRORS: combine errors into a single alphabetic list
These pages split out extra errors for some APIs into a separate list. Probably, the pages are easier to ready if all errors are combined into a single list. Note that there still remain a few pages where the errors are listed separately for different APIs. For the moment, it seems best to leave those pages as is, since the error lists are largely distinct in those pages. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/sem_wait.3')
-rw-r--r--man3/sem_wait.317
1 files changed, 7 insertions, 10 deletions
diff --git a/man3/sem_wait.3 b/man3/sem_wait.3
index bb86d984b8..40cedb2a37 100644
--- a/man3/sem_wait.3
+++ b/man3/sem_wait.3
@@ -113,6 +113,11 @@ on error, the value of the semaphore is left unchanged,
is set to indicate the error.
.SH ERRORS
.TP
+.B EAGAIN
+.RB ( sem_trywait ())
+The operation could not be performed without blocking (i.e., the
+semaphore currently has the value zero).
+.TP
.B EINTR
The call was interrupted by a signal handler; see
.BR signal (7).
@@ -120,23 +125,15 @@ The call was interrupted by a signal handler; see
.B EINVAL
.I sem
is not a valid semaphore.
-.PP
-The following additional error can occur for
-.BR sem_trywait ():
-.TP
-.B EAGAIN
-The operation could not be performed without blocking (i.e., the
-semaphore currently has the value zero).
-.PP
-The following additional errors can occur for
-.BR sem_timedwait ():
.TP
.B EINVAL
+.RB ( sem_timedwait ())
The value of
.I abs_timeout.tv_nsecs
is less than 0, or greater than or equal to 1000 million.
.TP
.B ETIMEDOUT
+.RB ( sem_timedwait ())
The call timed out before the semaphore could be locked.
.\" POSIX.1-2001 also allows EDEADLK -- "A deadlock condition
.\" was detected", but this does not occur on Linux(?).