From owner-freebsd-questions Wed Sep 8 12:12:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id BD9EB1509E for ; Wed, 8 Sep 1999 12:12:23 -0700 (PDT) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.8.8/8.8.8) with ESMTP id FAA16392; Wed, 8 Sep 1999 05:28:28 -0700 (PDT) (envelope-from bright@wintelcom.net) Date: Wed, 8 Sep 1999 12:28:28 +0000 (GMT) From: Alfred Perlstein To: Mark Ovens Cc: questions@FreeBSD.ORG Subject: Re: Two versions of malloc()? In-Reply-To: <19990908190450.C283@marder-1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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