]> git.lizzy.rs Git - rust.git/commitdiff
Add PATH_MAX to liblibc's Linux bindings.
authorUtkarsh Kukreti <utkarshkukreti@gmail.com>
Sun, 27 Sep 2015 15:36:54 +0000 (21:06 +0530)
committerUtkarsh Kukreti <utkarshkukreti@gmail.com>
Sun, 27 Sep 2015 15:36:54 +0000 (21:06 +0530)
src/liblibc/lib.rs

index f75851506c279959b4a19a50ba3698e4bffbbbfd..f310cd4152fddbe73ef9b82708b67241060c5824 100644 (file)
@@ -3901,6 +3901,8 @@ pub mod extra {
             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 extra {
             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 {