* наб <nabijaczleweli@xxxxxxxxxxxxxxxxxx>, 2021-11-28, 19:17:
This means, that the simplified
struct timespec {
time_t tv_sec; /* Seconds */
long tv_nsec; /* Nanoseconds [0 .. 999999999] */
};
declaration is *invalid* for x32,
where struct timespec::tv_nsec is an int64_t (long long).
Indeed, it's a long standing bug in glibc (or in the kernel, depending
on your point of view):
https://sourceware.org/bugzilla/show_bug.cgi?id=16437
It's worth documenting, but IMHO this information should be in the BUGS
sections.
--
Jakub Wilk