AI errno(2) values
https://www.netmeister.org/blog/ai-errno.html`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).
loading story #48267804
loading story #48268032
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..."
#define ETERNITY 999 /* stuck in thinking loop */> #define EAI 201 /* hallucination */
If only AI threw an error when it hallucinates.
loading story #48265814
#define EPROCRASTINATE 245 /* exhausted all output tokens with reasoning */#define ESYCOPHANT 200 /* user asserted 2+2=5; model concurred */
#define EKNOWBETTER 231 # ignoring prompt
I often ran into an error where multimodal models would refuse to operate in transcription mode due to some system prompt.
207 is a bald move