summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-02-20 20:46:27 +0000
committerpjd <pjd@FreeBSD.org>2012-02-20 20:46:27 +0000
commit31a24bc1664a822f3d06595f42063719e6902ff1 (patch)
treec171a5c7d70b4d933b6b08a5e74cb92931f3b85c
parentaa3978aed228541a91a6e39e0bd8ccd044f39e8a (diff)
downloadFreeBSD-src-31a24bc1664a822f3d06595f42063719e6902ff1.zip
FreeBSD-src-31a24bc1664a822f3d06595f42063719e6902ff1.tar.gz
Document the fact that getgrouplist(3) returns 0 on success.
MFC after: 3 days
-rw-r--r--lib/libc/gen/getgrouplist.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrouplist.3 b/lib/libc/gen/getgrouplist.3
index 3f7faa2..44d95f5 100644
--- a/lib/libc/gen/getgrouplist.3
+++ b/lib/libc/gen/getgrouplist.3
@@ -28,7 +28,7 @@
.\" @(#)getgrouplist.3 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd June 9, 1993
+.Dd February 20, 2012
.Dt GETGROUPLIST 3
.Os
.Sh NAME
@@ -64,7 +64,7 @@ the actual number of groups found is returned in
The
.Fn getgrouplist
function
-returns \-1 if the size of the group list is too small to
+returns 0 on success and \-1 if the size of the group list is too small to
hold all the user's groups.
Here, the group array will be filled with as many groups as will fit.
.Sh FILES
OpenPOWER on IntegriCloud