Skip to content

Commit 64da6d2

Browse files
committed
Merge pull request rust-lang#98 from j16r/master
Add PATH_MAX for FreeBSDlike, defined in /usr/src/sys/sys/syslimits.h
2 parents a02fdc2 + 761f7bd commit 64da6d2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/unix/bsd/apple/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,6 @@ pub const SO_DONTTRUNC: ::c_int = 0x2000;
571571
pub const SO_WANTMORE: ::c_int = 0x4000;
572572
pub const SO_WANTOOBFLAG: ::c_int = 0x8000;
573573

574-
pub const PATH_MAX: ::c_int = 1024;
575-
576574
pub const _SC_ARG_MAX: ::c_int = 1;
577575
pub const _SC_CHILD_MAX: ::c_int = 2;
578576
pub const _SC_CLK_TCK: ::c_int = 3;

src/unix/bsd/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ s! {
7979
pub const FIOCLEX: ::c_ulong = 0x20006601;
8080
pub const FIONBIO: ::c_ulong = 0x8004667e;
8181

82+
pub const PATH_MAX: ::c_int = 1024;
83+
8284
pub const SA_ONSTACK: ::c_int = 0x0001;
8385
pub const SA_SIGINFO: ::c_int = 0x0040;
8486
pub const SA_RESTART: ::c_int = 0x0002;

src/unix/bsd/openbsdlike/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ pub const CTL_KERN : ::c_int = 1;
324324

325325
pub const IPPROTO_RAW : ::c_int = 255;
326326

327-
pub const PATH_MAX: ::c_int = 1024;
328-
329327
pub const _SC_ARG_MAX : ::c_int = 1;
330328
pub const _SC_CHILD_MAX : ::c_int = 2;
331329
pub const _SC_NGROUPS_MAX : ::c_int = 4;

0 commit comments

Comments
 (0)