diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-08-04 20:34:00 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-08-04 20:34:00 +0200 |
commit | 58c2a296d9378f246f58b5abb2ec75d70ae2be78 (patch) | |
tree | 32776d58fd1e027a271b5aaaceca6d8358ea1c43 /gnulib/lib/getugroups.h | |
parent | 97ba16c1e12111c63fd1d38814dcc46eb9affc28 (diff) |
New upstream version 1.1.1
Diffstat (limited to 'gnulib/lib/getugroups.h')
-rw-r--r-- | gnulib/lib/getugroups.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gnulib/lib/getugroups.h b/gnulib/lib/getugroups.h new file mode 100644 index 000000000..b015533a7 --- /dev/null +++ b/gnulib/lib/getugroups.h @@ -0,0 +1,19 @@ +/* Get a list of group IDs associated with a specified user ID. + Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +#include <sys/types.h> +int getugroups (int maxcount, gid_t *grouplist, char const *username, + gid_t gid); |