Skip site navigation (1)Skip section navigation (2)
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> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinGp8w6hsBGkDTSwdDLKrz43BGBUbH0Hd4Z6ox3>