Things UNIX can do atomically
Summary
This article catalogs UNIX-like/POSIX atomic operations and memory/file locking primitives to build thread- and multi-process-safe programs without mutexes. It covers atomic path operations, file descriptor locking with fcntl, mmap-based interprocess sharing, and GCC atomic builtins, with platform caveats (notably for NFS and macOS).