[PATCH 3/5] linux: Use statx for MIPSn64
Adhemerval Zanella
adhemerval.zanella@linaro.org
Thu Apr 1 12:45:31 GMT 2021
On 31/03/2021 21:07, Maciej W. Rozycki wrote:
> On Fri, 19 Mar 2021, Adhemerval Zanella via Libc-alpha wrote:
>
>> diff --git a/sysdeps/unix/sysv/linux/fstatat64.c b/sysdeps/unix/sysv/linux/fstatat64.c
>> index c3a030af58..b9b8cd994b 100644
>> --- a/sysdeps/unix/sysv/linux/fstatat64.c
>> +++ b/sysdeps/unix/sysv/linux/fstatat64.c
>> @@ -117,7 +137,8 @@ fstatat64_time64_stat (int fd, const char *file, struct __stat64_t64 *buf,
>> }
>>
>> #if (__WORDSIZE == 32 \
>> - && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
>> + && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) \
>> + || defined STAT_HAS_TIME32
>
> Weird indentation here (which made me wonder how the ordering between &&
> and || has been resolved so that GCC does not complain before I realised
> it's simply misindented parenthesisation). Only caught as I saw the GIT
> commit message though.
The preprocessor indentation is confusing sometimes, but I think it should
adjusted only slight to follow other usages:
diff --git a/sysdeps/unix/sysv/linux/fstatat64.c b/sysdeps/unix/sysv/linux/fstatat64.c
index f968e4ef05..ab25f64187 100644
--- a/sysdeps/unix/sysv/linux/fstatat64.c
+++ b/sysdeps/unix/sysv/linux/fstatat64.c
@@ -137,7 +137,7 @@ fstatat64_time64_stat (int fd, const char *file, struct __stat64_t64 *buf,
#if (__WORDSIZE == 32 \
&& (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) \
- || defined STAT_HAS_TIME32
+ || defined STAT_HAS_TIME32
# define FSTATAT_USE_STATX 1
#else
Am I missing something here?
More information about the Libc-alpha
mailing list