Skip to content
systemcoding.dev

Tag

c

362 posts

Flat illustration of two options weighed side by side, with the GNU, C and C++ logos.
Systems Programming

Use strerror_r Correctly: XSI vs GNU Versions

strerror_r has two incompatible signatures in glibc. Learn which one you get, how to write code that works with both, and how strerror_l avoids the problem.

6 min read
Flat illustration of RTOS tasks taking turns on a timeline, with the C, Rust and Arm logos.
RTOS

Run Periodic Code With Zephyr k_timer

Run code every N milliseconds in Zephyr with k_timer, including one-shot and periodic modes, the expiry callback rules and how to wake a thread from it.

7 min read
Flat illustration of user space above the system call boundary, the kernel and the hardware, with the C, Linux and GNU logos.
Systems Programming

Common errno Values and What They Mean

A cheat sheet of the errno values you meet most on Linux, such as ENOENT, EACCES, EINTR and EAGAIN, with the cause, the reaction and when not to retry.

6 min read