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