[PATCH 2/2] inotify.2: Note errors that can occur for IN_MASK_CREATE

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

 



From: Henry Wilson <henry.wilson@xxxxxxxxxxx>

Note EEXIST error that occurs when requesting a watch on a path
which is already watched with IN_MASK_CREATE.

Note EINVAL error also occurs when requesting a watch specifying
both IN_MASK_CREATE and IN_MASK_ADD.
---
 man2/inotify_add_watch.2 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/man2/inotify_add_watch.2 b/man2/inotify_add_watch.2
index e9ba038eb..4a69610e0 100644
--- a/man2/inotify_add_watch.2
+++ b/man2/inotify_add_watch.2
@@ -95,6 +95,12 @@ points outside of the process's accessible address space.
 .TP
 .B EINVAL
 The given event mask contains no valid events; or
+.I mask
+contains both
+.B IN_MASK_ADD
+and
+.B IN_MASK_CREATE
+; or
 .I fd
 is not an inotify file descriptor.
 .TP
@@ -121,6 +127,15 @@ contains
 and
 .I pathname
 is not a directory.
+.TP
+.B EEXIST
+.I mask
+contains
+.B IN_MASK_CREATE
+and
+.I pathname
+refers to a file already being watched by the same 
+.I fd
 .SH VERSIONS
 Inotify was merged into the 2.6.13 Linux kernel.
 .SH CONFORMING TO
-- 
2.17.0

--
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