postgresql/config
Tom Lane e1d19c902e Require a C99-compliant snprintf(), and remove related workarounds.
Since our substitute snprintf now returns a C99-compliant result,
there's no need anymore to have complicated code to cope with pre-C99
behavior.  We can just make configure substitute snprintf.c if it finds
that the system snprintf() is pre-C99.  (Note: I do not believe that
there are any platforms where this test will trigger that weren't
already being rejected due to our other C99-ish feature requirements for
snprintf.  But let's add the check for paranoia's sake.)  Then, simplify
the call sites that had logic to cope with the pre-C99 definition.

I also dropped some stuff that was being paranoid about the possibility
of snprintf overrunning the given buffer.  The only reports we've ever
heard of that being a problem were for Solaris 7, which is long dead,
and we've sure not heard any reports of these assertions triggering in
a long time.  So let's drop that complexity too.

Likewise, drop some code that wasn't trusting snprintf to set errno
when it returns -1.  That would be not-per-spec, and again there's
no real reason to believe it is a live issue, especially not for
snprintfs that pass all of configure's feature checks.

Discussion: https://postgr.es/m/17245.1534289329@sss.pgh.pa.us
2018-08-16 13:01:09 -04:00
..
ac_func_accept_argtypes.m4
ax_prog_perl_modules.m4
ax_pthread.m4
c-compiler.m4 Revert "Distinguish printf-like functions that support %m from those that don't." 2018-08-12 18:46:01 -04:00
c-library.m4 Require a C99-compliant snprintf(), and remove related workarounds. 2018-08-16 13:01:09 -04:00
config.guess Update config.guess and config.sub 2018-06-11 08:54:58 -04:00
config.sub Update config.guess and config.sub 2018-06-11 08:54:58 -04:00
docbook.m4
general.m4
install-sh
libtool.m4
llvm.m4 LLVMJIT: Adapt to API changes in gdb and perf support. 2018-07-22 21:13:34 -07:00
Makefile
missing
perl.m4
pkg.m4
prep_buildtree
programs.m4
python.m4 Teach configure --with-python to report the Python version number. 2018-04-02 12:26:12 -04:00
tcl.m4