aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Millar <paul.millar@desy.de>2018-04-20 10:28:21 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-05-06 10:09:56 +0200
commit12507e51a426d168c48defc67d3ba223371a73b2 (patch)
tree1f7c372cd2fff99b1edd976d8598b518981f4a58
parentabd34f349dcc85357b5ed3a0fd97245a087f0826 (diff)
downloadman-pages-12507e51a426d168c48defc67d3ba223371a73b2.tar.gz
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>
-rw-r--r--man2/inotify_add_watch.28
1 files changed, 8 insertions, 0 deletions
diff --git a/man2/inotify_add_watch.2 b/man2/inotify_add_watch.2
index 5bb7c94a73..e9ba038ebb 100644
--- a/man2/inotify_add_watch.2
+++ b/man2/inotify_add_watch.2
@@ -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