Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of user space above the system call boundary, the kernel and the hardware, with the macOS, Linux and Apple logos.
KernelsGuide

The Complete Guide to macOS Kernel Internals

A map of the XNU kernel behind macOS: Mach tasks and ports, the BSD layer, IOKit, system call entry, virtual memory, security layers, extensions and boot.

25 min read
Flat illustration of a shield with a lock, a key and a password field, with the C, Rust and OpenSSL logos.
Security

Off-by-One Errors in C String Handling

One byte too few for the terminating NUL is enough to corrupt memory. See the common off-by-one patterns in C strings and how to write them correctly.

6 min read
Flat illustration of parallel threads meeting at a mutex, with the C, Go and Erlang logos.
Concurrency

Create and Join Threads with pthread_create

Start threads with pthread_create, wait for them with pthread_join and check the error codes correctly. Includes a complete C program and the mistakes to avoid.

7 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.