<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/sys/setgroups.2, branch release/8.2.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Copy releng/8.2 to release/8.2.0 for 8.2-RELEASE.</title>
<updated>2011-02-16T16:18:46+00:00</updated>
<author>
<name>Ken Smith</name>
<email>kensmith@FreeBSD.org</email>
</author>
<published>2011-02-16T16:18:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dec99dafe5763ba1db6950342aa80a634169c083'/>
<id>dec99dafe5763ba1db6950342aa80a634169c083</id>
<content type='text'>
Approved by:	re (implicit)

This commit was manufactured to restore the state of the 8.2-RELEASE image.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Approved by:	re (implicit)

This commit was manufactured to restore the state of the 8.2-RELEASE image.
</pre>
</div>
</content>
</entry>
<entry>
<title>In preparation for raising NGROUPS and NGROUPS_MAX, change base</title>
<updated>2009-06-19T15:58:24+00:00</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2009-06-19T15:58:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=54404cfb13d40e474f72d3c75de1f4db3417df64'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Make it clearer that privilege is needed to reduce as well as</title>
<updated>2008-06-16T14:50:21+00:00</updated>
<author>
<name>Tony Finch</name>
<email>fanf@FreeBSD.org</email>
</author>
<published>2008-06-16T14:50:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0cf1d3bf739a99f23bd8142a0d321fff6a112de4'/>
<id>0cf1d3bf739a99f23bd8142a0d321fff6a112de4</id>
<content type='text'>
increase group membership.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
increase group membership.
</pre>
</div>
</content>
</entry>
<entry>
<title>Per Regents of the University of Calfornia letter, remove advertising</title>
<updated>2007-01-09T00:28:16+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-09T00:28:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c879ae3536e6d92b8d96c8965c5b05fcb9541520'/>
<id>c879ae3536e6d92b8d96c8965c5b05fcb9541520</id>
<content type='text'>
clause.

# If I've done so improperly on a file, please let me know.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
clause.

# If I've done so improperly on a file, please let me know.
</pre>
</div>
</content>
</entry>
<entry>
<title>Documented missing EINVAL errno value</title>
<updated>2003-11-19T13:05:50+00:00</updated>
<author>
<name>Diomidis Spinellis</name>
<email>dds@FreeBSD.org</email>
</author>
<published>2003-11-19T13:05:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=988d4dc3152d9468791190638757b7571114152f'/>
<id>988d4dc3152d9468791190638757b7571114152f</id>
<content type='text'>
kern_prot.c:
if (ngrp &gt; NGROUPS)
	return (EINVAL);

MFC after:	2 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
kern_prot.c:
if (ngrp &gt; NGROUPS)
	return (EINVAL);

MFC after:	2 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>mdoc(7): Properly mark C headers.</title>
<updated>2003-09-10T19:24:35+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2003-09-10T19:24:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=743d5d518c25e41a3e9026d400fa625efc306c82'/>
<id>743d5d518c25e41a3e9026d400fa625efc306c82</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>mdoc(7) police: "The .Fa argument.".</title>
<updated>2002-12-19T09:40:28+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-12-19T09:40:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2efeeba554cbd7bdee9cfe17641c8bd335c7972f'/>
<id>2efeeba554cbd7bdee9cfe17641c8bd335c7972f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>mdoc(7) police: Tidy up the syscall language.</title>
<updated>2002-12-18T09:22:32+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-12-18T09:22:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3'/>
<id>2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3</id>
<content type='text'>
Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.
</pre>
</div>
</content>
</entry>
<entry>
<title>mdoc(7) police: Use the new .In macro for #include statements.</title>
<updated>2001-10-01T16:09:29+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-10-01T16:09:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=32eef9aeb1f39a1623cea55da147c89abbd5b9a5'/>
<id>32eef9aeb1f39a1623cea55da147c89abbd5b9a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.</title>
<updated>2001-08-09T13:32:13+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2001-08-09T13:32:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b1250632c5fc76d3b403ef995ee04bf5db2b8493'/>
<id>b1250632c5fc76d3b403ef995ee04bf5db2b8493</id>
<content type='text'>
Reviewed by:	ru
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	ru
</pre>
</div>
</content>
</entry>
</feed>
