Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jun 2012 10:08:09 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "Andrey A. Chernov" <ache@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r236582 - head/lib/libc/stdlib
Message-ID:  <4FCDBE69.6080906@FreeBSD.org>
In-Reply-To: <201206042134.q54LYoVJ067685@svn.freebsd.org>
References:  <201206042134.q54LYoVJ067685@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-06-04 23:34, Andrey A. Chernov wrote:> Author: ache
> Date: Mon Jun  4 21:34:49 2012
> New Revision: 236582
> URL: http://svn.freebsd.org/changeset/base/236582
> 
> Log:
>   1) IEEE Std 1003.1-2008, "errno" section, is explicit that
>   
>   "The setting of errno after a successful call to a function is
>   unspecified unless the description of that function specifies that
>   errno shall not be modified."
>   
>   However, free() in IEEE Std 1003.1-2008 does not mention its interaction
>   with errno, so MAY modify it after successful call
>   (it depends on particular free() implementation, OS-specific, etc.).

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? ;)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FCDBE69.6080906>