Crates.io | linux-syscalls |
lib.rs | linux-syscalls |
version | 0.4.0 |
source | src |
created_at | 2023-06-25 11:06:13.270601 |
updated_at | 2024-02-03 18:35:47.817683 |
description | A library to easily invoke linux system calls. |
homepage | https://github.com/shurizzle/linux-syscalls |
repository | https://github.com/shurizzle/linux-syscalls |
max_upload_size | |
id | 899391 |
size | 305,331 |
A library to easily deal with linux system calls.
As a side effect this library offers other utilities.
This library invoke uname
syscall in initialization and cache its result.
Parse kernel version from uname
in initialization (panics if it's invalid)
and offers a macro kversion!
to deal with it.
Detect auxiliary vector (if present) in initialization and offer a Rust
interface to query its values. Useful for hardware/kernel features
like scv
in ppc64.
Detect vDSO and parse it (if present) in initialization and store its result.
Useful for vsyscalls on any platform and __kernel_vsyscall
for faster
syscalls on x86 machines.
std
: enable std support.bare
: do not try to automatically initialize the library.libc-compat
: forward this feature to linux-errnos
.#![no_std]
Enable #![no_std]
support by disabling the default std
feature:
[dependencies]
linux-syscalls = { version = "*", default-features = false }
1.65.0