1 2 3 4 5 6 7 8
#define _GNU_SOURCE #include <sched.h> #include "syscall.h" int unshare(int flags) { return syscall(SYS_unshare, flags); }