inotify_add_watch.2: Add IN_ONLYDIR based error

I noticed that it was undocumented how inotify_add_watch(2)
behaves if IN_ONLYDIR is specified and the target is not a
directory.

I've included a patch that adds ENOTDIR as an additional error in
the inotify_add_watch(2) man page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Paul Millar 2018-04-20 10:28:21 +02:00 committed by Michael Kerrisk
parent abd34f349d
commit 12507e51a4
1 changed files with 8 additions and 0 deletions

View File

@ -113,6 +113,14 @@ Insufficient kernel memory was available.
.B ENOSPC
The user limit on the total number of inotify watches was reached or the
kernel failed to allocate a needed resource.
.TP
.B ENOTDIR
.I mask
contains
.B IN_ONLYDIR
and
.I pathname
is not a directory.
.SH VERSIONS
Inotify was merged into the 2.6.13 Linux kernel.
.SH CONFORMING TO