svn commit: r236582 - head/lib/libc/stdlib

Andrey Chernov ache at FreeBSD.ORG
Tue Jun 5 12:53:00 UTC 2012


On Tue, Jun 05, 2012 at 04:39:01PM +0400, Andrey Chernov wrote:
> > Actually, it says the following:
> > 
> >   RETURN VALUE
> > 
> >       The free() function shall not return a value.
> > 
> >   ERRORS
> > 
> >       No errors are defined.
> > 
> > How much clearer do you want it? ;)
> 
> It is pretty clear.
> The function is not specified that errno shall not be modified.
> You mstake errors with direct mention of not modified errno, as POSIX 
> requires.
> 
> Moreover, standard metion "unsuccessful call" case for free() where errno 
> state is totally undefined.

BTW, this interpretation is not my invention, look at this discussion
where Austin Groupd agrees that it is the case:
http://austingroupbugs.net/view.php?id=385

-- 
http://ache.vniz.net/


More information about the svn-src-all mailing list