Rendered at 21:28:38 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
aaronmdjones 7 hours ago [-]
`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 6 hours ago [-]
OpenBSD up to 5.9 had errno(2) symlinked to intro(2), describing error codes:
Also, your statements about the kernel and libc are OS specific.
WhyNotHugo 4 hours ago [-]
Why does libc do this instead of simply returning that same negative number?
matheusmoreira 3 hours ago [-]
Legacy. It's always been this way and it can't change without breaking everything.
rcxdude 4 hours ago [-]
POSIX, basically. It was already a convention by the time linux/glibc implemented it.
6 hours ago [-]
chuckadams 8 hours ago [-]
#define ETERNITY 999 /* stuck in thinking loop */
SoftTalker 4 hours ago [-]
Missed one...
EHAL 231 /* I'm sorry Dave, I cannot do that */
amelius 10 hours ago [-]
> #define EAI 201 /* hallucination */
If only AI threw an error when it hallucinates.
yard2010 10 hours ago [-]
Nah it would just hallucinate this error all the time
Findecanor 9 hours ago [-]
It would hallucinate error codes that don't exist.
OhMeadhbh 6 hours ago [-]
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..."
chme 7 hours ago [-]
#define EPROCRASTINATE 245 /* exhausted all output tokens with reasoning */
JSR_FDED 8 hours ago [-]
#define EKNOWBETTER 231 # ignoring prompt
andai 9 hours ago [-]
I often ran into an error where multimodal models would refuse to operate in transcription mode due to some system prompt.
cold_harbor 7 hours ago [-]
#define ESYCOPHANT 200 /* user asserted 2+2=5; model concurred */
cluckindan 7 hours ago [-]
207 is a bald move
cat-whisperer 9 hours ago [-]
what about ETHOS : Error it's Mythos? lol!
tetha 8 hours ago [-]
ETHOS is generally reserved for a certain type of error involving slab memory and complex logic though.
https://man.freebsd.org/cgi/man.cgi?query=errno&apropos=0&se...
Also, your statements about the kernel and libc are OS specific.
If only AI threw an error when it hallucinates.
"What was deluxe is now debris..."
Let's hope that reference is not too obscure...