From owner-freebsd-arch@FreeBSD.ORG Thu Dec 11 23:48:09 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 323121065673 for ; Thu, 11 Dec 2008 23:48:09 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep18-int.chello.at (viefep22-int.chello.at [62.179.121.42]) by mx1.freebsd.org (Postfix) with ESMTP id 76BF28FC13 for ; Thu, 11 Dec 2008 23:48:08 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from edge01.upc.biz ([192.168.13.236]) by viefep20-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20081211233253.QHCG2201.viefep20-int.chello.at@edge01.upc.biz>; Fri, 12 Dec 2008 00:32:53 +0100 Received: from lizard.fafoe.narf.at ([213.47.85.26]) by edge01.upc.biz with edge id pzYr1a02v0a5KZh01zYszc; Fri, 12 Dec 2008 00:32:53 +0100 X-SourceIP: 213.47.85.26 Received: by lizard.fafoe.narf.at (Postfix, from userid 1001) id AE192BAD3; Fri, 12 Dec 2008 00:32:45 +0100 (CET) Date: Fri, 12 Dec 2008 00:32:45 +0100 From: Stefan Farfeleder To: Kostik Belousov Message-ID: <20081211233244.GA1414@lizard.fafoe.narf.at> References: <49381DD4.2000506@kasimir.com> <20081211175519.GD1176@hoeg.nl> <20081211190436.GE1176@hoeg.nl> <20081211195741.GW2038@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081211195741.GW2038@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Ed Schouten , FreeBSD Arch Subject: Re: [Patch] strnlen(3) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2008 23:48:09 -0000 On Thu, Dec 11, 2008 at 09:57:41PM +0200, Kostik Belousov wrote: > On Thu, Dec 11, 2008 at 08:04:36PM +0100, Ed Schouten wrote: > > Hello all, > > > > I've attached a patch, that adds strnlen(3) to libc. It also moves > > strndup(3) out of __BSD_VISIBLE. I'll see if it survives `make universe' > > and commit it soonish. Any comments? > strndup shall stay under __BSD_VISIBLE, and strnlen declaration shall > go unto this define too. Not doing this will pollute namespace > for the POSIX revisions we are (partially) trying to support. It should propably be inside #if __POSIX_VISIBLE >= 2008xx for a suitable value of 2008xx for P1003.1 Issue 7.