From owner-freebsd-arch@FreeBSD.ORG Fri Dec 12 10:10:12 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 8B3CC1065675 for ; Fri, 12 Dec 2008 10:10:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 25D6B8FC1E for ; Fri, 12 Dec 2008 10:10:11 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LB4yI-000AFV-70; Fri, 12 Dec 2008 12:10:10 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id mBCAA66w041805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Dec 2008 12:10:07 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id mBCAA60K026978; Fri, 12 Dec 2008 12:10:06 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id mBCAA68s026976; Fri, 12 Dec 2008 12:10:06 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 12 Dec 2008 12:10:06 +0200 From: Kostik Belousov To: Stefan Farfeleder Message-ID: <20081212101006.GZ2038@deviant.kiev.zoral.com.ua> References: <49381DD4.2000506@kasimir.com> <20081211175519.GD1176@hoeg.nl> <20081211190436.GE1176@hoeg.nl> <20081211195741.GW2038@deviant.kiev.zoral.com.ua> <20081211233244.GA1414@lizard.fafoe.narf.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="v3gsnnLXiLKXzTq3" Content-Disposition: inline In-Reply-To: <20081211233244.GA1414@lizard.fafoe.narf.at> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LB4yI-000AFV-70 078a7d6d1014a1f32dabdc20b48b1d47 X-Terabit: YES 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: Fri, 12 Dec 2008 10:10:12 -0000 --v3gsnnLXiLKXzTq3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 12, 2008 at 12:32:45AM +0100, Stefan Farfeleder wrote: > 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, > > >=20 > > > 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 univer= se' > > > 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. >=20 > It should propably be inside #if __POSIX_VISIBLE >=3D 2008xx for a > suitable value of 2008xx for P1003.1 Issue 7. Exactly. Since the 2008xx infrastructure work is not done yet, we shall keep it in BSD namespace (that is enabled by default). --v3gsnnLXiLKXzTq3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAklCOHoACgkQC3+MBN1Mb4gpEACeKaLtbrNjoAX/00eY5lkpKrlC 02gAn36Wp3HEn2CZfuiP/GvvafFWOtBr =N7Hd -----END PGP SIGNATURE----- --v3gsnnLXiLKXzTq3--