]> git.proxmox.com Git - rustc.git/blob - src/vendor/nix/src/sys/syscall.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / vendor / nix / src / sys / syscall.rs
1 //! Indirect system call
2 //!
3 use libc::c_int;
4
5 pub use self::arch::*;
6
7 #[cfg(target_arch = "x86_64")]
8 mod arch {
9 use libc::c_long;
10
11 pub type Syscall = c_long;
12
13 pub static SYSPIVOTROOT: Syscall = 155;
14 pub static MEMFD_CREATE: Syscall = 319;
15 }
16
17 #[cfg(target_arch = "x86")]
18 mod arch {
19 use libc::c_long;
20
21 pub type Syscall = c_long;
22
23 pub static SYSPIVOTROOT: Syscall = 217;
24 pub static MEMFD_CREATE: Syscall = 356;
25 }
26
27 #[cfg(target_arch = "aarch64")]
28 mod arch {
29 use libc::c_long;
30
31 pub type Syscall = c_long;
32
33 pub static SYSPIVOTROOT: Syscall = 41;
34 pub static MEMFD_CREATE: Syscall = 279;
35 }
36
37 #[cfg(target_arch = "arm")]
38 mod arch {
39 use libc::c_long;
40
41 pub type Syscall = c_long;
42
43 pub static SYSPIVOTROOT: Syscall = 218;
44 pub static MEMFD_CREATE: Syscall = 385;
45 }
46
47 #[cfg(target_arch = "mips")]
48 mod arch {
49 use libc::c_long;
50
51 pub type Syscall = c_long;
52
53 pub static SYSPIVOTROOT: Syscall = 216;
54 pub static MEMFD_CREATE: Syscall = 354;
55 }
56
57 extern {
58 pub fn syscall(num: Syscall, ...) -> c_int;
59 }