On 01/16/2017 04:20 PM, Eric Blake wrote:

> And the principle is that POSIX is allowed to make guarantees where the
> C standard left things unspecified, particularly if those guarantees are
> already something that many coders are already relying on because they
> don't know any better.

My case study for that is the fact that storage returned by calloc() and
interpreted as a struct containing pointers is NOT required by the C
standard to treat those fields as null pointers, but POSIX was willing
to add that as an additional requirement:
http://austingroupbugs.net/view.php?id=940

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to