From 4adc7244c5abf1e18a6b7e094d83c72837b588ff Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Thu, 7 Aug 2014 13:02:28 -0700 Subject: Initial commit --- src/syscall.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/syscall.rs (limited to 'src/syscall.rs') 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; +} -- cgit v1.2.3