mirror of https://github.com/mkerrisk/man-pages
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:
parent
481142b9e2
commit
a6fcbdf87b
|
@ -37,7 +37,7 @@
|
||||||
.\" 2007-06-08 mtk: Added example program
|
.\" 2007-06-08 mtk: Added example program
|
||||||
.\" 2007-07-05 mtk: Added details on underlying system call interfaces
|
.\" 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
|
.SH NAME
|
||||||
stat, fstat, lstat, fstatat \- get file status
|
stat, fstat, lstat, fstatat \- get file status
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -393,6 +393,11 @@ is an empty string, operate on the file referred to by
|
||||||
.BR open (2)
|
.BR open (2)
|
||||||
.B O_PATH
|
.B O_PATH
|
||||||
flag).
|
flag).
|
||||||
|
If
|
||||||
|
.I dirfd
|
||||||
|
is
|
||||||
|
.BR AT_FDCWD ,
|
||||||
|
the call operates on the current working directory.
|
||||||
In this case,
|
In this case,
|
||||||
.I dirfd
|
.I dirfd
|
||||||
can refer to any type of file, not just a directory.
|
can refer to any type of file, not just a directory.
|
||||||
|
|
Loading…
Reference in New Issue