diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-08 21:38:26 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-07-08 21:38:26 -0700 |
commit | e3594498c2e74482813642e023c1f126f7d74eb9 (patch) | |
tree | 23b35c44fcca8bbbb2fadd66b4c265598eb13a72 | |
parent | 38d0e55ae5a7f12bf2e84c435f8a00281d72d128 (diff) | |
download | nix-e3594498c2e74482813642e023c1f126f7d74eb9.zip |
Enable syscalls on s390x
-rw-r--r-- | src/sys/syscall.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sys/syscall.rs b/src/sys/syscall.rs index cff2cc99..f47d5126 100644 --- a/src/sys/syscall.rs +++ b/src/sys/syscall.rs @@ -64,6 +64,16 @@ mod arch { pub static MEMFD_CREATE: Syscall = 360; } +#[cfg(target_arch = "s390x")] +mod arch { + use libc::c_long; + + pub type Syscall = c_long; + + pub static SYSPIVOTROOT: Syscall = 217; + pub static MEMFD_CREATE: Syscall = 350; +} + extern { pub fn syscall(num: Syscall, ...) -> c_int; } |