summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/initgroups.3
Commit message (Collapse)AuthorAgeFilesLines
* In preparation for raising NGROUPS and NGROUPS_MAX, change basebrooks2009-06-191-0/+7
| | | | | | | | | | | | | | | | | | | | | | 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
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Use the proper type (gid_t) for (group)->gr_gid to be orthogonalmarkm2002-01-221-1/+1
| | | | | | with uid_t usage and (user)->pw_uid. PR: 3242
* Do not write warning messages on stderr - a caller is expected to checktobez2001-11-281-2/+6
| | | | | | | | | | | | | 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
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Whitespace only change: trim trailing whitespace.asmodai2000-10-301-1/+1
|
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | 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
* Typo police. Part of PR# 3242.mpp1997-04-091-1/+1
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Speeling fix.davidn1996-12-221-1/+1
|
* Update a bunch of man pages to use .Fn insteadmpp1996-08-221-2/+2
| | | | of .Nm when referencing funciton names.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+83
OpenPOWER on IntegriCloud