From owner-svn-src-all@FreeBSD.ORG Sat Jun 26 21:50:14 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A39EC106564A; Sat, 26 Jun 2010 21:50:14 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1D6218FC08; Sat, 26 Jun 2010 21:50:13 +0000 (UTC) Received: by qwg5 with SMTP id 5so1307887qwg.13 for ; Sat, 26 Jun 2010 14:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=e2i1VyzQrp+za4CA7mKN5RejWlfoaVsd26JS61m1QjM=; b=A6DHX8KRlmJMfRMxjDm78oJ5emKjKhMyQefAd8/tytNxTgsp1TIqqov7C85reSWG/8 bV1I+NM+TVEPbE1f0twmuGEx9a0leGL8q1eEnD8Ptwx3ZonTpLVOA0FO0Ggui+fjjnc8 KQ3ZTUIr/O3JyUY2NDOeyLYw2DAhgoXs75JwQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hV4GyT5xqPKN2CwvZagzfyvEiqydCXrhyyGYuOEd1SRmn6ndmci+Vz/l3J5v+gqnLN jUMprjV5LDFc+4dhrHtkddpcobTU1Phjc1URCaY6y/i3moAVNDi1hbpnBA341b992TtW RkaHLiYqGLmyLf7DSwzw+g0CqwC24Pvla5VLg= MIME-Version: 1.0 Received: by 10.229.186.142 with SMTP id cs14mr1487818qcb.10.1277589013457; Sat, 26 Jun 2010 14:50:13 -0700 (PDT) Received: by 10.229.80.75 with HTTP; Sat, 26 Jun 2010 14:50:13 -0700 (PDT) In-Reply-To: <201006262144.o5QLi5tF076622@svn.freebsd.org> References: <201006262144.o5QLi5tF076622@svn.freebsd.org> Date: Sat, 26 Jun 2010 14:50:13 -0700 Message-ID: From: Garrett Cooper To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r209542 - head/lib/libc/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2010 21:50:14 -0000 On Sat, Jun 26, 2010 at 2:44 PM, Pawel Jakub Dawidek wrot= e: > Author: pjd > Date: Sat Jun 26 21:44:05 2010 > New Revision: 209542 > URL: http://svn.freebsd.org/changeset/base/209542 > > Log: > =A0Just like in case of setgroups(2), for getgroups(2) also advice includ= ing > =A0sys/param.h instead of sys/types.h so we get NGROUPS_MAX and NGROUPS > =A0definitions. > > Modified: > =A0head/lib/libc/sys/getgroups.2 > > Modified: head/lib/libc/sys/getgroups.2 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/lib/libc/sys/getgroups.2 =A0 =A0 =A0 Sat Jun 26 20:59:10 2010 = =A0 =A0 =A0 =A0(r209541) > +++ head/lib/libc/sys/getgroups.2 =A0 =A0 =A0 Sat Jun 26 21:44:05 2010 = =A0 =A0 =A0 =A0(r209542) > @@ -37,7 +37,7 @@ > =A0.Sh LIBRARY > =A0.Lb libc > =A0.Sh SYNOPSIS > -.In sys/types.h > +.In sys/param.h > =A0.In unistd.h > =A0.Ft int > =A0.Fn getgroups "int gidsetlen" "gid_t *gidset" Hmmm... looks like our copy of getgroups(2) is not POSIX compliant then :/ : http://www.opengroup.org/onlinepubs/000095399/functions/getgroups= .html . Why not just use sysconf like the POSIX page suggests (which is portable)? Thanks, -Garrett