Skip to content

Commit 2278a54

Browse files
committed
Merge pull request #217 from gabrielesvelto/master
Add MAP_STACK and MAP_HUGETLB entries to MIPS so that the nix crate can be built
2 parents 08f816f + 30dfc4b commit 2278a54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/notbsd/linux/mips.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ pub const MAP_EXECUTABLE: ::c_int = 0x4000;
303303
pub const MAP_LOCKED: ::c_int = 0x8000;
304304
pub const MAP_POPULATE: ::c_int = 0x10000;
305305
pub const MAP_NONBLOCK: ::c_int = 0x20000;
306+
pub const MAP_STACK: ::c_int = 0x40000;
306307

307308
pub const SOCK_STREAM: ::c_int = 2;
308309
pub const SOCK_DGRAM: ::c_int = 1;
@@ -426,6 +427,8 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19;
426427
pub const PTRACE_GETREGS: ::c_uint = 12;
427428
pub const PTRACE_SETREGS: ::c_uint = 13;
428429

430+
pub const MAP_HUGETLB: ::c_int = 0x080000;
431+
429432
pub const EFD_NONBLOCK: ::c_int = 0x80;
430433

431434
pub const F_GETLK: ::c_int = 14;

0 commit comments

Comments
 (0)