From 93d6e987ea6dab692264459d00964c5b42ce10dd Mon Sep 17 00:00:00 2001 From: John Barker Date: Mon, 14 Dec 2015 22:49:23 -0500 Subject: [PATCH] Add PATH_MAX for FreeBSDlike, defined in /usr/src/sys/sys/syslimits.h --- src/unix/bsd/freebsdlike/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index ebcdee7c..0398436e 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -477,6 +477,8 @@ pub const MAP_NOCORE: ::c_int = 0x020000; pub const IPPROTO_RAW: ::c_int = 255; +pub const PATH_MAX: ::c_int = 1024; + pub const _SC_ARG_MAX: ::c_int = 1; pub const _SC_CHILD_MAX: ::c_int = 2; pub const _SC_CLK_TCK: ::c_int = 3;