summaryrefslogtreecommitdiff
path: root/src/linux/unshare.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-29 19:54:03 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-29 19:54:03 -0400
commit50da5c264fd84ea2de8cf75bf39ceb81a4eecd71 (patch)
treec9e335639f79c933def5c64e3b935ec17be5c41e /src/linux/unshare.c
parent8b7112191020f1e44386a6311e0cb62ee4cea2ef (diff)
downloadmusl-50da5c264fd84ea2de8cf75bf39ceb81a4eecd71.tar.gz
musl-50da5c264fd84ea2de8cf75bf39ceb81a4eecd71.tar.bz2
musl-50da5c264fd84ea2de8cf75bf39ceb81a4eecd71.tar.xz
musl-50da5c264fd84ea2de8cf75bf39ceb81a4eecd71.zip
add linux-specific unshare syscall wrapper
Diffstat (limited to 'src/linux/unshare.c')
-rw-r--r--src/linux/unshare.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/unshare.c b/src/linux/unshare.c
new file mode 100644
index 00000000..3861db3b
--- /dev/null
+++ b/src/linux/unshare.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <sched.h>
+#include "syscall.h"
+
+int unshare(int flags)
+{
+ return syscall(SYS_unshare, flags);
+}