[PATCH] linux: Use stat_overflow to check overflow in fstatat

Stafford Horne shorne@gmail.com
Wed Jan 27 23:28:29 GMT 2021


On Wed, Jan 27, 2021 at 10:28:58AM -0300, Adhemerval Zanella wrote:
> 
> 
> On 27/01/2021 09:40, Stafford Horne wrote:
> > Ping Adhemerval on this one.
> > 
> > I still thing the below is needed for the STAT_IS_KERNEL_STAT
> > cases.
> > 
> 
> Why OpenRISC is not setting XSTAT_IS_XSTAT64 ? As a possible newer
> ABI, I see no pointing in support old non-LFS ABI.

OK, I got it.
I'll try to turn that on.  I was not so clear on what all of the *STAT_IS_*
macros defined, so I was trying to just go with the generic defaults.

On OpenRISC which is only 32-bit XSTAT_IS_XSTAT64 is set to zero.

As per: sysdeps/unix/sysv/linux/generic/kernel_stat.h

    #if __WORDSIZE == 64
    # define XSTAT_IS_XSTAT64 1
    #else
    # define XSTAT_IS_XSTAT64 0
    #endif

Again, I'll see what I can do.

-Stafford


More information about the Libc-alpha mailing list