svn commit: r209542 - head/lib/libc/sys

Garrett Cooper yanefbsd at gmail.com
Sat Jun 26 21:50:14 UTC 2010


On Sat, Jun 26, 2010 at 2:44 PM, Pawel Jakub Dawidek <pjd at freebsd.org> wrote:
> Author: pjd
> Date: Sat Jun 26 21:44:05 2010
> New Revision: 209542
> URL: http://svn.freebsd.org/changeset/base/209542
>
> Log:
>  Just like in case of setgroups(2), for getgroups(2) also advice including
>  sys/param.h instead of sys/types.h so we get NGROUPS_MAX and NGROUPS
>  definitions.
>
> Modified:
>  head/lib/libc/sys/getgroups.2
>
> Modified: head/lib/libc/sys/getgroups.2
> ==============================================================================
> --- head/lib/libc/sys/getgroups.2       Sat Jun 26 20:59:10 2010        (r209541)
> +++ head/lib/libc/sys/getgroups.2       Sat Jun 26 21:44:05 2010        (r209542)
> @@ -37,7 +37,7 @@
>  .Sh LIBRARY
>  .Lb libc
>  .Sh SYNOPSIS
> -.In sys/types.h
> +.In sys/param.h
>  .In unistd.h
>  .Ft int
>  .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


More information about the svn-src-head mailing list