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:
Michael Kerrisk 2014-03-10 12:01:39 +01:00
parent 1fef0fa346
commit 496bdb5642
1 changed files with 12 additions and 1 deletions

View File

@ -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.