logoalt Hacker News

AI errno(2) values

84 pointsby zdwlast Friday at 2:56 PM17 commentsview on HN

Comments

aaronmdjonestoday at 2:08 PM

`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).

show 2 replies
chuckadamstoday at 1:02 PM

    #define ETERNITY 999 /* stuck in thinking loop */
SoftTalkertoday at 5:33 PM

Missed one...

   EHAL    231    /* I'm sorry Dave, I cannot do that */
OhMeadhbhtoday at 3:09 PM

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..."

ameliustoday at 11:17 AM

> #define EAI 201 /* hallucination */

If only AI threw an error when it hallucinates.

show 1 reply
chmetoday at 2:02 PM

    #define EPROCRASTINATE 245 /* exhausted all output tokens with reasoning */
JSR_FDEDtoday at 1:30 PM

#define EKNOWBETTER 231 # ignoring prompt

cold_harbortoday at 2:26 PM

#define ESYCOPHANT 200 /* user asserted 2+2=5; model concurred */

andaitoday at 12:25 PM

I often ran into an error where multimodal models would refuse to operate in transcription mode due to some system prompt.

cluckindantoday at 2:17 PM

207 is a bald move

cat-whisperertoday at 12:42 PM

what about ETHOS : Error it's Mythos? lol!

show 1 reply