summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Denhardt <ian@zenhack.net>2016-10-02 15:02:28 -0400
committerIan Denhardt <ian@zenhack.net>2016-10-05 18:51:21 -0400
commit2faafb3815bed6a0b3885d7036d9f1d74c23b331 (patch)
tree3428fd601cf7f297b246c5a441aecacc05cca1fa /src
parent858092c82278d5cdebeafa00fbbbf37da4737d6a (diff)
downloadrust-libc-2faafb3815bed6a0b3885d7036d9f1d74c23b331.tar.gz
Define CLONE_NEWCGROUP
Currently restricted to non-Android Linux. In theory this should work on Android as well (since it's a function of the kernel ABI), but the released version of the NDK doesn't export it, so putting it in `notbsd/mod.rs` makes Travis very unhappy.
Diffstat (limited to 'src')
-rw-r--r--src/unix/notbsd/linux/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index daf5641f03..46ed80712e 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -248,6 +248,8 @@ pub const ABMON_10: ::nl_item = 0x20017;
pub const ABMON_11: ::nl_item = 0x20018;
pub const ABMON_12: ::nl_item = 0x20019;
+pub const CLONE_NEWCGROUP: ::c_int = 0x02000000;
+
pub const MON_1: ::nl_item = 0x2001A;
pub const MON_2: ::nl_item = 0x2001B;
pub const MON_3: ::nl_item = 0x2001C;