diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-02-17 23:41:47 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-02-17 23:42:34 +0100 |
commit | 5d5c77daae197b00f89ad1517ffb5a7a01a78cff (patch) | |
tree | f3e610ec0881ff3fad66d0ae4151146ab5f31950 /libc/sysdeps/linux/common/setns.c | |
parent | 9fc6da20daeac3f06116630764c36fc4943b1f3a (diff) |
libc: add setns()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/setns.c')
-rw-r--r-- | libc/sysdeps/linux/common/setns.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/setns.c b/libc/sysdeps/linux/common/setns.c new file mode 100644 index 000000000..a697720b9 --- /dev/null +++ b/libc/sysdeps/linux/common/setns.c @@ -0,0 +1,15 @@ +/* vi: set sw=4 ts=4: */ +/* + * setns() for uClibc + * + * Copyright (C) 2015 Bernhard Reutner-Fischer <uclibc@uclibc.org> + * + * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. + */ + +#include <sys/syscall.h> +#include <sched.h> + +#ifdef __NR_setns +_syscall2(int, setns, int, fd, int, nstype) +#endif |