Skip to content

Commit

Permalink
Merge pull request #217 from gabrielesvelto/master
Browse files Browse the repository at this point in the history
Add MAP_STACK and MAP_HUGETLB entries to MIPS so that the nix crate can be built
  • Loading branch information
alexcrichton committed Mar 7, 2016
2 parents 08f816f + 30dfc4b commit 2278a54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/notbsd/linux/mips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2278a54

Please sign in to comment.