Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 1999 00:12:18 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        questions@freebsd.org
Subject:   Re: Two versions of malloc()?
Message-ID:  <19990909001218.C279@marder-1>
In-Reply-To: <Pine.BSF.4.05.9909081228110.6392-100000@fw.wintelcom.net>; from Alfred Perlstein on Wed, Sep 08, 1999 at 12:28:28PM %2B0000
References:  <19990908190450.C283@marder-1> <Pine.BSF.4.05.9909081228110.6392-100000@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 08, 1999 at 12:28:28PM +0000, Alfred Perlstein wrote:
> 
> On Wed, 8 Sep 1999, Mark Ovens wrote:
> 
> > Looking at some kernel source I found malloc() called with 3 args.
> > A search revaled this in /usr/include/sys/malloc.h:
> > 
> > void    *malloc __P((unsigned long size, struct malloc_type *type, int flags));
> > 
> > but the manpage, and all versions of malloc I've seen, are simply:
> > 
> > void    *malloc __P((size_t));
> > 
> > This is how it's declared in /usr/include/stdlib.h.
> > 
> > What is the difference and why does the kernel use the former?
> 
> Try man 9 malloc, it should explain a lot.
> 

It does. Thanks for the pointer.

> > 
> > -- 
> > STATE-OF-THE-ART: Any computer you can't afford.
> > OBSOLETE: Any computer you own.
> > ________________________________________________________________
> >       FreeBSD - The Power To Serve http://www.freebsd.org
> >       My Webpage http://ukug.uk.freebsd.org/~mark/
> > mailto:mark@ukug.uk.freebsd.org              http://www.radan.com
> > 
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
STATE-OF-THE-ART: Any computer you can't afford.
OBSOLETE: Any computer you own.
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org              http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990909001218.C279>