From 5d5c77daae197b00f89ad1517ffb5a7a01a78cff Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 17 Feb 2015 23:41:47 +0100 Subject: libc: add setns() Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/setns.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libc/sysdeps/linux/common/setns.c (limited to 'libc/sysdeps/linux/common/setns.c') 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 + * + * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. + */ + +#include +#include + +#ifdef __NR_setns +_syscall2(int, setns, int, fd, int, nstype) +#endif -- cgit v1.2.3