|
The FSEvents API in Mac OS X allows applications to register for notifications of changes to a given directory tree.〔(【引用サイトリンク】title=Leopard Technology Series for Developers: OS Foundations )〕 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.〔(【引用サイトリンク】title=File System Events Programming Guide: Using the File System Events API )〕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.〔(【引用サイトリンク】title=FSEvents.h -- FSEventStreamCallback )〕 Mac OS X 10.7 (Lion) added the ability to register for file modification notifications.〔(【引用サイトリンク】title=FSEvents reference -- kFSEventStreamCreateFlagFileEvents )〕 ==See also== * inotify * File Alteration Monitor * Spotlight (software) 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「FSEvents」の詳細全文を読む スポンサード リンク
|