Skip to content
systemcoding.dev

Snippets

Short posts that solve one thing: the code, the output we got, and why it works.

Mainframe

Find the failing offset in a CEEDUMP

Read the Language Environment traceback in a CEEDUMP to find the failing program, its entry offset and the statement number, on z/OS 3.1.

1 min read
Systems Programming

Create a pipe and read and write both ends

pipe fills a two-element array with a read end and a write end, and one process can write and read both ends because the kernel buffers the data.

1 min read
Fundamentals

Count trailing zeros with __builtin_ctz

Count trailing zeros in C with __builtin_ctz on GCC and Clang, and guard the zero case, because the builtin is undefined for an input of 0.

1 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.