summaryrefslogtreecommitdiff
path: root/src/syscall.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syscall.rs')
-rw-r--r--src/syscall.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/syscall.rs b/src/syscall.rs
new file mode 100644
index 00000000..85f6e730
--- /dev/null
+++ b/src/syscall.rs
@@ -0,0 +1,16 @@
+use libc::c_int;
+
+pub use self::arch::*;
+
+#[cfg(target_arch = "x86_64")]
+mod arch {
+ use libc::c_long;
+
+ pub type Syscall = c_long;
+
+ pub static SysPivotRoot: Syscall = 155;
+}
+
+extern {
+ pub fn syscall(num: Syscall, ...) -> c_int;
+}