From 50da5c264fd84ea2de8cf75bf39ceb81a4eecd71 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 29 Apr 2012 19:54:03 -0400 Subject: add linux-specific unshare syscall wrapper --- src/linux/unshare.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/linux/unshare.c (limited to 'src/linux') 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 +#include "syscall.h" + +int unshare(int flags) +{ + return syscall(SYS_unshare, flags); +} -- cgit v1.2.1