summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 16:07:32 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-07-16 16:07:32 +0000
commit6f1f48e93fb6e09d68ca75e315f3cbd71e42d540 (patch)
tree99908c70f91f7e4c92845e808eb1f6fb02667081 /src
parent42c13f4acdd1e9f6a6cbdd88cb76006768d7ff6a (diff)
downloadskalibs-6f1f48e93fb6e09d68ca75e315f3cbd71e42d540.tar.xz
git unignore setgroups.h ...
Diffstat (limited to 'src')
-rw-r--r--src/include/skalibs/setgroups.h24
1 files changed, 24 insertions, 0 deletions
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 <skalibs/sysdeps.h>
+
+#ifdef SKALIBS_HASSETGROUPS
+
+#include <unistd.h>
+
+extern int setgroups_with_egid (size_t, gid_t const *) ;
+extern int skalibs_setgroups (size_t, gid_t const *) ;
+
+#else
+
+#include <errno.h>
+#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