]> granicus.if.org Git - postgresql/commit
Incorporate strerror_r() into src/port/snprintf.c, too.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 26 Sep 2018 16:35:57 +0000 (12:35 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 26 Sep 2018 16:35:57 +0000 (12:35 -0400)
commit758ce9b7794845f95473c569155d29fcf0e2751b
tree9110f776f5f665b4cfff55223c7e0f2da47ffaaf
parent26e9d4d4ef16b5e2be96319f89ea6ba7f63a4d73
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
src/include/port.h
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-lobj.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-secure-openssl.c
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/libpq-int.h
src/port/strerror.c
src/port/thread.c
src/test/thread/thread_test.c