17 #include <bits/alltypes.h>
27 struct group *getgrgid(gid_t);
28 struct group *getgrnam(const char *);
30 int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
31 int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
33 struct group *getgrent(void);
38 struct group *fgetgrent(FILE *stream);
39 int putgrent(const struct group *, FILE *);
42 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
43 int getgrouplist(const char *, gid_t, gid_t *, int *);
44 int setgroups(size_t, const gid_t *);
45 int initgroups(const char *, gid_t);