提交 50da5c26 编写于 作者: R Rich Felker

add linux-specific unshare syscall wrapper

上级 8b711219
......@@ -56,6 +56,7 @@ int sched_yield(void);
#define CLONE_NEWNET 0x40000000
#define CLONE_IO 0x80000000
int clone (int (*)(void *), void *, int, void *, ...);
int unshare(int);
#endif
#ifdef __cplusplus
......
#define _GNU_SOURCE
#include <sched.h>
#include "syscall.h"
int unshare(int flags)
{
return syscall(SYS_unshare, flags);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册