From owner-cvs-all Tue Oct 30 15:32:27 2001 Delivered-To: cvs-all@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 1AA2837B408; Tue, 30 Oct 2001 15:32:24 -0800 (PST) Received: from hades.hell.gr (patr530-a137.otenet.gr [212.205.215.137]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f9UNWJG18451; Wed, 31 Oct 2001 01:32:19 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f9UNWIT57523; Wed, 31 Oct 2001 01:32:18 +0200 (EET) (envelope-from charon@labs.gr) Date: Wed, 31 Oct 2001 01:32:17 +0200 From: Giorgos Keramidas To: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/include malloc.h Message-ID: <20011031013217.A57487@hades.hell.gr> References: <20011030164640.C31154@straylight.oblivion.bg> <20011030165156.D31154@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011030165156.D31154@straylight.oblivion.bg> User-Agent: Mutt/1.3.22.1i 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 On Tue, Oct 30, 2001 at 04:51:56PM +0200, Peter Pentchev wrote: > > The idea behind the piece of code is 'use stdlib.h on BSDI, malloc.h > everywhere else'. Apparently, 'everywhere else' was supposed to mean > 'on Linux' :( I know it is so, because this broke for me when I put > the #error in my -stable's malloc.h :) Actually on a fairly recent Slackware installation, stdlib.h says: #ifndef __malloc_and_calloc_defined #define __malloc_and_calloc_defined extern __ptr_t malloc __P ((size_t __size)); extern __ptr_t calloc __P ((size_t __nmemb, size_t __size)); #endif So, even in linux, there's no excuse to use malloc.h :-) -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message