This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: 32-bit time_t inside itimerval
On Mon, Dec 30, 2019 at 10:22 PM Alistair Francis <alistair23@gmail.com> wrote:
> On Mon, Dec 30, 2019 at 12:11 PM Arnd Bergmann <arnd@arndb.de> wrote:
> > On Mon, Dec 30, 2019 at 8:57 PM Alistair Francis <alistair23@gmail.com> wrote:
> > >
> > > Yeah, agreed. I have updated the RV32 port to internally convert
> > > between 32/64-bit.
> >
> > Any chance of making this the default implementation for 32-bit
> > rather than RV32 specific? The code should be the same for any
> > time64 user space regardless of the architecture.
>
> I was thinking about this.
>
> I don't know of a good way to make it apply only to 32-bit archs with
> a 64-bit time_t.This could actually just apply to all 32-bit archs.
> That way ones that are 64-bit time_t are covered and ones that aren't
> will just do an extra conversion with no effect.
>
> Making it 32-bit in general seems reasonable to me, I just have to
> figure out a way to test it though.
Maybe Lukasz already has a plan for this, I don't think it's
fundamentally different from the other system calls that he has
converted already to work with time64 callers.
Arnd