On 5/31/18 5:16 PM, henry.wilson@xxxxxxxxxxx wrote: > 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. Thanks, Henry. Patch applied (sorry for the delay). Cheers, Michael > --- > 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 > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/