From 633445be1a9be37ae727c044417f5607706cf4ae Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 26 Jun 2018 00:25:28 +0000 Subject: Initial commit --- src/include/grp.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/include/grp.h (limited to 'src/include/grp.h') 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 + +#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 -- cgit v1.3.1