summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJana Radhakrishnan <mrjana@docker.com>2016-01-15 22:26:36 -0800
committerJana Radhakrishnan <mrjana@docker.com>2016-01-15 22:26:36 -0800
commit3bb17681a8940955b930b5f5e82a51edd8e09f18 (patch)
tree1478dfcbb15873cfd5bdbd0764e0c115be41ada3
parent9aa6600bd8f4e4f370a7d2fb76c4b3efc669cadf (diff)
downloadrust-libc-3bb17681a8940955b930b5f5e82a51edd8e09f18.tar.gz
Add setns api to linux targets
Adds setns libc api to all linux targets Signed-off-by: Jana Radhakrishnan <mrjana@gmail.com>
-rw-r--r--src/unix/notbsd/linux/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index 3787f4bc71..45186a055f 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -510,6 +510,7 @@ extern {
pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int;
pub fn unshare(flags: ::c_int) -> ::c_int;
pub fn sethostname(name: *const ::c_char, len: ::size_t) -> ::c_int;
+ pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int;
}
cfg_if! {