Date: Sat, 26 Jun 2010 14:50:13 -0700 From: Garrett Cooper <yanefbsd@gmail.com> To: Pawel Jakub Dawidek <pjd@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r209542 - head/lib/libc/sys Message-ID: <AANLkTinGp8w6hsBGkDTSwdDLKrz43BGBUbH0Hd4Z6ox3@mail.gmail.com> In-Reply-To: <201006262144.o5QLi5tF076622@svn.freebsd.org> References: <201006262144.o5QLi5tF076622@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 26, 2010 at 2:44 PM, Pawel Jakub Dawidek <pjd@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinGp8w6hsBGkDTSwdDLKrz43BGBUbH0Hd4Z6ox3>