Re: [PATCH 09/13] tools/nolibc: sys_poll: riscv: use __NR_ppoll_time64 for rv32

Willy Tarreau
2023-05-28T10:30:03Z

Hi Zhangjin,

On Sun, May 28, 2023 at 04:25:09PM +0800, Zhangjin Wu wrote:
> Just a status update ...
>
> I'm working on the pure time64 and 64bit off_t syscalls support, it almost
> worked (tested on rv32/64, arm32/64), thanks very much for your suggestions.
>
> It includes:
>
> * Based on linux/types.h and
> * Use 64bit off_t
> * Use 64bit time_t
> * the new std.h looks like this
>
> typedef uint32_t __kernel_dev_t;
>
> typedef __kernel_dev_t dev_t;
> typedef __kernel_ulong_t ino_t;
> typedef __kernel_mode_t mode_t;
> typedef __kernel_pid_t pid_t;
> typedef __kernel_uid32_t uid_t;
> typedef __kernel_gid32_t gid_t;
> typedef __kernel_loff_t off_t;
> typedef __kernel_time64_t time_t;
> typedef uint32_t nlink_t;
> typedef uint64_t blksize_t;
> typedef uint64_t blkcnt_t;
>
> * Use __kernel_timespec as timespec
> * Use 64bit time_t based struct timeval
> * Disable gettimeofday syscall completely for 32bit platforms
> * And disable the gettimeofday_bad1/2 test case too

When you say "disable", you mean "remap", right ? Or do you mean
"break in 2023 code that was expected to break only in 2038 after
the hardware supporting it no longer exists" ?

Thanks,
Willy