From owner-freebsd-hackers Fri Aug 21 03:24:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA14174 for freebsd-hackers-outgoing; Fri, 21 Aug 1998 03:24:26 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from hda.hda.com (hda-bicnet.bicnet.net [208.220.66.37]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA14169 for ; Fri, 21 Aug 1998 03:24:23 -0700 (PDT) (envelope-from dufault@hda.hda.com) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id GAA15118; Fri, 21 Aug 1998 06:19:57 -0400 (EDT) From: Peter Dufault Message-Id: <199808211019.GAA15118@hda.hda.com> Subject: Re: Realloc fix for review In-Reply-To: <199808201619.KAA20970@harmony.village.org> from Warner Losh at "Aug 20, 98 10:19:42 am" To: imp@village.org (Warner Losh) Date: Fri, 21 Aug 1998 06:19:56 -0400 (EDT) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > So rather than hack some really complicated a and na's, I write a new > function, added it to libc and then modified all of src/lib to use > this new function. I called it frealloc (freeing realloc). I added > it to the man page, etc. I know that this isn't in ANSI C nor in > POSIX, but after seeing how hard it was to get people to use strncpy > right, I thought it would be good to add this to libc. As long as you are changing the code, how about adding a non-posix header so that there is a well defined place to hang the implementation on another system? In my opinion, believing that a non-standard interface is needed should dictate a non-standard header. It adds an amount of damping in adding non-posix things. Peter -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message