mirror of https://github.com/mkerrisk/man-pages
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:
parent
beb0ebc887
commit
d3e8b1410a
14
man2/stat.2
14
man2/stat.2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue