summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorGabriele Svelto <gsvelto@mozilla.com>2016-03-07 16:05:06 +0100
committerGabriele Svelto <gsvelto@mozilla.com>2016-03-07 16:05:06 +0100
commit86b3cfabd9c8ac4eeee7d75afebaa69f57744854 (patch)
tree6061332a00f00a4e02ce642f65ee868003af9cfe /src/sys
parent3f0c3e13a22379dccbe826336f1805a98cf6cecc (diff)
downloadnix-86b3cfabd9c8ac4eeee7d75afebaa69f57744854.zip
Add support for MIPS targets
Closes #300
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/syscall.rs9
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;