Hoist PATH_MAX into src/bsd it's common to all the BSDs

This commit is contained in:
John Barker 2015-12-15 09:06:16 -05:00
parent 93d6e987ea
commit 761f7bd5cd
4 changed files with 2 additions and 6 deletions

View File

@ -571,8 +571,6 @@ pub const SO_DONTTRUNC: ::c_int = 0x2000;
pub const SO_WANTMORE: ::c_int = 0x4000;
pub const SO_WANTOOBFLAG: ::c_int = 0x8000;
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;

View File

@ -477,8 +477,6 @@ 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;

View File

@ -79,6 +79,8 @@ s! {
pub const FIOCLEX: ::c_ulong = 0x20006601;
pub const FIONBIO: ::c_ulong = 0x8004667e;
pub const PATH_MAX: ::c_int = 1024;
pub const SA_ONSTACK: ::c_int = 0x0001;
pub const SA_SIGINFO: ::c_int = 0x0040;
pub const SA_RESTART: ::c_int = 0x0002;

View File

@ -324,8 +324,6 @@ pub const CTL_KERN : ::c_int = 1;
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_NGROUPS_MAX : ::c_int = 4;