Follow-up Comment #4, bug #40056 (project make):
Philip is correct: I can find no evidence that any version of glibc
(released or development) implements pathconf(path,
_PC_TIMESTAMP_RESOLUTION).
So, unfortunately, currently the only way under Linux to determine if a file
has nanosecond timestamp resolution is to simply test whether the file's
nanosecond timestamp is nonzero.
I can assert that recent versions of "cp" and "install" *do* preserve
nanosecond timestamps. So if glibc implements pathconf(path,
_PC_TIMESTAMP_RESOLUTION) someday, it should be possible to use it to
determine file timestamp granularity without looking at the nanosecond
timestamp file, because any system new enough to have pathconf(path,
_PC_TIMESTAMP_RESOLUTION) would also have non-broken versions of "cp" and
"install".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40056>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make