From owner-freebsd-hackers Fri Aug 3 10:46:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id A202637B406 for ; Fri, 3 Aug 2001 10:46:27 -0700 (PDT) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA51925; Fri, 3 Aug 2001 12:50:00 -0700 (PDT) Date: Fri, 3 Aug 2001 12:49:59 -0700 (PDT) From: Julian Elischer To: =?iso-8859-1?q?vishwanath=20pargaonkar?= Cc: tlambert2@mindspring.com, Zhihui Zhang , Bosko Milekic , Alfred Perlstein , freebsd-hackers@FreeBSD.ORG Subject: Re: malloc In-Reply-To: <20010803082921.4234.qmail@web5304.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 3 Aug 2001, [iso-8859-1] vishwanath pargaonkar wrote: > Hi, > can anybody tell me in malloc what does third > parameter > DONTWAIT ,NOWAIT and WAITOK mean? > Bcoz i have function being called using timeout.in > that function i need to malloc a buffer. > can i use WAITOK? > please tell me abt this. you must use NOWAIT, and you must handle the case where it may fail and return NULL. > > > TIA > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message