From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Incorporate strerror_r() into src/port/snprintf.c, too.
Date: Wed, 26 Sep 2018 16:36:03 +0000
Message-ID: <E1g5CnD-0004v1-Rc@gemulon.postgresql.org> (raw)
Incorporate strerror_r() into src/port/snprintf.c, too.
This provides the features that used to exist in useful_strerror()
for users of strerror_r(), too. Also, standardize on the GNU convention
that strerror_r returns a char pointer that may not be NULL.
I notice that libpq's win32.c contains a variant version of strerror_r
that probably ought to be folded into strerror.c. But lacking a
Windows environment, I should leave that to somebody else.
Discussion: https://postgr.es/m/2975.1526862605@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/758ce9b7794845f95473c569155d29fcf0e2751b
Modified Files
--------------
src/include/port.h | 7 ++-
src/interfaces/libpq/fe-auth.c | 6 +--
src/interfaces/libpq/fe-connect.c | 18 +++----
src/interfaces/libpq/fe-lobj.c | 14 +++---
src/interfaces/libpq/fe-misc.c | 2 +-
src/interfaces/libpq/fe-secure-openssl.c | 12 ++---
src/interfaces/libpq/fe-secure.c | 4 +-
src/interfaces/libpq/libpq-int.h | 2 +-
src/port/strerror.c | 85 +++++++++++++++++++++++---------
src/port/thread.c | 27 ----------
src/test/thread/thread_test.c | 5 +-
11 files changed, 99 insertions(+), 83 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Incorporate strerror_r() into src/port/snprintf.c, too.
In-Reply-To: <E1g5CnD-0004v1-Rc@gemulon.postgresql.org>
References: <E1g5CnD-0004v1-Rc@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox