devela/sys/os/linux/consts/syscall/
mod.rs

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
26
27
28
29
30
31
32
33
// devela::sys::os::linux::syscall::consts
//
//! Defines the syscall numbers for each target.
//
// - https://marcin.juszkiewicz.com.pl/download/tables/syscalls.html

#![allow(non_camel_case_types)]

mod aarch64;
mod arm;
mod riscv;
mod x86;
mod x86_64;
pub use {
    aarch64::LINUX_SYS_AARCH64, arm::LINUX_SYS_ARM, riscv::LINUX_SYS_RISCV, x86::LINUX_SYS_X86,
    x86_64::LINUX_SYS_X86_64,
};

/// Linux `sys/syscall.h` constants for the current compilation target.
#[cfg(target_arch = "x86")]
pub type LINUX_SYS = LINUX_SYS_X86;
/// Linux `sys/syscall.h` constants for the current compilation target.
#[cfg(target_arch = "x86_64")]
pub type LINUX_SYS = LINUX_SYS_X86_64;
/// Linux `sys/syscall.h` constants for the current compilation target.
#[cfg(target_arch = "arm")]
pub type LINUX_SYS = LINUX_SYS_ARM;
/// Linux `sys/syscall.h` constants for the current compilation target.
#[cfg(target_arch = "aarch64")]
pub type LINUX_SYS = LINUX_SYS_AARCH64;
/// Linux `sys/syscall.h` constants for the current compilation target.
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
pub type LINUX_SYS = LINUX_SYS_RISCV;