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.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
.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
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