summaryrefslogtreecommitdiff
path: root/src/sys/syscall.rs
diff options
context:
space:
mode:
authorBrian Martin <brayniac@gmail.com>2016-01-15 09:05:44 -0800
committerBrian Martin <brayniac@gmail.com>2016-01-15 09:05:44 -0800
commit9cdc0d511d9f2e261367124a24ed4bdc38b5ad06 (patch)
treed231d04e997009a9ff4da8bbc6535fdf21ce85e7 /src/sys/syscall.rs
parent4450b96399d901ca81267f62691ab4f5efea17d7 (diff)
downloadnix-9cdc0d511d9f2e261367124a24ed4bdc38b5ad06.zip
add aarch64 support
Diffstat (limited to 'src/sys/syscall.rs')
-rw-r--r--src/sys/syscall.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sys/syscall.rs b/src/sys/syscall.rs
index c80defa2..f3ec60e0 100644
--- a/src/sys/syscall.rs
+++ b/src/sys/syscall.rs
@@ -24,6 +24,16 @@ mod arch {
pub static MEMFD_CREATE: Syscall = 356;
}
+#[cfg(target_arch = "aarch64")]
+mod arch {
+ use libc::c_long;
+
+ pub type Syscall = c_long;
+
+ pub static SYSPIVOTROOT: Syscall = 41;
+ pub static MEMFD_CREATE: Syscall = 279;
+}
+
#[cfg(target_arch = "arm")]
mod arch {
use libc::c_long;