From owner-svn-src-head@FreeBSD.ORG Mon Feb 20 20:46:27 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84195106566C; Mon, 20 Feb 2012 20:46:27 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6FE358FC12; Mon, 20 Feb 2012 20:46:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1KKkROL067257; Mon, 20 Feb 2012 20:46:27 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1KKkRLG067255; Mon, 20 Feb 2012 20:46:27 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201202202046.q1KKkRLG067255@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Mon, 20 Feb 2012 20:46:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231945 - head/lib/libc/gen X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2012 20:46:27 -0000 Author: pjd Date: Mon Feb 20 20:46:27 2012 New Revision: 231945 URL: http://svn.freebsd.org/changeset/base/231945 Log: Document the fact that getgrouplist(3) returns 0 on success. MFC after: 3 days Modified: head/lib/libc/gen/getgrouplist.3 Modified: head/lib/libc/gen/getgrouplist.3 ============================================================================== --- head/lib/libc/gen/getgrouplist.3 Mon Feb 20 20:31:05 2012 (r231944) +++ head/lib/libc/gen/getgrouplist.3 Mon Feb 20 20:46:27 2012 (r231945) @@ -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 ret 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