Archives
Every essay, tool teardown, and build note, newest first.
-

EAGAIN errno 11: Resource Temporarily Unavailable – The Bytes That Fit
A non-blocking pipe took 65,536 bytes and an AF_UNIX socket 180,224 before errno 11, while its readiness check gave up at 53,504. This page measures what fits.
Read the article → -

ENOMEM errno 12: Cannot Allocate Memory – The Limit That Said No
Three of the four walls behind Cannot allocate memory answer with errno 12: the mapping ceiling, an address-space limit and a data limit. This page measures which call hits which wall.
Read the article → -

EBADF errno 9: Bad File Descriptor – Three Families, One Number
One number covers a closed descriptor, a write to a read-only one and a seek on a pipe. This page measures which call answered what, and keeps the table the kernel does not.
Read the article → -

EACCES errno 13: the Bit, the Directory, and the chmod That Ends It
A refused open answers one number and names no culprit: the kernel picks one of three classes and checks every directory in the path. This page walks that path and names the component that…
Read the article → -

EXDEV errno 18: Cross-Device rename, link, mv and a Safe Fallback
A name cannot cross a device: rename and link refuse with EXDEV, and a staged copy in the destination’s own directory turns errno 18 into one atomic replace that keeps sparse holes.
Read the article → -

ENOSPC errno 28: Full Blocks, Full Inodes, Deleted Files Still Open
A full mount answers three ways: 190,263 zero-byte files take every inode with the disk empty, a write lands only part of its bytes, and a deleted log keeps its blocks until the last…
Read the article → -

ETXTBSY errno 26: 7 Writes Refused, Rename Works, Scripts Never Locked
A running binary refuses 7 write modes with errno 26; a rename replaces it, and a #! script is never locked – though bash reads it by offset.
Read the article → -

Argument List Too Long (E2BIG): 131,071 Bytes Each, 2,097,152 in Total
One argument stops at 131,071 bytes; argv and envp share 2,097,152, and the measured boundary was 2,096,988.
Read the article → -

mmap vs read(): 16,384 Pages, a Truncate SIGBUS, and ENOMEM at 65,482
One 64 MiB file read two ways: 1,025 faults cover 16,384 pages, a truncate raises SIGBUS, and 65,482 mappings end in ENOMEM.
Read the article → -

flock vs fcntl: 12 Lock States and One close() That Drops the Lock
Twelve lock states on one Linux host: a stray close() releases a POSIX lock, flock survives it, and a forked child keeps a lock it does not own.
Read the article →