Re: [PATCH v3 0/3] Add a futex interface to glibc (sys/futex.h)

Paul Eggert <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2026-08-25 09:50, Adhemerval Zanella wrote:
> The
> futex_timedwait supports both time_t sizes with the usual TIME_BITS=64
> redirection

There's no backward-compatibility need for this, since it's a new glibc API. How about if this function supports only 64-bit time_t instead?

This issue is independent of what glibc does internally. Internally glibc may use helper functions that act like futex_timedwait but support 32-bit time_t, but I don't see why the 32-bit time_t functionality needs to be exposed to user apps.

At least, if there is a real need for futex_timedwait to support 32-bit time_t, that need should be explained in the patch and/or the documentation. It's confusing that some of the new API supports 32-bit time_t but other parts of it (e.g., futex_waitv) do not.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.