Skip to content

Commit 3a71c42

Browse files
committed
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)
2 parents 9e11845 + dd91f3e commit 3a71c42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/liblibc/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -3901,6 +3901,8 @@ pub mod consts {
39013901
pub const MAP_POPULATE : c_int = 0x08000;
39023902
pub const MAP_NONBLOCK : c_int = 0x010000;
39033903
pub const MAP_STACK : c_int = 0x020000;
3904+
3905+
pub const PATH_MAX: c_int = 4096;
39043906
}
39053907
#[cfg(any(target_arch = "mips",
39063908
target_arch = "mipsel"))]
@@ -3928,6 +3930,8 @@ pub mod consts {
39283930
pub const MAP_POPULATE : c_int = 0x010000;
39293931
pub const MAP_NONBLOCK : c_int = 0x020000;
39303932
pub const MAP_STACK : c_int = 0x040000;
3933+
3934+
pub const PATH_MAX: c_int = 4096;
39313935
}
39323936
#[cfg(target_os = "linux")]
39333937
pub mod sysconf {

0 commit comments

Comments
 (0)