Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 23 lines (17 sloc) 0.965 kb
8c4c7e9 mgetgroups: new module, taken from coreutils
Eric Blake authored
1 /* Get a list of all group IDs associated with a specified user ID.
d60f3b0 maint: update almost all copyright ranges to include 2011
Jim Meyering authored
2 Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
8c4c7e9 mgetgroups: new module, taken from coreutils
Eric Blake authored
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
16
17 #include <sys/types.h>
18
19 int mgetgroups (const char *username, gid_t gid, gid_t **groups);
83b1d64 hash, mgetgroups: drop xalloc dependency
Eric Blake authored
20 #if GNULIB_XGETGROUPS
3e035a5 mgetgroups: add xgetgroups, and avoid ENOSYS failures
Eric Blake authored
21 int xgetgroups (const char *username, gid_t gid, gid_t **groups);
83b1d64 hash, mgetgroups: drop xalloc dependency
Eric Blake authored
22 #endif
Something went wrong with that request. Please try again.