7 releases

0.2.5 Jun 20, 2024
0.2.4 Mar 12, 2024
0.2.3 Jul 21, 2023
0.2.2 Jun 2, 2023
0.0.1 Jun 1, 2023

#280 in Unix APIs

50 downloads per month
Used in 2 crates (via linux-syscalls)

MIT license

700KB
6.5K SLoC

linux-sysno

Crates.io docs.rs Crates.io

This is just a list of syscall numbers for (almost) all the cpu architectures supported by the Linux kernel. The current architecture's sysnos (if target_os is linux or android) are exported in module's root even without the corresponding feature flag.

#![no_std]

This library is no_std, I mean, it's just an enum.

Feature flags

  • arm: Enable arm architecture in its own module.
  • mips: Enable mips architecture in its own module.
  • mipsn32: Enable mipsn32 architecture in its own module.
  • mips64: Enable mips64 architecture in its own module.
  • powerpc: Enable powerpc architecture in its own module.
  • powerpc64: Enable powerpc64 architecture in its own module.
  • s390x: Enable s390x architecture in its own module.
  • sparc: Enable sparc architecture in its own module.
  • sparc64: Enable sparc64 architecture in its own module.
  • x86: Enable x86 architecture in its own module.
  • x86_64: Enable x86_64 architecture in its own module.
  • x32: Enable x32 architecture in its own module.
  • aarch64: Enable aarch64 architecture in its own module.
  • riscv32: Enable riscv32 architecture in its own module.
  • riscv64: Enable riscv64 architecture in its own module.
  • m68k: Enable m68k architecture in its own module.
  • loongarch64: Enable loongarch64 architecture in its own module.
  • all: Enable all the architectures.

MSRV

1.40.0

No runtime deps

Features