From owner-cvs-all Tue Oct 9 2:55:45 2001 Delivered-To: cvs-all@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id CF2C837B40A; Tue, 9 Oct 2001 02:55:36 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id f999tYX29212; Tue, 9 Oct 2001 10:55:35 +0100 (BST) (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.6/8.11.6) with ESMTP id f999tT490240; Tue, 9 Oct 2001 10:55:29 +0100 (BST) (envelope-from brian@freebsd-services.com) Message-Id: <200110090955.f999tT490240@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Mike Barcroft Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@freebsd-services.com Subject: Re: cvs commit: src/lib/libc/string strnstr.c Makefile.inc strstr.3 src/include string.h In-Reply-To: Message from Mike Barcroft of "Mon, 08 Oct 2001 18:29:57 PDT." <200110090129.f991Tvs39485@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 09 Oct 2001 10:55:29 +0100 From: Brian Somers 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 > mike 2001/10/08 18:29:56 PDT > > Modified files: > lib/libc/string Makefile.inc strstr.3 > include string.h > Added files: > lib/libc/string strnstr.c > 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 > > Revision Changes Path > 1.7 +3 -1 src/include/string.h > 1.24 +3 -1 src/lib/libc/string/Makefile.inc > 1.1 +70 -0 src/lib/libc/string/strnstr.c (new) > 1.8 +51 -12 src/lib/libc/string/strstr.3 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 ? Also, does this need to be MFC'd (I would say not), and does __FreeBSD_version need to be bumped ? -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message