From owner-freebsd-arch Thu Aug 15 17:33:12 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97B5237B400; Thu, 15 Aug 2002 17:33:09 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99BEB43E65; Thu, 15 Aug 2002 17:33:08 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id g7G0X6wu007383; Thu, 15 Aug 2002 17:33:06 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id g7G0X6Ap007382; Thu, 15 Aug 2002 17:33:06 -0700 Date: Thu, 15 Aug 2002 17:33:06 -0700 From: Brooks Davis To: Maxime Henrion Cc: Terry Lambert , arch@freebsd.org, brooks@freebsd.org Subject: Re: kernel strlcpy Message-ID: <20020815173306.A6719@Odin.AC.HMC.Edu> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020816002240.GI14155@elvis.mu.org>; from mux@freebsd.org on Thu, Aug 15, 2002 at 05:22:40PM -0700 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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