From 3a434d321203a61ed371a677729d5ecd743d18ce Mon Sep 17 00:00:00 2001 From: dds Date: Wed, 19 Nov 2003 13:05:50 +0000 Subject: [PATCH] Documented missing EINVAL errno value kern_prot.c: if (ngrp > NGROUPS) return (EINVAL); MFC after: 2 weeks --- lib/libc/sys/setgroups.2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/libc/sys/setgroups.2 b/lib/libc/sys/setgroups.2 index 1ff68749a57f..cbc3a36b61f4 100644 --- a/lib/libc/sys/setgroups.2 +++ b/lib/libc/sys/setgroups.2 @@ -71,6 +71,12 @@ system call will fail if: .Bl -tag -width Er .It Bq Er EPERM The caller is not the super-user. +.It Bq Er EINVAL +The number specified in the +.Fa ngroups +argument is larger than the +.Dv NGROUPS +limit. .It Bq Er EFAULT The address specified for .Fa gidset