aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/getgroups.2
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit b2c76c41be32)
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* getgroups(2): Remove mention of <sys/param.h> and refer to sysconf(3).Jilles Tjoelker2011-01-211-3/+9
| | | | | | | | | | | | Because {NGROUPS_MAX} may become variable, its value should be obtained using sysconf(3). If a #define is used anyway, it should be obtained by including <limits.h> as that is in POSIX like getgroups(2) itself is. <sys/param.h> is not in POSIX. MFC after: 1 week Notes: svn path=/head/; revision=217704
* Just like in case of setgroups(2), for getgroups(2) also advice includingPawel Jakub Dawidek2010-06-261-1/+1
| | | | | | | | sys/param.h instead of sys/types.h so we get NGROUPS_MAX and NGROUPS definitions. Notes: svn path=/head/; revision=209542
* In preparation for raising NGROUPS and NGROUPS_MAX, change baseBrooks Davis2009-06-191-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=194494
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+2
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-3/+7
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=108028
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Backed out most of rev.1.4. I didn't submit it; I only submitted aBruce Evans1999-03-051-7/+8
| | | | | | | | | | | | request for it something like it. It was poorly worded and too far from both POSIX wording and normal (mal)practice by referring to sysconf(_SC_NGROUPS_MAX) instead of {NGROUPS_MAX} or NGROUPS. POSIX.1 uses curly braces to mark up "symbolic constants or limits [that may be] defined in certain headers". Since we don't document this markup, don't use it. Just use NGROUPS_MAX. Notes: svn path=/head/; revision=44478
* Dump the constant NGROUPS in favor of the POSIX way:Alexander Langer1998-01-131-9/+6
| | | | | | | | | sysconf(_SC_NGROUPS_MAX). Submitted by: bde Notes: svn path=/head/; revision=32489
* Replace sys/param.h with sys/types.h as per POSIX.Alexander Langer1998-01-111-1/+9
| | | | | | | | | Document the special case of gidsetlen == 0. Partially obtained from: OpenBSD Notes: svn path=/head/; revision=32448
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-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. Notes: svn path=/head/; revision=17782
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+90
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573