about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUtkarsh Kukreti <utkarshkukreti@gmail.com>2015-09-27 21:06:54 +0530
committerUtkarsh Kukreti <utkarshkukreti@gmail.com>2015-09-27 21:06:54 +0530
commitdd91f3e431f277dc88999fcc68f5c49826089935 (patch)
tree62a9b51726d94127db44e499bda67e9e84790d89
parent219eca11b044de3644b3e9101124513c1a842b09 (diff)
downloadrust-dd91f3e431f277dc88999fcc68f5c49826089935.tar.gz
rust-dd91f3e431f277dc88999fcc68f5c49826089935.zip
Add PATH_MAX to liblibc's Linux bindings.
-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 {