blob: 9e4979d657bc20911628beb12ce9924494f45b16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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;
}
#[cfg(target_arch = "x86")]
mod arch {
use libc::c_long;
pub type Syscall = c_long;
pub static SYSPIVOTROOT: Syscall = 217;
}
extern {
pub fn syscall(num: Syscall, ...) -> c_int;
}
|