From a6fcbdf87bbad62a0c2ce774f17ddcd8f198dd11 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 19 Mar 2014 16:52:09 +0100 Subject: [PATCH] stat.2: Note that 'dirfd' can be AT_FDCWD when AT_EMPTY_PATH is used Signed-off-by: Michael Kerrisk --- man2/stat.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man2/stat.2 b/man2/stat.2 index b4c853b5b..c2ab94cce 100644 --- a/man2/stat.2 +++ b/man2/stat.2 @@ -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.