diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-06-16 19:50:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-06-16 19:50:36 +0000 |
commit | 8fee1bb0b2373357ded21bd69dc9e33ad619493c (patch) | |
tree | 3d0b09f7d9a3c472de0ecc5f4768cd3135f6769e /grp/grp.h | |
parent | cc765c2a2e1ab7702080b7fd2f0a7b21d8ac60ff (diff) | |
download | glibc-8fee1bb0b2373357ded21bd69dc9e33ad619493c.tar glibc-8fee1bb0b2373357ded21bd69dc9e33ad619493c.tar.gz glibc-8fee1bb0b2373357ded21bd69dc9e33ad619493c.tar.bz2 glibc-8fee1bb0b2373357ded21bd69dc9e33ad619493c.zip |
Update.
2001-06-07 Mark Kettenis <kettenis@gnu.org>
* grp/initgroups.c (initgroups): Factor out re-usable code into...
(internal_getgrouplist): ... new function.
(getgrouplist): New function.
* grp/grp.h (getgrouplist): New prototype.
* grp/Versions [2.2.4]: Add getgrouplist.
2001-06-16 Ulrich Drepper <drepper@redhat.com>
* inet/netinet/ip6.h: Fix comments in ip6_hdr.
Patch by Pekka Savola <pekkas@netcore.fi>.
Diffstat (limited to 'grp/grp.h')
-rw-r--r-- | grp/grp.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,95,96,97,98,99,2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,92,95,96,97,98,99,2000,01 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -136,6 +136,12 @@ extern int fgetgrent_r (FILE *__restrict __stream, /* Set the group set for the current user to GROUPS (N of them). */ extern int setgroups (size_t __n, __const __gid_t *__groups) __THROW; +/* Store at most *NGROUPS members of the group set for USER into + *GROUPS. Also include GROUP. The actual number of groups found is + returned in *NGROUPS. Return -1 if the if *NGROUPS is too small. */ +extern int getgrouplist (__const char *__user, __gid_t __group, + __gid_t *__groups, int *__ngroups) __THROW; + /* Initialize the group set for the current user by reading the group database and using all groups of which USER is a member. Also include GROUP. */ |