From owner-freebsd-current Tue Dec 19 10:51:36 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA27950 for current-outgoing; Tue, 19 Dec 1995 10:51:36 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA27941 for ; Tue, 19 Dec 1995 10:51:22 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA15110; Tue, 19 Dec 1995 11:47:47 -0700 From: Terry Lambert Message-Id: <199512191847.LAA15110@phaeton.artisoft.com> Subject: Re: Mis-feature in -current To: nate@rocky.sri.MT.net (Nate Williams) Date: Tue, 19 Dec 1995 11:47:47 -0700 (MST) Cc: terry@lambert.org, nate@rocky.sri.MT.net, current@FreeBSD.org In-Reply-To: <199512191845.LAA27145@rocky.sri.MT.net> from "Nate Williams" at Dec 19, 95 11:45:01 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org Precedence: bulk > > > > How many times is strlen used, and could it maybe be recoded instead? > > > > > > Why would it need to be recoded? As it stands currently (and this will > > > not change for some time), the code in libkern/strlen.c is completely > > > adequate to do the job. > > > > I meant recoded to not use strlen. > > > > wchar_t springs to mind as a likely reason. > > I'm just trying to fix -current, not re-code the kernel. If it ain't > broke, don't fix it. If it is broke, fix the broken-ness and not > introduce new brokeness because it sounds like a good idea. I just meant that if it was only one or two places. I went grepping: It's more than 60 places. So never mind. I agree with adding it back into the lib for now. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.