[PATCH] stat.2: tweak description of AT_EMPTY_PATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 man2/stat.2 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/man2/stat.2 b/man2/stat.2
index 1d838a9..7ec2593 100644
--- a/man2/stat.2
+++ b/man2/stat.2
@@ -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
-- 
2.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux