[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #40056] make should automatically detect targets with low resolutio
From: |
James Ralston |
Subject: |
[bug #40056] make should automatically detect targets with low resolution timestamps |
Date: |
Tue, 24 Sep 2013 03:12:50 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.6.24-1.fc14 Firefox/3.6.24 |
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/