Re: switching ARC to 64-bit time_t (Re: [RFC v6 07/23] RISC-V: Use 64-bit time_t and off_t for RV32 and RV64)

2020-02-25 Thread Arnd Bergmann
On Mon, Feb 24, 2020 at 10:01 AM Lukasz Majewski wrote: > > On Thu, Feb 20, 2020 at 10:37 AM Lukasz Majewski > > wrote: > > which seems a bug in the test suite. The other two get a segfault > > that I have not debugged, but I guess this is likely a problem in your > > patches. Have you seen the s

Re: [PATCH] Force 64-bit time based syscalls for TIMESIZE==64 on 32-bit arches

2020-02-25 Thread Florian Weimer
* Vineet Gupta: > +/* Override syscalls for asm-generic ABIs with 64-bit time. */ > +#if __WORDSIZE == 32 && __TIMESIZE == 64 > + > +# undef __NR_futex > +# define __NR_futex __NR_futex_time64 > + > +# undef __NR_rt_sigtimedwait > +# define __NR_rt_sigtimedwait __NR_rt_sigtimedwait_time64 I'm no

Re: switching ARC to 64-bit time_t (Re: [RFC v6 07/23] RISC-V: Use 64-bit time_t and off_t for RV32 and RV64)

2020-02-25 Thread Lukasz Majewski
Hi Joseph, Thanks for the detailed explanation. > On Mon, 24 Feb 2020, Lukasz Majewski wrote: > > > I'm probably not aware of something - but as done in the following > > patch: > > > > https://github.com/lmajewski/y2038_glibc/commit/c96eeb73175961c4ac80fdd3b6adc132805387c9 > > > > I do need t

Re: switching ARC to 64-bit time_t (Re: [RFC v6 07/23] RISC-V: Use 64-bit time_t and off_t for RV32 and RV64)

2020-02-25 Thread Joseph Myers
On Tue, 25 Feb 2020, Lukasz Majewski wrote: > Lets consider for example __mq_timedsend_time64. > > With lib_hidden_def/proto kept (NOT removed as in [1]): > GDB: > __GI___mq_timedsend_time64 [*] > > (No build errors, linking with test setup works as expected). What is the actual testcase, and

Re: [PATCH v3] asm-generic ABI: Allow statx syscall despite fstatat64, fstat64

2020-02-25 Thread Joseph Myers
On Mon, 24 Feb 2020, Vineet Gupta wrote: > Oh wait. Can we avoid this churn by simply undef __NR_fstat64 and > __NR_fstatat64 > from ARC sysdep.h ? And it will then automatically fallback to statx code ! If all files needing this information include sysdep.h, that might well work. -- Joseph S

Re: [PATCH v3] asm-generic ABI: Allow statx syscall despite fstatat64, fstat64

2020-02-25 Thread Vineet Gupta
On 2/25/20 8:10 AM, Joseph Myers wrote: > On Mon, 24 Feb 2020, Vineet Gupta wrote: > >> Oh wait. Can we avoid this churn by simply undef __NR_fstat64 and >> __NR_fstatat64 >> from ARC sysdep.h ? And it will then automatically fallback to statx code ! > > If all files needing this information incl