Subject: Re: sys_errlist was :Ghostscript, Ghostview
To: Allen Briggs <briggs@puma.bevd.blacksburg.va.us>
From: Matthias Urlichs <smurf@mail.noris.net>
List: port-mac68k
Date: 12/05/1995 09:42:43
Hi,
>> Is there a change that could be made to the NetBSD libraries that would
>> avoid this forever
>
>No. The problem is that much software tries to get the error string for
>OS errors--to be more polite than "open config.file: error 2", it can say,
>"open config.file: No such file or directory." Or something like that.
There is this neat function called strerror()... it's even in POSIX.
I propose to use that one (and supply one in a supplemental OS glue library
if it doesn't exist) instead of playing around with semi-documented
library variables.
I do _not_ think that defining sys_errlist in some header is helpful.
--
It is the pardonable vanity of lonely people everywhere to assume that they
have no counterparts.
--
Matthias Urlichs \ XLink-POP Nürnberg | EMail: urlichs@smurf.noris.de
Schleiermacherstraße 12 \ Unix+Linux+Mac | Phone: ...please use email.
90491 Nürnberg (Germany) \ Consulting+Networking+Programming+etc'ing 42
PGP: 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click here.