From owner-freebsd-questions Wed May 6 19:48:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA19833 for freebsd-questions-outgoing; Wed, 6 May 1998 19:48:59 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan@dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA19818 for ; Wed, 6 May 1998 19:48:49 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.8.8/8.8.8) id VAA16444; Wed, 6 May 1998 21:48:44 -0500 (CDT) (envelope-from dan) Message-ID: <19980506214844.A16251@emsphone.com> Date: Wed, 6 May 1998 21:48:44 -0500 From: Dan Nelson To: Doug White , "Jason C. Wells" Cc: FreeBSD Questions Subject: Re: malloc.h vs. stdlib.h References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.4i In-Reply-To: ; from "Doug White" on Wed May 6 16:56:48 GMT 1998 X-OS: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (May 06), Doug White said: > On Wed, 6 May 1998, Jason C. Wells wrote: > > > >Probably. That way we're sure it's using our enhanced malloc > > >instead of a local reimplementation. > > > > I got confused here. When you say "use our enhanced malloc" do you mean > > use stdlib.h? > > Yes. Actually, no. To clarify, simply including a header file does not normally (barring #define tricks) make the linker suddenly decide to link in a different function. is included because other OSes used to put the prototype for malloc() in there. malloc() is now prototyped in . SYSV also defined mallopt() and mallinfo() in , but those functions aren't used anymore. SCO 5.0.4 and DEC OSF/1 provide stubs for these functions for backwards compatibility, but they do nothing. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message