Re: C++ interface build on FreeBSD 4.2 broken? - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: C++ interface build on FreeBSD 4.2 broken?
Date
Msg-id 20010120234309.A16745@l-t.ee
Whole thread Raw
In response to Re: C++ interface build on FreeBSD 4.2 broken?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: C++ interface build on FreeBSD 4.2 broken?
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] re-instalation
Next
From: Peter Eisentraut
Date:
Subject: Re: Re: [GENERAL] re-instalation