From 6f1f48e93fb6e09d68ca75e315f3cbd71e42d540 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 16 Jul 2017 16:07:32 +0000 Subject: git unignore setgroups.h ... --- src/include/skalibs/setgroups.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/include/skalibs/setgroups.h (limited to 'src') diff --git a/src/include/skalibs/setgroups.h b/src/include/skalibs/setgroups.h new file mode 100644 index 0000000..fab0614 --- /dev/null +++ b/src/include/skalibs/setgroups.h @@ -0,0 +1,24 @@ +/* ISC license. */ + +#ifndef SKALIBS_SETGROUPS_H +#define SKALIBS_SETGROUPS_H + +#include + +#ifdef SKALIBS_HASSETGROUPS + +#include + +extern int setgroups_with_egid (size_t, gid_t const *) ; +extern int skalibs_setgroups (size_t, gid_t const *) ; + +#else + +#include +#define setgroups(n, tab) (errno = ENOSYS, -1) +#define setgroups_with_egid(n, tab) (errno = ENOSYS, -1) +#define skalibs_setgroups(n, tab) (errno = ENOSYS, -1) + +#endif + +#endif -- cgit v1.2.3