Bug 5191 - Obsolete information about times in struct stat
Summary: Obsolete information about times in struct stat
Alias: None
Product: glibc
Classification: Unclassified
Component: manual (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
Depends on:
Reported: 2007-10-17 11:24 UTC by Stepan Kasal
Modified: 2014-07-04 07:15 UTC (History)
2 users (show)

See Also:
Last reconfirmed:
fweimer: security-


Note You need to log in before you can comment on or make changes to this bug.
Description Stepan Kasal 2007-10-17 11:24:05 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.
Comment 1 Stepan Kasal 2007-10-17 11:44:13 UTC
A correction:
- 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)
Comment 2 Ondrej Bilka 2013-10-12 18:24:49 UTC
Current struct stat has st_atime field, not st_atim. Closing.
Comment 3 Joseph Myers 2013-10-14 14:12:01 UTC
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.