Skip to content
systemcoding.dev

Tag

linux

82 posts

Flat illustration of a magnifier over lines of a log, with the C, Linux and GNU logos.
Systems Programming

Read the Auxiliary Vector with getauxval

getauxval reads the kernel's auxiliary vector: page size, CPU features, secure-mode flag, random bytes and the executable name, without parsing /proc.

7 min read
Flat illustration of a browser and a server trading a request and a response, with the Linux, Rust and curl logos.
Systems Programming

Call POSIX APIs Safely with the nix Crate

Use the nix crate to call POSIX functions like pipe, fork, waitpid and kill from Rust with typed arguments, Result errors and no raw unsafe libc calls.

6 min read
Flat illustration of user space above the system call boundary, the kernel and the hardware, with the Rust, Linux and FreeBSD logos.
Systems Programming

How Rust's std Wraps libc and System Calls

Rust's standard library does not talk to the kernel directly on Linux. It calls libc, which issues the syscall. See the layers from File::open down to openat.

6 min read