pgsql: Add pg_strnlen() a portable implementation of strlen.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add pg_strnlen() a portable implementation of strlen.
Date: 2017-10-09 22:22:04
Message-ID: E1e1gR2-0005fB-SI@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add pg_strnlen() a portable implementation of strlen.

As the OS version is likely going to be more optimized, fall back to
it if available, as detected by configure.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8a241792f968ed5be6cf4d41e32c0d264f6c0c65

Modified Files
--------------
configure | 2 +-
configure.in | 2 +-
src/common/string.c | 20 ++++++++++++++++++++
src/include/common/string.h | 15 +++++++++++++++
src/include/pg_config.h.in | 3 +++
src/include/pg_config.h.win32 | 3 +++
src/port/snprintf.c | 12 ++----------
7 files changed, 45 insertions(+), 12 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-10-09 23:15:09 Re: pgsql: Add pg_strnlen() a portable implementation of strlen.
Previous Message Peter Eisentraut 2017-10-09 11:51:11 pgsql: Remove unused documentation file