Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/stdlib



On Sun, Jul 19, 2015 at 11:13:48PM +0200, Kamil Rytarowski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On 19.07.2015 20:56, Joerg Sonnenberger wrote:
> > On Thu, Jul 16, 2015 at 12:12:27PM +0200, Kamil Rytarowski wrote:
> >> The C standard permits memcpy(3) to affect errno(2).
> > 
> > More like it hasn't explicitly ruled it out. That might or might 
> > not be seen as an oversight, but pretty much any compiler uses 
> > memcpy(3) under the assumption that it does not. If you really care
> > about this case, please raise a DR against ISO C and get a 
> > clarification of the intention, before further changes to src.
> > 
> 
> Thanks.
> It is also for the consistency with lines 63-64 of the same file.

...which is quite different. free(3) is quite likely to set errno for a
number of reasons and historic versions at least have been known to
actually have failure modes.

Joerg


Home | Main Index | Thread Index | Old Index