Date: Sat, 24 Feb 2001 14:43:47 -0600 From: seebs@plethora.net (Peter Seebach) To: freebsd-hackers@freebsd.org Subject: Re: Setting memory allocators for library functions. Message-ID: <200102242043.f1OKhl618691@guild.plethora.net> In-Reply-To: Your message of "Sat, 24 Feb 2001 21:42:28 %2B0100." <9402.983047348@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <9402.983047348@critter>, Poul-Henning Kamp writes: >>Well, no, but the sole available definition of "portable" says that it is >>"portable" to assume that all the memory malloc can return is really >>available. >No, this is not a guarantee. Yes, it is. If the memory isn't available, malloc returns NULL. >We also don't guarantee that you can read a file just because you >managed to open it (disk errors, nfs servers going away, forced >unmounts). Sure. And all the IO functions have return codes. -s 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?200102242043.f1OKhl618691>