87

AI errno(2) values

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

5 hours agoaaronmdjones

Why does libc do this instead of simply returning that same negative number?

an hour agoWhyNotHugo

Legacy. It's always been this way and it can't change without breaking everything.

12 minutes agomatheusmoreira

POSIX, basically. It was already a convention by the time linux/glibc implemented it.

an hour agorcxdude
[deleted]
3 hours ago

    #define ETERNITY 999 /* stuck in thinking loop */
6 hours agochuckadams

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

4 hours agoOhMeadhbh

> #define EAI 201 /* hallucination */

If only AI threw an error when it hallucinates.

7 hours agoamelius

Nah it would just hallucinate this error all the time

7 hours agoyard2010

It would hallucinate error codes that don't exist.

6 hours agoFindecanor

Missed one...

   EHAL    231    /* I'm sorry Dave, I cannot do that */
an hour agoSoftTalker

    #define EPROCRASTINATE 245 /* exhausted all output tokens with reasoning */
5 hours agochme

#define EKNOWBETTER 231 # ignoring prompt

5 hours agoJSR_FDED

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

4 hours agocold_harbor

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

6 hours agoandai

207 is a bald move

4 hours agocluckindan

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

6 hours agocat-whisperer

ETHOS is generally reserved for a certain type of error involving slab memory and complex logic though.

Let's hope that reference is not too obscure...