This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]