mirror of https://github.com/mkerrisk/man-pages
stat.2: Warn the reader that the 'stat' structure definition is not precise
Padding fields aren't shown, and the order of fields varies somewhat across architectures. Reported-by: Marius Gaubas <marius@livejournalinc.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1fef0fa346
commit
496bdb5642
13
man2/stat.2
13
man2/stat.2
|
@ -159,7 +159,18 @@ struct stat {
|
|||
};
|
||||
.fi
|
||||
.in
|
||||
.PP
|
||||
|
||||
.I Note:
|
||||
the order of fields in the
|
||||
.I stat
|
||||
structure varies somewhat
|
||||
across architectures.
|
||||
In addition,
|
||||
the definition above does not show the padding bytes
|
||||
that may be present between some fields on various architectures.
|
||||
Consult the the glibc and kernel source code
|
||||
if you need to know the details.
|
||||
|
||||
The
|
||||
.I st_dev
|
||||
field describes the device on which this file resides.
|
||||
|
|
Loading…
Reference in New Issue