[PATCH] Use XSTAT_IS_XSTAT64 in generic xstat functions
Steve Ellcey
sellcey@caviumnetworks.com
Thu Nov 10 21:06:00 GMT 2016
Here is an xstat patch to allow the 32 bit generic xstat functions
in sysdeps/unix/sysv/linux/generic/wordsize-32 be aliases of the 64
bit versions.  This is similar to what is done for the non-generic xstat
functions and uses the same macro, XSTAT_IS_XSTAT64, to control if they
are aliased or not.
I tested this on x86 and aarch64 using the top-of-tree sources where it
has no affect and on aarch64 with the rest of the ILP32 patches where
it is used and there were no regressions.
As with the earlier statfs patches I don't know if we want to stick with
this defined/undefined use of XSTAT_IS_XSTAT64 that already exists or
if I should change it to be defined all the time to either 0 or 1. For
this patch, I left it as is.
OK to checkin?
Steve Ellcey
sellcey@caviumnetworks.com
2016-11-10  Yury Norov  <ynorov@caviumnetworks.com>
    Steve Ellcey  <sellcey@caviumnetworks.com>
* sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
fxstat if XSTAT_IS_XSTAT64 is defined.
* sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
fxstatat.
* sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
lxstat.
* sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
* sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
* sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
* sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
an alias of __lxstat64 if XSTAT_IS_XSTAT64 is defined.
* sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
__xstat.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xstat.patch
Type: text/x-patch
Size: 7837 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20161110/598cd77f/attachment.bin>
More information about the Libc-alpha
mailing list