stat.2: Note that 'dirfd' can be AT_FDCWD when AT_EMPTY_PATH is used

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-03-19 16:52:09 +01:00
parent 481142b9e2
commit a6fcbdf87b
1 changed files with 6 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 2014-03-17 "Linux" "Linux Programmer's Manual"
.TH STAT 2 2014-03-19 "Linux" "Linux Programmer's Manual"
.SH NAME
stat, fstat, lstat, fstatat \- get file status
.SH SYNOPSIS
@ -393,6 +393,11 @@ is an empty string, operate on the file referred to by
.BR open (2)
.B O_PATH
flag).
If
.I dirfd
is
.BR AT_FDCWD ,
the call operates on the current working directory.
In this case,
.I dirfd
can refer to any type of file, not just a directory.