devela/sys/os/linux/consts/syscall/mod.rs
// 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;