]> git.eshelyaron.com Git - emacs.git/commit
Implement directory events
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 14 Nov 2015 11:51:28 +0000 (11:51 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 25 Nov 2015 14:07:11 +0000 (15:07 +0100)
commit41d9bd0c3b19d839b72fdd20e613cb6ab3b1b1f4
treef511cf454627c1bc1c8175ac12f88f8ac76eb2cf
parentc571fc149a786a5bef7f2b283b912999d76dd313
Implement directory events

* lisp/filenotify.el (file-notify-handle-event)
(file-notify-callback): Remove traces.

* src/kqueue.c: Include <sys/time.h>.
(kqueue_generate_event, kqueue_compare_dir_list): New functions.
(kqueue_callback): Use them.  Call kevent() with a zero timeout.
(Fkqueue_add_watch): Adapt docstring.  Support directory events.
Compute initial directory listing.  Close file descriptor in case
of errors.
(syms_of_kqueue): Declare Qcreate.
lisp/filenotify.el
src/kqueue.c