| #include <bits/alltypes.h> |
| struct group *getgrgid(gid_t); |
| struct group *getgrnam(const char *); |
| int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **); |
| int getgrnam_r(const char *, struct group *, char *, size_t, struct group **); |
| #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| struct group *getgrent(void); |
| struct group *fgetgrent(FILE *); |
| int putgrent(const struct group *, FILE *); |
| #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| int getgrouplist(const char *, gid_t, gid_t *, int *); |
| int setgroups(size_t, const gid_t *); |
| int initgroups(const char *, gid_t); |