The FSEvents API in Mac OS X allows applications to register for notifications of changes to a given directory tree. Whenever the filesystem is changed, the kernel passes notifications via the special device file
/dev/fsevents to a userspace process called
fseventsd. This process combines multiple changes to a single directory tree that occur within a short period of time, then notifies applications that have registered for changes to the affected directory.
Until Mac OS X 10.7, FSEvents did not "watch" the filesystem, such as Linux's inotify: the API provided no notifications for changes to individual files. An application was able to register to receive changes to a given directory, and had to determine for itself which file or files were changed.
Mac OS X 10.7 (Lion) added the ability to register for file modification notifications.
- "Leopard Technology Series for Developers: OS Foundations". 2007-10-26. Retrieved 2008-08-21.
- "File System Events Programming Guide: Using the File System Events API". 2008-03-11. Retrieved 2009-06-29.
- "FSEvents.h -- FSEventStreamCallback". 2011-05-05. Retrieved 2011-08-16.
- "FSEvents reference -- kFSEventStreamCreateFlagFileEvents". 2012-07-23. Retrieved 2013-11-07.
|This operating-system-related article is a stub. You can help Wikipedia by expanding it.|
|This Macintosh-related article is a stub. You can help Wikipedia by expanding it.|