stat.2: Note feature test macro requirements for blkcnt_t and blksize_t

Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-09-26 17:36:41 +02:00
parent 3ba63d802e
commit 34c909ac11
1 changed files with 12 additions and 1 deletions

View File

@ -37,7 +37,7 @@
.\" 2007-06-08 mtk: Added example program
.\" 2007-07-05 mtk: Added details on underlying system call interfaces
.\"
.TH STAT 2 2010-09-20 "Linux" "Linux Programmer's Manual"
.TH STAT 2 2010-09-26 "Linux" "Linux Programmer's Manual"
.SH NAME
stat, fstat, lstat \- get file status
.SH SYNOPSIS
@ -370,6 +370,17 @@ fields may be less portable.
(They were introduced in BSD.
The interpretation differs between systems,
and possibly on a single system when NFS mounts are involved.)
If you need to obtain the definition of the
.IR blkcnt_t
or
.IR blksize_t
types from
.IR <sys/stat.h> ,
then define
.BR _XOPEN_SOURCE
with the value 500 or greater (before including
.I any
header files).
.LP
POSIX does not describe the
.BR S_IFMT ,