aboutsummaryrefslogtreecommitdiffstats
path: root/man2/getgroups.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-07-08 12:11:40 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-07-08 12:11:40 +0000
commitcc4615cc788aa749f34483abd33ba2b4a31d30f0 (patch)
tree97070128f611af532551a19bb8062597b22cabd8 /man2/getgroups.2
parent86c256953d62ba083f7ef6adcc5b4063f0b51d2b (diff)
downloadman-pages-cc4615cc788aa749f34483abd33ba2b4a31d30f0.tar.gz
Added/updated glibc feature test macro requirements
Diffstat (limited to 'man2/getgroups.2')
-rw-r--r--man2/getgroups.216
1 files changed, 9 insertions, 7 deletions
diff --git a/man2/getgroups.2 b/man2/getgroups.2
index 6860b3600b..1dfc8f9cbc 100644
--- a/man2/getgroups.2
+++ b/man2/getgroups.2
@@ -26,7 +26,7 @@
.\" Modified, 27 May 2004, Michael Kerrisk <mtk-manpages@gmx.net>
.\" Added notes on capability requirements
.\"
-.TH GETGROUPS 2 2004-05-27 "Linux" "Linux Programmer's Manual"
+.TH GETGROUPS 2 2007-07-26 "Linux" "Linux Programmer's Manual"
.SH NAME
getgroups, setgroups \- get/set list of supplementary group IDs
.SH SYNOPSIS
@@ -39,6 +39,14 @@ getgroups, setgroups \- get/set list of supplementary group IDs
.B #include <grp.h>
.sp
.BI "int setgroups(size_t " size ", const gid_t *" list );
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR setgroups ():
+_BSD_SOURCE
.SH DESCRIPTION
.TP
.BR getgroups ()
@@ -124,12 +132,6 @@ The maximum number of supplementary group IDs can be found using
The maximal return value of
.BR getgroups ()
cannot be larger than one more than the value obtained this way.
-.LP
-The prototype for
-.BR setgroups ()
-is only available if
-.B _BSD_SOURCE
-is defined.
.SH "SEE ALSO"
.BR getgid (2),
.BR setgid (2),