Hacker News new | ask | show | jobs
by WhyNotHugo 25 days ago
Why does libc do this instead of simply returning that same negative number?
2 comments

Legacy. It's always been this way and it can't change without breaking everything.
POSIX, basically. It was already a convention by the time linux/glibc implemented it.