summaryrefslogtreecommitdiffstats
path: root/man3type/stat.3type
diff options
context:
space:
mode:
Diffstat (limited to 'man3type/stat.3type')
-rw-r--r--man3type/stat.3type18
1 files changed, 10 insertions, 8 deletions
diff --git a/man3type/stat.3type b/man3type/stat.3type
index 09caa2696..663064187 100644
--- a/man3type/stat.3type
+++ b/man3type/stat.3type
@@ -4,7 +4,7 @@
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.\"
-.TH stat 3type 2023-02-05 "Linux man-pages 6.03"
+.TH stat 3type 2023-05-03 "Linux man-pages 6.05.01"
.SH NAME
stat \- file status
.SH LIBRARY
@@ -25,17 +25,17 @@ Standard C library
.BR " off_t st_size;" " /* Total size, in bytes */"
.BR " blksize_t st_blksize;" " /* Block size for filesystem I/O */"
.BR " blkcnt_t st_blocks;" " /* Number of 512 B blocks allocated */"
-
+\&
/* Since POSIX.1-2008, this structure supports nanosecond
precision for the following timestamp fields.
For the details before POSIX.1-2008, see VERSIONS. */
-
+\&
.BR " struct timespec st_atim;" " /* Time of last access */"
.BR " struct timespec st_mtim;" " /* Time of last modification */"
.BR " struct timespec st_ctim;" " /* Time of last status change */"
-
+\&
.BR "#define st_atime st_atim.tv_sec" " /* Backward compatibility */"
-.B "#define st_mtine st_mtim.tv_sec"
+.B "#define st_mtime st_mtim.tv_sec"
.B "#define st_ctime st_ctim.tv_sec"
.B };
.EE
@@ -116,7 +116,11 @@ This is the file's last status change timestamp
.PP
For further information on the above fields, see
.BR inode (7).
-.SH VERSIONS
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
Old kernels and old standards did not support nanosecond timestamp fields.
Instead, there were three timestamp
.RI fields\[em] st_atime ,
@@ -150,8 +154,6 @@ is defined.
If none of the aforementioned macros are defined,
then the nanosecond values are exposed with names of the form
.IR st_atimensec .
-.SH STANDARDS
-POSIX.1-2001 and later.
.SH NOTES
The following header also provides this type:
.IR <ftw.h> .