This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC] Forcing 64-bits __OFF_T_TYPE and __INO_T_TYPE for new 32-bit architectures?
- From: "Manuel A. Fernandez Montecelo" <manuel dot montezelo at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 6 Jun 2016 19:51:50 +0100
- Subject: [RFC] Forcing 64-bits __OFF_T_TYPE and __INO_T_TYPE for new 32-bit architectures?
- Authentication-results: sourceware.org; auth=none
Hi,
When discussing how to implement these types for the RISC-V architecture
(32, 64 and 128-bit flavours), it seems that there's a drive [1][2] to
force new arches to use the 64-bit versions of these types (so they
would be the same as __OFF64_T_TYPE and __INO64_T_TYPE), even for 32-bit
arches.
Does this look like a reasonable approach?
https://github.com/manuelafm/riscv-gnu-toolchain/commit/764f5ac958618c1ca8761845864164365282ffbd
(also attached)
[1] At least from people in the Linux kernel community.
[2] A further suggestion was that all new arches should default to have
the same width for these types, 64 bits, and override __OFF_T_TYPE
and __INO_T_TYPE for all the existing architectures where they are
currently 32-bits. I don't know if this is desirable at this point.
Cheers.
--
Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>