Poul-Henning Kamp wrote: > 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. If the intended behaviour of malloc is that it returns a pointer to memory that is allocated but which may not be available when accessed, the man page needs to be corrected to make this defect in the implementation clear. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: Setting memory allocators for library functio... Peter Seebach
- Re: Setting memory allocators for library functio... Dag-Erling Smorgrav
- Re: Setting memory allocators for library functio... Peter Seebach
- Re: Setting memory allocators for library functio... Rik van Riel
- Re: Setting memory allocators for library functio... Peter Seebach
- Re: Setting memory allocators for library functio... Warner Losh
- Re: Setting memory allocators for library functio... Peter Seebach
- Re: Setting memory allocators for library functio... Warner Losh
- Re: Setting memory allocators for library functio... Peter Seebach
- Re: Setting memory allocators for library functio... Jos Backus
- Re: Setting memory allocators for library functio... Greg Black
- Re: Setting memory allocators for library functions. Dag-Erling Smorgrav
- Re: Setting memory allocators for library functio... Daniel C. Sobral
- [hackers] Re: Setting memory allocators for libra... David Gilbert
- Re: [hackers] Re: Setting memory allocators for l... Peter Seebach
- Re: [hackers] Re: Setting memory allocators for l... Tony Finch
- Re: [hackers] Re: Setting memory allocators for l... Peter Seebach
- Re: [hackers] Re: Setting memory allocators for l... Lyndon Nerenberg
- Re: [hackers] Re: Setting memory allocators for l... Tony Finch
- Re: [hackers] Re: Setting memory allocators for l... Drew Eckhardt
- Re: [hackers] Re: Setting memory allocators for l... Tony Finch