@naltun said:
This is an excellent post. Thank you for the share!
e: It'd be cool to have this as a manual page, all of the syscalls laid out in a table with code references. I'm keeping this in mind as an OpenBSD user.
It wouldn't be too hard to generate one, but it could lead to confusion for people if they use random internet manpages because the syscall codes are not guaranteed to be stable across versions on OpenBSD and syscalls get added/removed/deprecated sometimes.