Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1mZg-0001gA-8t for pgsql-committers@arkaria.postgresql.org; Tue, 10 Oct 2017 04:55:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e1mZf-0000ey-NK for pgsql-committers@arkaria.postgresql.org; Tue, 10 Oct 2017 04:55:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1mZe-0000dY-2l for pgsql-committers@postgresql.org; Tue, 10 Oct 2017 04:55:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1mZb-0000x5-3c for pgsql-committers@postgresql.org; Tue, 10 Oct 2017 04:55:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9A4tEq8025138; Tue, 10 Oct 2017 00:55:14 -0400 From: Tom Lane To: Andres Freund cc: Andrew Dunstan , pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_strnlen() a portable implementation of strlen. In-reply-to: <20171010044253.yq7eiczk5ixomhpb@alap3.anarazel.de> References: <20171009231509.nlptgdrtg2au6frn@alap3.anarazel.de> <44745881-6095-e3ba-e8eb-23b1d92bffab@dunslane.net> <23638.1507609552@sss.pgh.pa.us> <20171010044253.yq7eiczk5ixomhpb@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 09 Oct 2017 21:42:53 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25136.1507611314.1@sss.pgh.pa.us> Date: Tue, 10 Oct 2017 00:55:14 -0400 Message-ID: <25137.1507611314@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund writes: > I think the current split between common and port isn't particularly > meaningful. But as long as we have it, this probably belongs more in > port than in common. Well, port is supposed to be for stuff that we expect to find in libc on common platforms, but is missing some places. strnlen seems to fall in that category well enough. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers