getgroups.2: Add NOTES explaining 32-bit system calls added in Linux 2.4

This commit is contained in:
Michael Kerrisk 2010-11-22 08:49:35 +01:00
parent 62eaf126c7
commit de1fb253cc
1 changed files with 11 additions and 1 deletions

View File

@ -28,7 +28,7 @@
.\" 2008-05-03, mtk, expanded and rewrote parts of DESCRIPTION and RETURN
.\" VALUE, made style of page more consistent with man-pages style.
.\"
.TH GETGROUPS 2 2008-06-03 "Linux" "Linux Programmer's Manual"
.TH GETGROUPS 2 2010-11-22 "Linux" "Linux Programmer's Manual"
.SH NAME
getgroups, setgroups \- get/set list of supplementary group IDs
.SH SYNOPSIS
@ -158,6 +158,16 @@ The maximum number of supplementary group IDs can be found using
The maximum return value of
.BR getgroups ()
cannot be larger than one more than this value.
The original Linux
.BR getgroups ()
system call supported only 16-bit group IDs.
Subsequently, Linux 2.4 added
.BR getgroups32 (),
supporting 32-bit IDs.
The glibc
.BR getgroups ()
wrapper function transparently deals with the variation across kernel versions.
.SH "SEE ALSO"
.BR getgid (2),
.BR setgid (2),