1// devela::sys::os::linux::syscall::consts
2//
3//! Defines the syscall numbers for each target.
4//
5// - https://marcin.juszkiewicz.com.pl/download/tables/syscalls.html
67#![allow(non_camel_case_types)]
89mod aarch64;
10mod arm;
11mod riscv;
12mod x86;
13mod x86_64;
14pub use {
15 aarch64::LINUX_SYS_AARCH64, arm::LINUX_SYS_ARM, riscv::LINUX_SYS_RISCV, x86::LINUX_SYS_X86,
16 x86_64::LINUX_SYS_X86_64,
17};
1819/// Linux `sys/syscall.h` constants for the current compilation target.
20#[cfg(target_arch = "x86")]
21pub type LINUX_SYS = LINUX_SYS_X86;
22/// Linux `sys/syscall.h` constants for the current compilation target.
23#[cfg(target_arch = "x86_64")]
24pub type LINUX_SYS = LINUX_SYS_X86_64;
25/// Linux `sys/syscall.h` constants for the current compilation target.
26#[cfg(target_arch = "arm")]
27pub type LINUX_SYS = LINUX_SYS_ARM;
28/// Linux `sys/syscall.h` constants for the current compilation target.
29#[cfg(target_arch = "aarch64")]
30pub type LINUX_SYS = LINUX_SYS_AARCH64;
31/// Linux `sys/syscall.h` constants for the current compilation target.
32#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
33pub type LINUX_SYS = LINUX_SYS_RISCV;