summaryrefslogtreecommitdiff
path: root/src/syscall.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2014-08-07 13:02:28 -0700
committerCarl Lerche <me@carllerche.com>2014-08-07 13:02:28 -0700
commit4adc7244c5abf1e18a6b7e094d83c72837b588ff (patch)
tree670925e47142141e6b9131893a1591da70629993 /src/syscall.rs
downloadnix-4adc7244c5abf1e18a6b7e094d83c72837b588ff.zip
Initial commit
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;
+}