pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add pg_strnlen() a portable implementation of strlen.
Date: Mon, 09 Oct 2017 22:22:04 +0000
Message-ID: <E1e1gR2-0005fB-SI@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (16+ messages)  latest in thread

Message-ID: <E1e1gR2-0005fB-SI@gemulon.postgresql.org>
Permalink:  ../E1e1gR2-0005fB-SI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1e1gR2-0005fB-SI@gemulon.postgresql.org

 · 

reply

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: andres@anarazel.de
  Subject: Re: pgsql: Add pg_strnlen() a portable implementation of strlen.
  In-Reply-To: <E1e1gR2-0005fB-SI@gemulon.postgresql.org>
  References: <E1e1gR2-0005fB-SI@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