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.](9ffecb1028/include/uapi/linux/limits.h (L12))
This commit is contained in:
bors 2015-09-28 18:40:35 +00:00
commit 3a71c423c7

View file

@ -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 {