/* ISC license. */ /* This file is part of the nsss package. See https://skarnet.org/software/nsss/ */ #ifndef GRP_H #define GRP_H #include #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #include extern int getgrouplist (char const *, gid_t, gid_t *, int *) ; extern int setgroups (size_t, gid_t const *) ; extern int initgroups (char const *, gid_t) ; #endif #ifdef _GNU_SOURCE #include extern struct group *fgetgrent (FILE *) ; extern int fgetgrent_r (FILE *, struct group *, char *, size_t, struct group **) ; extern int putgrent (struct group const *, FILE *) ; #endif #endif