On Tue, Sep 17, 2013 at 10:12 PM, James Ralston <[email protected]> wrote:
...
> The statfs(2) system call will return the f_type field in the struct statfs,
> but unfortunately, the field is the same for all variants of ext (ext2, ext3,
> ext4). So as far as I know (although I would be happy to be corrected), there
> is no library or system call that will reveal whether the filesystem that an
> arbitrary file is on supports high resolution timestamps.
You're looking for
pathconf(path, _PC_TIMESTAMP_RESOLUTION)
See also:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/fpathconf.html
However, last I checked glibc and Linux didn't implement it.
Philip Guenther
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make