diff options
author | Gabriele Svelto <gsvelto@mozilla.com> | 2016-03-07 16:05:06 +0100 |
---|---|---|
committer | Gabriele Svelto <gsvelto@mozilla.com> | 2016-03-07 16:05:06 +0100 |
commit | 86b3cfabd9c8ac4eeee7d75afebaa69f57744854 (patch) | |
tree | 6061332a00f00a4e02ce642f65ee868003af9cfe /src/sys | |
parent | 3f0c3e13a22379dccbe826336f1805a98cf6cecc (diff) | |
download | nix-86b3cfabd9c8ac4eeee7d75afebaa69f57744854.zip |
Add support for MIPS targets
Closes #300
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/syscall.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sys/syscall.rs b/src/sys/syscall.rs index f3ec60e0..c2d9e51c 100644 --- a/src/sys/syscall.rs +++ b/src/sys/syscall.rs @@ -44,6 +44,15 @@ mod arch { pub static MEMFD_CREATE: Syscall = 385; } +#[cfg(target_arch = "mips")] +mod arch { + use libc::c_long; + + pub type Syscall = c_long; + + pub static SYSPIVOTROOT: Syscall = 216; + pub static MEMFD_CREATE: Syscall = 354; +} extern { pub fn syscall(num: Syscall, ...) -> c_int; |