summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/setgroups.2
Commit message (Collapse)AuthorAgeFilesLines
* In preparation for raising NGROUPS and NGROUPS_MAX, change basebrooks2009-06-191-4/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* Make it clearer that privilege is needed to reduce as well asfanf2008-06-161-1/+1
| | | | increase group membership.
* 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.
* Documented missing EINVAL errno valuedds2003-11-191-0/+6
| | | | | | | | kern_prot.c: if (ngrp > NGROUPS) return (EINVAL); MFC after: 2 weeks
* mdoc(7): Properly mark C headers.ru2003-09-101-1/+1
|
* mdoc(7) police: "The .Fa argument.".ru2002-12-191-1/+2
|
* mdoc(7) police: Tidy up the syscall language.ru2002-12-181-3/+5
| | | | | | | | | | 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.
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-2/+2
|
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.yar2001-08-091-3/+1
| | | | Reviewed by: ru
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-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
* Correctly use .Fn instead of .Nm to reference function namesmpp1996-08-221-1/+1
| | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+83
OpenPOWER on IntegriCloud