mirror of https://github.com/mkerrisk/man-pages
stat.2: Tweak description of AT_EMPTY_PATH
Currently it says when dirfd is AT_FDCWD it can be something other than directory, which doesn't make much sense. Just swap the order of sentences. Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
108e40cccb
commit
b78969acbb
|
@ -506,14 +506,14 @@ is an empty string, operate on the file referred to by
|
|||
.BR open (2)
|
||||
.B O_PATH
|
||||
flag).
|
||||
In this case,
|
||||
.I dirfd
|
||||
can refer to any type of file, not just a directory.
|
||||
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.
|
||||
This flag is Linux-specific; define
|
||||
.B _GNU_SOURCE
|
||||
.\" Before glibc 2.16, defining _ATFILE_SOURCE sufficed
|
||||
|
|
Loading…
Reference in New Issue