Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2001 12:49:59 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        =?iso-8859-1?q?vishwanath=20pargaonkar?= <vishubp@yahoo.com>
Cc:        tlambert2@mindspring.com, Zhihui Zhang <zzhang@cs.binghamton.edu>, Bosko Milekic <bmilekic@technokratis.com>, Alfred Perlstein <bright@mu.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: malloc 
Message-ID:  <Pine.BSF.4.21.0108031249150.51833-100000@InterJet.elischer.org>
In-Reply-To: <20010803082921.4234.qmail@web5304.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0108031249150.51833-100000>