[PATCH v2] linux: Use 'long int' for timespec tv_nsec on x32 (BZ #16437)
Paul Eggert
eggert@cs.ucla.edu
Sat Dec 11 00:47:12 GMT 2021
On 12/10/21 16:08, Rich Felker wrote:
> this is a bug fix for a serious conformance problem
> that's going to have people writing wacky code to work around x32
In my experience it's not a significant conformance issue. I've had very
little trouble writing user code that's portable to x32 struct timespec.
Generally speaking the code just works anyway; in the few cases where
there might have been trouble the fixes were trivial and non-wacky.
Anybody writing portable struct timespec code has more important
problems than this (e.g., Solaris 11 'stat' can set st_mtim.tv_nsec to a
negative integer, something that's caused me far more hassle). And
anybody porting to x32 has waaaaayy more important problems than this.
> if anyone even actually cares about x32
If the x32 user community (small as it is) doesn't care about this issue
then we all have better things to do than worry about it.
More information about the Libc-alpha
mailing list