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:
commit
3a71c423c7
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue