From owner-cvs-all Tue Oct 9 10:10:32 2001 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 9AD2C37B40A; Tue, 9 Oct 2001 10:10:20 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f99HAJu07141; Tue, 9 Oct 2001 11:10:19 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id f99HAH767190; Tue, 9 Oct 2001 11:10:18 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200110091710.f99HAH767190@harmony.village.org> To: Brian Somers Subject: Re: cvs commit: src/lib/libc/string strnstr.c Makefile.inc strstr.3 src/include string.h Cc: Jeroen Ruigrok/Asmodai , Mike Barcroft , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org In-reply-to: Your message of "Tue, 09 Oct 2001 17:13:45 BST." <200110091613.f99GDk600838@hak.lan.Awfulhak.org> References: <200110091613.f99GDk600838@hak.lan.Awfulhak.org> Date: Tue, 09 Oct 2001 11:10:17 -0600 From: Warner Losh 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 In message <200110091613.f99GDk600838@hak.lan.Awfulhak.org> Brian Somers writes: : > -On [20011009 12:00], Brian Somers (brian@freebsd-services.com) wrote: : > >Is this based on any known standard? : > : > No. : > : > >If not, shouldn't there be a mention that this is a FreeBSD specific : > >API in the man page ? : > : > We don't have a consistent precedent for doing so. : : reallocf() seems like a reasonable sample. reallocf() was added so we didn't have to add the following code: void *p, *newp; newp = realloc(p, size); if (newp == NULL) free(p); p = newp; and have people get it wrong 5 different ways. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message