aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2016-02-07 21:25:08 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2016-02-07 21:25:08 +0000
commit9ef7a36255e617fc030eb2bbd7fea1b67014ed45 (patch)
treed3f44b997edfeb24d2b77f66dbc7811580a77e3a /lib
parent71b7fa1252640435bccd62bc14d85d89dd1d683f (diff)
downloadsrc-9ef7a36255e617fc030eb2bbd7fea1b67014ed45.tar.gz
src-9ef7a36255e617fc030eb2bbd7fea1b67014ed45.zip
semget(2): Add missing [EINVAL] conditions.
PR: 206927
Notes
Notes: svn path=/head/; revision=295384
Diffstat (limited to 'lib')
-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 945044da65bb..debcf11224ae 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