Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Notably, the POSIX Threads API itself (i.e. pthread_ routines) returns errors directly rather than through errno.


It was a common design of new operating system APIs, not encumbered by PDP-11 compatibility, in the 1980s.

* https://tty0.social/@JdeBP/114816928464571239

Even some of the later augmentations in MS/PC/DR-DOS did things like return an error code in AX and the result in (say) CX instead of using AX and CF.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: