Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2002 17:33:06 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Maxime Henrion <mux@freebsd.org>
Cc:        Terry Lambert <tlambert2@mindspring.com>, arch@freebsd.org, brooks@freebsd.org
Subject:   Re: kernel strlcpy
Message-ID:  <20020815173306.A6719@Odin.AC.HMC.Edu>
In-Reply-To: <20020816002240.GI14155@elvis.mu.org>; from mux@freebsd.org on Thu, Aug 15, 2002 at 05:22:40PM -0700
References:  <20020815122641.B21334@Odin.AC.HMC.Edu> <20020815193028.GF14155@elvis.mu.org> <3D5C22E2.33A82B55@mindspring.com> <20020815223849.GH14155@elvis.mu.org> <3D5C32F8.484AECD3@mindspring.com> <20020816002240.GI14155@elvis.mu.org>

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

--EeQfGwPcQSOJBaQU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 15, 2002 at 05:22:40PM -0700, Maxime Henrion wrote:
> Terry Lambert wrote:
> > How about deleting strncpy() when you import strlcpy()?
>=20
> That would require that the person who does the import also converts all
> consumers at the same time.  Maybe that extra pain is not necessary, and
> we could do the transition in a more smooth way.  Of course, then there
> is the risk that people will forget about that and live with both
> functions forever.

I'm definatly not planning to do that.  I'm sure a good portion of the
320 instances of strncpy in /sys are canidates for strlcpy, but I
wouldn't bet on all of them, espeicaly since APCI defines an
APCI_STRNCPY macro.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--EeQfGwPcQSOJBaQU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9XEhBXY6L6fI4GtQRAvMZAJ0RIH1dNy4CD+IpVql8WUNXCTe5zQCgukjm
QPet76kX1gQkzudaR2wW7WE=
=FmTr
-----END PGP SIGNATURE-----

--EeQfGwPcQSOJBaQU--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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