diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-06-26 00:25:28 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-06-26 00:25:28 +0000 |
commit | 633445be1a9be37ae727c044417f5607706cf4ae (patch) | |
tree | 3c037459f5249e5c18ee5b9e41802c5964364f95 /src/include/grp.h | |
download | nsss-633445be1a9be37ae727c044417f5607706cf4ae.tar.gz nsss-633445be1a9be37ae727c044417f5607706cf4ae.tar.xz nsss-633445be1a9be37ae727c044417f5607706cf4ae.zip |
Initial commit
Diffstat (limited to 'src/include/grp.h')
-rw-r--r-- | src/include/grp.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/grp.h b/src/include/grp.h new file mode 100644 index 0000000..4516a19 --- /dev/null +++ b/src/include/grp.h @@ -0,0 +1,27 @@ +/* ISC license. */ + +/* + This file is part of the nsss package. + See https://skarnet.org/software/nsss/ +*/ + +#ifndef GRP_H +#define GRP_H + +#include <nsss/grp.h> + +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#include <sys/types.h> +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 <stdio.h> +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 |