summaryrefslogtreecommitdiff
path: root/src/inotify.c
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2017-03-26 11:41:12 +0200
committerMichael Albinus <michael.albinus@gmx.de>2017-03-26 11:41:12 +0200
commit082e2cb3f40b717e4c00d31532927c9693b7cb9b (patch)
tree1253ac29628da55e1c4e5f8533f67d22efb2e88d /src/inotify.c
parent74129db63d690747c008b1b5d442fe41056584c3 (diff)
downloademacs-082e2cb3f40b717e4c00d31532927c9693b7cb9b.tar.gz
Minor fixes for inotify.c and filenotify.el
* lisp/filenotify.el (file-notify--watch-absolute-filename): Add docstring. (file-notify-callback): Simplify. * src/inotify.c (Finotify_add_watch): Adapt docstring.
Diffstat (limited to 'src/inotify.c')
-rw-r--r--src/inotify.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/inotify.c b/src/inotify.c
index 470b60ba893..cb24e827626 100644
--- a/src/inotify.c
+++ b/src/inotify.c
@@ -382,9 +382,17 @@ If a directory is watched then NAME is the name of file that caused the event.
COOKIE is an object that can be compared using `equal' to identify two matching
renames (moved-from and moved-to).
-See inotify(7) and inotify_add_watch(2) for further information. The inotify fd
-is managed internally and there is no corresponding inotify_init. Use
-`inotify-rm-watch' to remove a watch. */)
+See inotify(7) and inotify_add_watch(2) for further information. The
+inotify fd is managed internally and there is no corresponding
+inotify_init. Use `inotify-rm-watch' to remove a watch.
+
+Also note, that the following inotify bit-masks can not be used, due
+to the fact that descriptors are shared across different callers.
+
+IN_EXCL_UNLINK
+IN_MASK_ADD
+IN_ONESHOT
+IN_ONLYDIR */)
(Lisp_Object filename, Lisp_Object aspect, Lisp_Object callback)
{
Lisp_Object encoded_file_name;