summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2016-04-08 15:43:49 +0000
committerjilles <jilles@FreeBSD.org>2016-04-08 15:43:49 +0000
commit04a8be1cdc83e902fc061374f94b648411c67546 (patch)
treedfd5113b495d606683ec0bb35256ffd7724a53c6 /lib/libc/sys
parent44786516a4a87b9d660a840ec4fcb35b8ca4a211 (diff)
downloadFreeBSD-src-04a8be1cdc83e902fc061374f94b648411c67546.zip
FreeBSD-src-04a8be1cdc83e902fc061374f94b648411c67546.tar.gz
MFC r295384: semget(2): Add missing [EINVAL] conditions.
PR: 206927
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/semget.213
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/sys/semget.2 b/lib/libc/sys/semget.2
index 945044d..debcf11 100644
--- a/lib/libc/sys/semget.2
+++ b/lib/libc/sys/semget.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 12, 1995
+.Dd February 7, 2016
.Dt SEMGET 2
.Os
.Sh NAME
@@ -132,6 +132,17 @@ already exists.
.It Bq Er EINVAL
The number of semaphores requested exceeds the system imposed maximum
per set.
+.It Bq Er EINVAL
+A semaphore set corresponding to
+.Fa key
+already exists and contains fewer semaphores than
+.Fa nsems .
+.It Bq Er EINVAL
+A semaphore set corresponding to
+.Fa key
+does not exist and
+.Fa nsems
+is 0 or negative.
.It Bq Er ENOSPC
Insufficiently many semaphores are available.
.It Bq Er ENOSPC
OpenPOWER on IntegriCloud