Skip to content

Commit dd91f3e

Browse files
Add PATH_MAX to liblibc's Linux bindings.
1 parent 219eca1 commit dd91f3e

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)