about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-28 18:40:35 +0000
committerbors <bors@rust-lang.org>2015-09-28 18:40:35 +0000
commit3a71c423c7472063bf82ec5f39b490bb99a86e66 (patch)
tree5ef8b31962e69d519c506757457fe6708ae7e0b1
parent9e11845d77264c52d1066c0adca184dd0a418ac1 (diff)
parentdd91f3e431f277dc88999fcc68f5c49826089935 (diff)
downloadrust-3a71c423c7472063bf82ec5f39b490bb99a86e66.tar.gz
rust-3a71c423c7472063bf82ec5f39b490bb99a86e66.zip
Auto merge of #28691 - utkarshkukreti:add-path_max-to-liblibc, r=alexcrichton
PATH_MAX is defined for OSX and various BSDs but not Linux right now.

[Source for the value.](https://github.com/torvalds/linux/blob/9ffecb10283508260936b96022d4ee43a7798b4c/include/uapi/linux/limits.h#L12)
-rw-r--r--src/liblibc/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs
index f75851506c2..f310cd4152f 100644
--- a/src/liblibc/lib.rs
+++ b/src/liblibc/lib.rs
@@ -3901,6 +3901,8 @@ pub mod consts {
             pub const MAP_POPULATE : c_int = 0x08000;
             pub const MAP_NONBLOCK : c_int = 0x010000;
             pub const MAP_STACK : c_int = 0x020000;
+
+            pub const PATH_MAX: c_int = 4096;
         }
         #[cfg(any(target_arch = "mips",
                   target_arch = "mipsel"))]
@@ -3928,6 +3930,8 @@ pub mod consts {
             pub const MAP_POPULATE : c_int = 0x010000;
             pub const MAP_NONBLOCK : c_int = 0x020000;
             pub const MAP_STACK : c_int = 0x040000;
+
+            pub const PATH_MAX: c_int = 4096;
         }
         #[cfg(target_os = "linux")]
         pub mod sysconf {