[Y2038] Replacement of struct timespec with struct __timespec64 in glibc internal code
Joseph Myers
joseph@codesourcery.com
Wed Jun 24 22:10:25 GMT 2020
On Wed, 24 Jun 2020, Lukasz Majewski wrote:
> > The functions in support/timespec-*.c should probably be renamed to
> > xtimespec_*.
>
> And the 'x' prefix means that those functions are supposed to be used
> for testing?
The 'x' prefix is in the style of xmalloc as used in many GNU packages -
checking for errors in a safer way than the default libc API.
Most of the 'x' functions are thereby unsuitable for use in library code,
but may be used in tests and in code that goes into the various
executables shipped with glibc, because they exit the program on error and
library code should generally not do that. (The 'x' names are also not in
the implementation namespace; non-static internal functions used within
library code need to have reserved names such as __*.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list