This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2 1/6] sysv/linux: Rename alpha functions to be alpha specific
- From: Alistair Francis <alistair23 at gmail dot com>
- To: Zack Weinberg <zackw at panix dot com>
- Cc: Alistair Francis <alistair dot francis at wdc dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 10 Feb 2020 13:17:50 -0800
- Subject: Re: [PATCH v2 1/6] sysv/linux: Rename alpha functions to be alpha specific
- References: <20200210174325.6566-1-alistair.francis@wdc.com> <20200210174325.6566-2-alistair.francis@wdc.com> <CAKCAbMgh7LBVLhNzc2WVndo_e=Zo0eFRy8oTBdbAGQb0jvThpA@mail.gmail.com>
On Mon, Feb 10, 2020 at 1:11 PM Zack Weinberg <zackw@panix.com> wrote:
>
> On Mon, Feb 10, 2020 at 12:50 PM Alistair Francis
> <alistair.francis@wdc.com> wrote:
> >
> > These functions are alpha specifc, rename them to be clear.
>
> These functions were meant to be generic. I put the file in
> s/u/s/l/alpha because it was only *used* on Alpha, at the time.
>
> What's stopping you from using these functions on all architectures?
The Alpha functions use 32-bit versions of the timeval struct for a
64-bit architecture. For all other architectures we want to use the
word size version (regardless of time_t size) for the timeval struct.
That's the main difference.
If Alpha didn't have this requirement we could then just remove the
Alpha specific overrides after this series and use all of the new
generic y2038 infrastructure.
Alistair
>
> zw