Merge pull request #217 from gabrielesvelto/master

Add MAP_STACK and MAP_HUGETLB entries to MIPS so that the nix crate can be built
This commit is contained in:
Alex Crichton 2016-03-07 09:09:06 -08:00
commit 2278a54955
1 changed files with 3 additions and 0 deletions

View File

@ -303,6 +303,7 @@ pub const MAP_EXECUTABLE: ::c_int = 0x4000;
pub const MAP_LOCKED: ::c_int = 0x8000;
pub const MAP_POPULATE: ::c_int = 0x10000;
pub const MAP_NONBLOCK: ::c_int = 0x20000;
pub const MAP_STACK: ::c_int = 0x40000;
pub const SOCK_STREAM: ::c_int = 2;
pub const SOCK_DGRAM: ::c_int = 1;
@ -426,6 +427,8 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19;
pub const PTRACE_GETREGS: ::c_uint = 12;
pub const PTRACE_SETREGS: ::c_uint = 13;
pub const MAP_HUGETLB: ::c_int = 0x080000;
pub const EFD_NONBLOCK: ::c_int = 0x80;
pub const F_GETLK: ::c_int = 14;