]> sourceware.org Git - glibc.git/commit
RISC-V: Use 64-bit time_t and off_t for RV32 and RV64
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 21 Jun 2019 18:31:56 +0000 (11:31 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 27 Aug 2020 15:17:41 +0000 (08:17 -0700)
commit2b09ebeee766be3678896b2a0e61e54a8ad10128
tree025bc2c531ef5c05f7bfa2a179213677ecf5ad4d
parentfda4d81801e9d972c029fb4ed1162b960eb540b5
RISC-V: Use 64-bit time_t and off_t for RV32 and RV64

Using the original glibc headers under bits/ let's make small
modifications to use 64-bit time_t and off_t for both RV32 and RV64.

For the typesizes.h, here are justifications for the changes from the
generic version (based on Arnd's very helpful feedback):
- All the !__USE_FILE_OFFSET64 types (__off_t, __ino_t, __rlim_t, ...)
  are changed to match the 64-bit replacements.

- __time_t is defined to 64 bit, but no __time64_t is added. This makes
  sense as we don't have the time64 support for other 32-bit
  architectures yet, and it will be easy to change when that happens.

- __suseconds_t is 64-bit. This matches what we use the kernel ABI for
  the few drivers that are relying on 'struct timeval' input arguments
  in ioctl, as well as the adjtimex system call. It means that timeval
  has to be defined without the padding, unlike timespec, which needs
  padding.

Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
sysdeps/unix/sysv/linux/riscv/bits/environments.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/riscv/bits/time64.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/riscv/bits/timesize.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/riscv/kernel_stat.h [new file with mode: 0644]
This page took 0.042634 seconds and 5 git commands to generate.