On Sat, Jan 20, 2001 at 02:18:55PM -0500, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > libpq doesn't use it either, but it uses tons of strerror().
>
> And also there are quite a few places in the backend that use strerror()
> directly. This lack of consistency seems like another reason to forget
> about testing errno against sys_nerr in elog() ...
All relevant standards discourage use of sys_nerr too. There
was a discussion on cygwin lists once ... *searching*
in <http://cygwin.com/ml/cygwin/1999-11/msg00097.html>
From: "J. J. Farrell" <jjf at bcs dot org dot uk>
[ about using sys_nerr & sys_errlist ]
> Nothing written in the last 10 years or so should be using these
> anyway; strerror() was introduced in C89 and POSIX.1 to replace
> them, as Mumit pointed out.
...
--
marko