From 57a82ba4d95159d3623b0d401cfc3cc8f6357c28 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 20 Feb 2012 20:46:27 +0000 Subject: [PATCH] Document the fact that getgrouplist(3) returns 0 on success. MFC after: 3 days --- lib/libc/gen/getgrouplist.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/getgrouplist.3 b/lib/libc/gen/getgrouplist.3 index 3f7faa2431ab..44d95f50077f 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