Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e21Pq-0005D7-LI for pgsql-committers@arkaria.postgresql.org; Tue, 10 Oct 2017 20:46:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e21Pq-0002Wq-7s for pgsql-committers@arkaria.postgresql.org; Tue, 10 Oct 2017 20:46:14 +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 1e21Pp-0002SF-9Z for pgsql-committers@postgresql.org; Tue, 10 Oct 2017 20:46:13 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e21Ph-0004wt-VH for pgsql-committers@postgresql.org; Tue, 10 Oct 2017 20:46:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 608D220F35; Tue, 10 Oct 2017 16:46:04 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 10 Oct 2017 16:46:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=1xP1Ob5WYu5X3NMWke wZJQLUVJRVSaGO3jJn9e4NLbw=; b=PTHJWdI2mW+XVYPs91+kZFcnUbXLso9ZQy wDgClplM7FE++/PxNJItDDQIZgAiL1YMLCna/EymlGkz1Di1yWnJqOb//zB9Gu11 dsy/OI/Qd+jehNbx1waXLND3kBUBiDdW8PWRV2NEApX7iqbnXbTvIThfwI7EdAV6 B/L9Nwgn0e3zuaaCwU/nO28EYKGyI+f5yhlCgXpp9In34Z/TDdMieVNSzGqU4rn8 hX+To0P0WzN5dF4F8nJDmLGnXZCiKCWM9yveOmQ0xSCpipoShshEueURK2hBRzzV 2NQRjvPiHWw3bSQ5nv3WqwosRyFKJ9iOM0B4d401DYmmdU74J9Dg== X-ME-Sender: X-Sasl-enc: 5E4il1eOxCRhBg4DIMqxP3kmrXhXjoPWtlCKFQtI10KJ 1507668364 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 22C6F2479F; Tue, 10 Oct 2017 16:46:04 -0400 (EDT) Date: Tue, 10 Oct 2017 13:46:03 -0700 From: Andres Freund To: Tom Lane Cc: Andrew Dunstan , pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_strnlen() a portable implementation of strlen. Message-ID: <20171010204603.sgcia7xtuhqvjumj@alap3.anarazel.de> References: <20171009231509.nlptgdrtg2au6frn@alap3.anarazel.de> <44745881-6095-e3ba-e8eb-23b1d92bffab@dunslane.net> <20171010194818.p2hhod32ezmvhryb@alap3.anarazel.de> <21088.1507667824@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21088.1507667824@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 On 2017-10-10 16:37:04 -0400, Tom Lane wrote: > Andres Freund writes: > > (there's definitely fixes to be made to where strnlen's replacement is > > located, but regardless, this needs to be fixed too) > > Given that strnlen is standardized by POSIX, and has been for nigh a > decade, I think it'd be all right for us to treat it as a straight > port replacement function, a la strlcpy() for instance. That is, > forget the pg_ prefix and just create a strnlen() function if the > platform has not got it. Yea, I'm ok with that. But can't do that before the configure issue on these boxes is fixed, otherwise we'll likely get symbol conflicts... Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers