summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/unshare.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/unshare.c')
-rw-r--r--libc/sysdeps/linux/common/unshare.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/unshare.c b/libc/sysdeps/linux/common/unshare.c
new file mode 100644
index 000000000..624ca12e3
--- /dev/null
+++ b/libc/sysdeps/linux/common/unshare.c
@@ -0,0 +1,15 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * unshare() for uClibc
+ *
+ * Copyright (C) 2011 Henning Heinold <heinold@inf.fu-berlin.de>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <sys/syscall.h>
+#include <sched.h>
+
+#if defined __NR_unshare
+_syscall1(int, unshare, int, flags)
+#endif