[PATCH] Use XSTAT_IS_XSTAT64 in generic xstat functions
Steve Ellcey
sellcey@caviumnetworks.com
Mon Nov 21 19:21:00 GMT 2016
Here is a new version of my patch to use XSTAT_IS_XSTAT64 in generic 32
bit xstat routines. Â This is needed for the aarch64 ILP32 work where
the xstat and xstat64 routines can be aliased. Â This patch uses #if's
instead of #ifdef's since my earlier patch defined XSTAT_IS_XSTAT64 to
0 or 1 in all of the kernel_stat.h header files.
Tested on x86 and aarch64. Â OK to checkin?
Steve Ellcey
sellcey@caviumnetworks.com
2016-11-21  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 set to non-zero.
        * 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 set to non-zero.
        * 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: 7861 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20161121/9659daed/attachment.bin>
More information about the Libc-alpha
mailing list