[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #40056] make should automatically detect targets with low resol
From: |
Philip Guenther |
Subject: |
Re: [bug #40056] make should automatically detect targets with low resolution timestamps |
Date: |
Tue, 17 Sep 2013 22:44:26 -0700 |
On Tue, Sep 17, 2013 at 10:12 PM, James Ralston <address@hidden> 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