This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 6/6] linux: Use 32-bit time_t for rusage
On Fri, Feb 7, 2020 at 12:51 AM Lukasz Majewski <lukma@denx.de> wrote:
>
> Hi Joseph,
>
> > On Tue, 4 Feb 2020, Lukasz Majewski wrote:
> >
> > > > unix/linux/generic/wordsize-32 cannot be used for armv7, since it
> > > > doesn't use asm-generic syscalls.
> > >
> > > Could you elaborate on this?
> >
> > There was a long discussion on the linux-kernel mailing list in 2008,
> > much of which was under the subject "microblaze syscall list".
> >
> > The conclusion of that discussion was that, whereas architectures for
> > which support was added to the Linux kernel up to that point each had
> > their own syscall ABI (their own syscall numbers, their own set of
> > associated structure layouts and constants - those layouts and
> > constants often following those used by some older proprietary Unix
> > on the same architecture, in the cases of the oldest Linux kernel
> > ports), newer Linux kernel ports would share a common syscall ABI as
> > far as possible, meaning the same syscall numbers, constants and
> > structure layouts. This common ABI is known as the generic or
> > asm-generic ABI.
> >
> > In glibc, sysdeps/unix/sysv/linux/generic is for architectures using
> > the asm-generic syscall ABI, and *only* for such architectures
> > (which, in the end, did not include microblaze). This should not be
> > confused with other uses of the word "generic" in the glibc context,
> > in particular sysdeps/generic/.
> >
> > As the Linux kernel arm port was added before 2008, it does not use
> > the generic ABI and so cannot use sysdeps/unix/sysv/linux/generic.
> >
>
> Thank you for the explanation.
>
> Considering the above - it would be best to place
> setitimer/getitimer/getrusage code into sysdeps/unix/sysv/linux , so
> all Linux glibc ports could use them.
I just sent a v2 that does exactly that.
Alistair
>
>
> Best regards,
>
> Lukasz Majewski
>
> --
>
> DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de