Hacker News
AI errno(2) values
86 points by zdw
ago
|
18 comments
aaronmdjones
|next
[-]
`errno` is a userland concept; the kernel returns negative error numbers that libc then turns into -1 and sets errno. Thus the correct manpage is errno(3).
eqvinox
|root
|parent
|next
[-]
OpenBSD up to 5.9 had errno(2) symlinked to intro(2), describing error codes:
https://man.freebsd.org/cgi/man.cgi?query=errno&apropos=0&se...
Also, your statements about the kernel and libc are OS specific.
OhMeadhbh
|next
|previous
[-]
As a long time emacs user, I appreciated the inclusion of EMACS as an error code. When I moved from TECO to gnu emacs in to 80s, elisp was an advance. Now I have a perpetual todo item... "rewrite emacs in fennel or janet or even minimalisp."
"What was deluxe is now debris..."
amelius
|next
|previous
[-]
> #define EAI 201 /* hallucination */
If only AI threw an error when it hallucinates.
chme
|next
|previous
[-]
#define EPROCRASTINATE 245 /* exhausted all output tokens with reasoning */