Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Dec 2008 12:10:06 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Stefan Farfeleder <stefan@fafoe.narf.at>
Cc:        Ed Schouten <ed@80386.nl>, FreeBSD Arch <freebsd-arch@freebsd.org>
Subject:   Re: [Patch] strnlen(3)
Message-ID:  <20081212101006.GZ2038@deviant.kiev.zoral.com.ua>
In-Reply-To: <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> <20081211233244.GA1414@lizard.fafoe.narf.at>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081212101006.GZ2038>