From dd91f3e431f277dc88999fcc68f5c49826089935 Mon Sep 17 00:00:00 2001 From: Utkarsh Kukreti Date: Sun, 27 Sep 2015 21:06:54 +0530 Subject: [PATCH] Add PATH_MAX to liblibc's Linux bindings. --- src/liblibc/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index f75851506c27..f310cd4152fd 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 {