diff options
author | Jana Radhakrishnan <mrjana@docker.com> | 2016-01-15 22:26:36 -0800 |
---|---|---|
committer | Jana Radhakrishnan <mrjana@docker.com> | 2016-01-15 22:26:36 -0800 |
commit | 3bb17681a8940955b930b5f5e82a51edd8e09f18 (patch) | |
tree | 1478dfcbb15873cfd5bdbd0764e0c115be41ada3 | |
parent | 9aa6600bd8f4e4f370a7d2fb76c4b3efc669cadf (diff) | |
download | rust-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.rs | 1 |
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! { |