[RFC v2 08/20] sysdeps/wait: Use waitid if avaliable
Joseph Myers
joseph@codesourcery.com
Thu Jul 25 15:49:00 GMT 2019
On Mon, 8 Jul 2019, Florian Weimer wrote:
> > I'm talking about legacy 32-bit architectures.
>
> Ah. Yes, I one would hope that.
>
> But there has been talk of a kernel option to remove it even there, and
> a suggestion that glibc would try the 64-bit time_t system call first,
> to see if it is available, and prefer that.
>
> I think this would be quite ⦠wrong.
glibc should generally use the 64-bit time_t system call first on legacy
32-bit architectures (and especially in cases such as futex where there is
a large amount of logic in glibc at a higher level in the syscall, which
it is particularly important to avoid duplicating for different time_t
choices), not because of systems with the 32-bit syscall removed where it
was previously part of the kernel ABI expected by glibc (those are not
something reasonably supportable), but to avoid duplication and code bloat
at both the source and binary level and to have a single consistent design
(32-bit functions wrap the corresponding 64-bit ones, in all cases where
the function is defined in C rather than through syscalls.list) rather
than attempting to define what is or is not a sufficiently trivial
function implementation that duplication is not a problem.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list