This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Forcing 64-bits __OFF_T_TYPE and __INO_T_TYPE for new 32-bit architectures?
- From: Zack Weinberg <zackw at panix dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: "Manuel A. Fernandez Montecelo" <manuel dot montezelo at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 6 Jun 2016 16:21:35 -0400
- Subject: Re: [RFC] Forcing 64-bits __OFF_T_TYPE and __INO_T_TYPE for new 32-bit architectures?
- Authentication-results: sourceware.org; auth=none
- References: <20160606185149 dot GA11555 at reva dot itsari dot org> <20160606185423 dot GA12134 at reva dot itsari dot org> <CAKCAbMiRdHE7bV5=5mk3-rR6fTPdwasG9bhY-iGh7-zNQ8GxSg at mail dot gmail dot com> <alpine dot DEB dot 2 dot 20 dot 1606061958200 dot 10972 at digraph dot polyomino dot org dot uk>
On Mon, Jun 6, 2016 at 4:03 PM, Joseph Myers <joseph@codesourcery.com> wrote
> On Mon, 6 Jun 2016, Zack Weinberg wrote:
>> (And anything else affected by -D_FILE_OFFSET_BITS=64 that
>> I missed.) And, while we're at it, time_t?
>
> For time_t, again, make sure to avoid the x32 mistake with a
> non-POSIX-conforming type for nanoseconds (you can have endian-appropriate
> explicit padding if you want to match a 64-bit ABI, but tv_nsec should
> have type "long" and the kernel needs to ignore the padding on input).
IMNSHO it's POSIX (and C also now, unfortunately) that should change
in that case; there should always have been an nsec_t.
zw