Sourceware Bugzilla – Bug 5191
Obsolete information about times in struct stat
Last modified: 2013-10-14 14:12:01 UTC
The nodes "File Times" and "Attribute Meanings" of the manual (coming from
manual/filesys.texi) describe st_atime and st_atime_nsec (and st_mtime +
This information is not accurate and does not correspond to current state and
POSIX drafts; the current code is st_atim and st_mtim.
- the manual mentiones st_atime_usec, st_mtime_usec, and st_ctime_usec
- the code defines st_atim, at_mtim, and st_ctim
(or st_[amc]timensec, in certain cases)
Current struct stat has st_atime field, not st_atim. Closing.
Please be more careful before closing bugs. If you look for example at sysdeps/unix/sysv/linux/x86/bits/stat.h, and compare with manual/filesys.texi, everything in this bug report still appears valid. Depending on feature test macros, st_atime is either a field or a macro referring to a field within st_atim.