mgetgroups: new module, taken from coreutils
authorEric Blake <ebb9@byu.net>
Thu, 12 Nov 2009 18:31:52 +0000 (11:31 -0700)
committerEric Blake <ebb9@byu.net>
Fri, 13 Nov 2009 14:42:28 +0000 (07:42 -0700)
commit8c4c7e9f211d2d5ed1099ca21b049f6ed567e678
tree9af85a54faa6a9737879ea21a469719559e05bac
parent6e4b15b5ee28b52b4a03c74fe8a9ac9bc8a976ea
mgetgroups: new module, taken from coreutils

Wrapper function that makes using getgroups/getugroups easier to use.
As part of the move from coreutils, convert GETGROUPS_T to gid_t,
and allow mgetgroups(NULL,getegid(),&list) as a way to ensure that
the effective gid is in the list.

* modules/mgetgroups: New file.
* lib/mgetgroups.h: Likewise.
* lib/mgetgroups.c (mgetgroups): Likewise.
* m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
* MODULES.html.sh (Users and groups): Mention it.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
MODULES.html.sh
lib/mgetgroups.c [new file with mode: 0644]
lib/mgetgroups.h [new file with mode: 0644]
m4/mgetgroups.m4 [new file with mode: 0644]
modules/mgetgroups [new file with mode: 0644]