summaryrefslogtreecommitdiff
path: root/src/sysdeps
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-08-23 08:52:28 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-08-23 08:52:28 +0000
commit3c8d5a7ca791a847112633c5778badfeb14bf4e8 (patch)
tree1c639c9814f8e78bc1e812df267612937265f775 /src/sysdeps
parent3af45453ce8370a6a9ba974c8150cb492f1d4b22 (diff)
downloadskalibs-3c8d5a7ca791a847112633c5778badfeb14bf4e8.tar.xz
Change xexecvep exit codes ; add namespaces sysdep
Diffstat (limited to 'src/sysdeps')
-rw-r--r--src/sysdeps/trynamespaces.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sysdeps/trynamespaces.c b/src/sysdeps/trynamespaces.c
new file mode 100644
index 0000000..01894be
--- /dev/null
+++ b/src/sysdeps/trynamespaces.c
@@ -0,0 +1,12 @@
+/* ISC license. */
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
+#include <sched.h>
+
+int main (void)
+{
+ return unshare(0) ;
+}