[COMMITTED PATCH] Move tilegx, tilepro, and linux-generic from ports to libc.

Szabolcs Nagy szabolcs.nagy@arm.com
Thu Mar 19 10:19:00 GMT 2015



On 18/03/15 11:59, H.J. Lu wrote:
> Any particular reason to add
> 
> sysdeps/unix/sysv/linux/generic/bits/statfs.h
> 
> when there is
> 
> sysdeps/unix/sysv/linux/bits/statfs.h
> 
> already? Why can't it be used?  Here is a patch to remove it. OK
> for master?
> 

the two does not seem to be the same on 32bit archs when 32bit
off_t is used

the first tries to use a layout that is compatible with the
64bit off_t version (so it needs endianness dependent padding)

the second uses the legacy syscall for 32bit off_t mode which
has no paddings

i'm not an expert in the legacy 32bit off_t hacks, but if you
remove the first then all the related functions from
 sysdeps/unix/sysv/linux/generic/wordsize-32/*
(which do 32bit vs 64bit overflow checks etc)




More information about the Libc-alpha mailing list