<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/gen/initgroups.3, branch release/10.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F10.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F10.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2009-06-19T15:58:24Z</updated>
<entry>
<title>In preparation for raising NGROUPS and NGROUPS_MAX, change base</title>
<updated>2009-06-19T15:58:24Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2009-06-19T15:58:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=54404cfb13d40e474f72d3c75de1f4db3417df64'/>
<id>urn:sha1:54404cfb13d40e474f72d3c75de1f4db3417df64</id>
<content type='text'>
system callers of getgroups(), getgrouplist(), and setgroups() to
allocate buffers dynamically.  Specifically, allocate a buffer of size
sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow).

This (or similar gymnastics) is required for the code to actually follow
the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime
and where getgroups may return {NGROUPS_MAX}+1 results on systems like
FreeBSD which include the primary group.

In id(1), don't pointlessly add the primary group to the list of all
groups, it is always the first result from getgroups().  In principle
the old code was more portable, but this was only done in one of the two
places where getgroups() was called to the overall effect was pointless.

Document the actual POSIX requirements in the getgroups(2) and
setgroups(2) manpages.  We do not yet support a dynamic NGROUPS, but we
may in the future.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Per Regents of the University of Calfornia letter, remove advertising</title>
<updated>2007-01-09T00:28:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-09T00:28:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c879ae3536e6d92b8d96c8965c5b05fcb9541520'/>
<id>urn:sha1:c879ae3536e6d92b8d96c8965c5b05fcb9541520</id>
<content type='text'>
clause.

# If I've done so improperly on a file, please let me know.
</content>
</entry>
<entry>
<title>Use the proper type (gid_t) for (group)-&gt;gr_gid to be orthogonal</title>
<updated>2002-01-22T17:32:53Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2002-01-22T17:32:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5567b258ebfb1a00cb9d07371894eae183e09a25'/>
<id>urn:sha1:5567b258ebfb1a00cb9d07371894eae183e09a25</id>
<content type='text'>
with uid_t usage and (user)-&gt;pw_uid.

PR:		3242
</content>
</entry>
<entry>
<title>Do not write warning messages on stderr - a caller is expected to check</title>
<updated>2001-11-28T10:55:02Z</updated>
<author>
<name>Anton Berezin</name>
<email>tobez@FreeBSD.org</email>
</author>
<published>2001-11-28T10:55:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7d3346ca1f857d6078f948e03b83abae618820da'/>
<id>urn:sha1:7d3346ca1f857d6078f948e03b83abae618820da</id>
<content type='text'>
the return code and errno instead.  Those warnings did not do any good
for daemonized users of initgroups(3), and confused cvs clients that
communicated with non-root cvs pserver.

The committed fix differs from the one suggested in the PR, and was
submitted by ru.

PR:		15421
Approved by:	markm
Discussed on:	-stable, -current at various times
</content>
</entry>
<entry>
<title>mdoc(7) police: Use the new .In macro for #include statements.</title>
<updated>2001-10-01T16:09:29Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-10-01T16:09:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=32eef9aeb1f39a1623cea55da147c89abbd5b9a5'/>
<id>urn:sha1:32eef9aeb1f39a1623cea55da147c89abbd5b9a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mdoc(7) police: removed HISTORY info from the .Os call.</title>
<updated>2001-07-10T13:41:46Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-07-10T13:41:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a307d598387eeb7d775332066d996ab0dadf7e5f'/>
<id>urn:sha1:a307d598387eeb7d775332066d996ab0dadf7e5f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Whitespace only change: trim trailing whitespace.</title>
<updated>2000-10-30T13:23:19Z</updated>
<author>
<name>Jeroen Ruigrok van der Werven</name>
<email>asmodai@FreeBSD.org</email>
</author>
<published>2000-10-30T13:23:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5714e85318e33999ad2f1ff2a25c260b5796a3f9'/>
<id>urn:sha1:5714e85318e33999ad2f1ff2a25c260b5796a3f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce ".Lb" macro to libc manpages.</title>
<updated>2000-04-21T09:42:15Z</updated>
<author>
<name>Alexey Zelkin</name>
<email>phantom@FreeBSD.org</email>
</author>
<published>2000-04-21T09:42:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=25bb73e063c17cd9048cf60100dbc0ac5177e94a'/>
<id>urn:sha1:25bb73e063c17cd9048cf60100dbc0ac5177e94a</id>
<content type='text'>
More libraries manpages updates following.
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T00:22:10Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T00:22:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f3dea244c40159a41ab22da77a434d7c5b5e85a'/>
<id>urn:sha1:7f3dea244c40159a41ab22da77a434d7c5b5e85a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add $Id$, to make it simpler for members of the translation teams to</title>
<updated>1999-07-12T20:50:10Z</updated>
<author>
<name>Nik Clayton</name>
<email>nik@FreeBSD.org</email>
</author>
<published>1999-07-12T20:50:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fbc400a67a4e6979c5d99fe59d904cf08992a98f'/>
<id>urn:sha1:fbc400a67a4e6979c5d99fe59d904cf08992a98f</id>
<content type='text'>
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
</content>
</entry>
</feed>
