Re: C++ interface build on FreeBSD 4.2 broken?

From: Marko Kreen <marko(at)l-t(dot)ee>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: C++ interface build on FreeBSD 4.2 broken?
Date: 2001-01-20 21:43:09
Message-ID: 20010120234309.A16745@l-t.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jan 20, 2001 at 02:18:55PM -0500, Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-20 21:43:37 Re: [HACKERS] Re: re-instalation
Previous Message Brett W. McCoy 2001-01-20 21:34:05 Re: re-instalation