stat.2: Note POSIX.1-2001 and POSIX.1-2008 requirements for lstat()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2011-10-01 07:15:05 +02:00
parent beb0ebc887
commit d3e8b1410a
1 changed files with 14 additions and 0 deletions

View File

@ -363,6 +363,20 @@ These system calls conform to SVr4, 4.3BSD, POSIX.1-2001.
.\" .BR lstat ()
.\" error conditions EINTR, EMULTIHOP, ENOLINK, and EOVERFLOW.
According to POSIX.1-2001,
.BR lstat ()
on a symbolic link need return valid information only in the
.I st_size
field and the file-type component of the
.IR st_mode
field of the
.IR stat
structure.
POSIX.-2008 tightens the specification, requiring
.BR lstat ()
to return valid information in all fields except the permission bits in
.IR st_mode .
Use of the
.I st_blocks
and