summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1997-03-29 20:07:46 +0000
committertholo <tholo@openbsd.org>1997-03-29 20:07:46 +0000
commit0b199c642541c88b1786df5d464c8e1e3961ea73 (patch)
treeb7d7112ae8da61e880987f72823b636df3aafc2a /lib/libc
parentDocument .message (diff)
downloadwireguard-openbsd-0b199c642541c88b1786df5d464c8e1e3961ea73.tar.xz
wireguard-openbsd-0b199c642541c88b1786df5d464c8e1e3961ea73.zip
Document EINVAL; from NetBSD PR 3395
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/setpgid.24
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/setpgid.2 b/lib/libc/sys/setpgid.2
index 6b2cdbd9462..1842d5e1fb5 100644
--- a/lib/libc/sys/setpgid.2
+++ b/lib/libc/sys/setpgid.2
@@ -74,6 +74,10 @@ The value of the
.Fa pid
argument matches the process ID of a child process of the calling process,
and the child process has successfully executed one of the exec functions.
+.It Bq Er EINVAL
+The value of the
+.Fa pgrp
+argument is less than zero.
.It Bq Er EPERM
The effective user ID of the requested process is different
from that of the caller and the process is not a descendant