On errno
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Mar 30 12:32:45 PDT 2009
In message <49D115B9.7030501 at freebsd.org>, Tim Kientzle writes:
>This is the right direction: Basically, add a new variable
>that augments errno instead of extending the possible values of
>errno. One variation, though: I would argue for another
>integer variable (errno_fine?) so that translations can be
>done in userland (instead of having to deal with I18N in
>the kernel) but the principle is still sound.
The probelm with an integer is that you cannot give details
like:
"partition 3 overlaps bootcode"
without precreating the N^2 possible messages of that kind.
I'm very sympathetic to the I18N crowd, but I just don't see
a sensible solution apart from: "Live with it".
Poul-Henning
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-arch
mailing list