Date: Wed, 8 Sep 1999 12:28:28 +0000 (GMT) From: Alfred Perlstein <bright@wintelcom.net> To: Mark Ovens <mark@dogma.freebsd-uk.eu.org> Cc: questions@FreeBSD.ORG Subject: Re: Two versions of malloc()? Message-ID: <Pine.BSF.4.05.9909081228110.6392-100000@fw.wintelcom.net> In-Reply-To: <19990908190450.C283@marder-1>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > > -- > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9909081228110.6392-100000>