In message <[EMAIL PROTECTED]>, Peter Seebach writes : >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. The guarantee is "If malloc returns NULL there is no memory you can use". That doesn't mean that just because != NULL is returned that memory will in fact be available. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: Setting memory allocators for lib... Farooq Mela
- Re: Setting memory allocators fo... Alfred Perlstein
- Re: Setting memory allocators for library fun... Jonas Bulow
- Re: Setting memory allocators for library functions. Dag-Erling Smorgrav
- Re: Setting memory allocators for library functio... Peter Seebach
- Re: Setting memory allocators for library fun... Dag-Erling Smorgrav
- Re: Setting memory allocators for library... Dag-Erling Smorgrav
- Re: Setting memory allocators for library... Peter Seebach
- Re: Setting memory allocators for lib... Poul-Henning Kamp
- Re: Setting memory allocators fo... Peter Seebach
- Re: Setting memory allocators fo... Poul-Henning Kamp
- Re: Setting memory allocators fo... Peter Seebach
- Re: Setting memory allocators fo... Poul-Henning Kamp
- Re: Setting memory allocators fo... Peter Seebach
- Re: Setting memory allocators fo... Poul-Henning Kamp
- Re: Setting memory allocators fo... Peter Seebach
- Re: Setting memory allocators fo... Poul-Henning Kamp
- Re: Setting memory allocators fo... Peter Seebach
- Re: Setting memory allocators fo... Dag-Erling Smorgrav
- Re: Setting memory allocators fo... Peter Seebach
- Re: Setting memory allocators fo... Rik van Riel