Skip site navigation (1) Skip section navigation (2)

Request for portability test of strerror().

From: Pete Forman <gsez020(at)kryten(dot)bedford(dot)waii(dot)com>
To: pgsql-ports(at)postgresql(dot)org
Subject: Request for portability test of strerror().
Date: 2000-10-20 11:33:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-ports
I'm preparing a patch for backend/utils/error to make the printing of
error messages more robust.  It would be very helpful if people on
different systems would compile and run the following test program to
check the behaviour of strerror().

The PostgreSQL code is called only in exceptional circumstances, so
regular testing of my changes is not possible.

According to the standards UNIX95 (aka XPG4v2) and later, strerror()
should set errno to EINVAL if its argument is out of range.  Most
compliant systems seem to return a default string with a number
printed in it and so never set errno.

sys_nerr was last in XPG2 but has now been dropped.  I'm hoping to
remove it from the PostgreSQL code.


pgsql-ports by date

Next:From: Pete FormanDate: 2000-10-20 12:20:42
Subject: Re: Request for portability test of strerror().
Previous:From: Jason TishlerDate: 2000-10-19 13:28:48
Subject: Re: [PATCH]: Building PostgreSQL 7.0.2 on Cygwin 1.1.4 (T ake 2)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group