* lib/stat-time.h (USE_BIRTHTIME): Remove.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Mar 2007 18:51:17 +0000 (18:51 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Mar 2007 18:51:17 +0000 (18:51 +0000)
commitb11bca01075e21c9da564227c61e482fe3410dd3
tree93de7c3d06ee88a5be7bc923155eb53fe5bc414f
parentfb2f5965e0863b2c8df0e148eb1ad02ec2079817
* lib/stat-time.h (USE_BIRTHTIME): Remove.
(get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
(get_stat_birthtime_ns): Do not try to use "spare" fields.
(get_stat_birthtime_ns): Simplify compile-time tests.
(get_stat_birthtime): Change the API to look like
get_stat_mtime etc., except return a negative tv_nsec on error.
* m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
Don't check for "spare" fields.
(gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
or for struct stat.st_birthtime, as these tests aren't used.
* tests/test-stat-time.c (test_birthtime): Adjust to new API.
ChangeLog
lib/stat-time.h
m4/stat-time.m4
tests/test-stat-time.c