From owner-cvs-all Wed Oct 10 8:12:54 2001 Delivered-To: cvs-all@freebsd.org Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by hub.freebsd.org (Postfix) with ESMTP id B1B1937B405; Wed, 10 Oct 2001 08:12:37 -0700 (PDT) Received: from vega.vega.com (h214.228.dialup.iptcom.net [212.9.228.214]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id SAA04713; Wed, 10 Oct 2001 18:11:50 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id f9AFBGU45636; Wed, 10 Oct 2001 18:11:16 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <3BC4658D.2D91B7D8@FreeBSD.org> Date: Wed, 10 Oct 2001 18:13:17 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Paul Richards Cc: Garance A Drosihn , Brian Somers , Mike Barcroft , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/string strnstr.c Makefile.inc strstr.3src/include string.h References: <200110090955.f999tT490240@hak.lan.Awfulhak.org> <1468350000.1002725080@lobster.originative.co.uk> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Paul Richards wrote: > --On Tuesday, October 09, 2001 11:12:25 -0400 Garance A Drosihn > wrote: > > > At 10:55 AM +0100 10/9/01, Brian Somers wrote: > >> > mike 2001/10/08 18:29:56 PDT > >> > Log: > >>> Add a new libc function, strnstr(3), which allows one to limit the > >>> number of characters that are searched. This is especially useful > >>> with file operations and non-NUL terminated strings. > >>> > >>> Silence from: -audit, -hackers > >> > MFC after: 5 days > >> > >> Is this based on any known standard ? If not, shouldn't there be > >> a mention that this is a FreeBSD specific API in the man page ? > > > > That sounds like a good idea to me. > > > >> Also, does this need to be MFC'd (I would say not), and does > >> __FreeBSD_version need to be bumped ? > > > > Why wouldn't we MFC this? As I understand it, this routine has been > > added to fix a problem. Why wouldn't we want to make that fix > > available for -stable? Why wait a year (for 5.0 to become the > > stable branch)? > > It only fixes a problem if you rewrite the applications to use it, and then > those applications won't run on earlier 4.x branches. > > I'm not sure the rule of not breaking binary compatibility across -stable > branches has any relevance any more though since it's already a screwed > policy. Correct me if I am wrong, but we never actually were strongly enforcing forward binary compatibility, so that it should not be a big problem. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message