]> granicus.if.org Git - postgresql/commit
Rewrite strnlen replacement implementation from 8a241792f96.
authorAndres Freund <andres@anarazel.de>
Tue, 10 Oct 2017 21:42:16 +0000 (14:42 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 10 Oct 2017 21:50:30 +0000 (14:50 -0700)
commitfffd651e83ccbd6191a76be6ec7c6b1b27888fde
tree1c7f61fd5dfa8e540f2e27c1063ba9f8038370ba
parentfa5e119dc71ada8d023deadcb36dbfae328f8902
Rewrite strnlen replacement implementation from 8a241792f96.

The previous placement of the fallback implementation in libpgcommon
was problematic, because libpqport functions need strnlen
functionality.

Move replacement into libpgport. Provide strnlen() under its posix
name, instead of pg_strnlen(). Fix stupid configure bug, executing the
test only when compiled with threading support.

Author: Andres Freund
Discussion: https://postgr.es/m/E1e1gR2-0005fB-SI@gemulon.postgresql.org
configure
configure.in
src/backend/utils/mmgr/mcxt.c
src/common/string.c
src/include/common/string.h
src/include/pg_config.h.in
src/include/pg_config.h.win32
src/include/port.h
src/port/snprintf.c
src/port/strnlen.c [new file with mode: 0644]