From owner-freebsd-hackers Sat Aug 22 07:48:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08023 for freebsd-hackers-outgoing; Sat, 22 Aug 1998 07:48:22 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.camalott.com ([208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08017 for ; Sat, 22 Aug 1998 07:48:20 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-114.camalott.com [208.229.74.114]) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id JAA19758; Sat, 22 Aug 1998 09:49:14 -0500 Received: (from joelh@localhost) by detlev.UUCP (8.9.1/8.9.1) id RAA00602; Fri, 21 Aug 1998 17:58:55 -0500 (CDT) (envelope-from joelh) Date: Fri, 21 Aug 1998 17:58:55 -0500 (CDT) Message-Id: <199808212258.RAA00602@detlev.UUCP> To: Don.Lewis@tsc.tdk.com CC: hackers@FreeBSD.ORG In-reply-to: <199808210523.WAA08503@salsa.gv.tsc.tdk.com> (message from Don Lewis on Thu, 20 Aug 1998 22:23:43 -0700) Subject: Re: Realloc fix for review From: Joel Ray Holveck Reply-to: joelh@gnu.org References: <199808210523.WAA08503@salsa.gv.tsc.tdk.com> 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. > I'd worry about causing name space pollution. You might break someone > else's code who has their own function called frealloc ... Isn't that what weak symbols in libc are for? Best, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message