请输入您要查询的百科知识:

 

词条 FSEvents
释义

  1. See also

  2. References

  3. External links

The FSEvents API in macOS allows applications to register for notifications of changes to a given directory tree.[1] 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.[2]

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.[3]

Mac OS X 10.7 (Lion) added the ability to register for file modification notifications.[4]

See also

  • inotify
  • File Alteration Monitor
  • Spotlight (software)

References

1. ^{{cite web|url=https://developer.apple.com/leopard/overview/osfoundations.html|title=Leopard Technology Series for Developers: OS Foundations|date=2007-10-26|accessdate=2008-08-21}}
2. ^{{cite web|url= https://developer.apple.com/library/content/documentation/Darwin/Conceptual/FSEvents_ProgGuide/UsingtheFSEventsFramework/UsingtheFSEventsFramework.html|title=File System Events Programming Guide: Using the File System Events API|date=2012-12-13|accessdate=2017-10-13}}
3. ^{{cite web|url=https://developer.apple.com/library/mac/#documentation/Darwin/Reference/FSEvents_Ref/FSEvents_h/index.html#//apple_ref/c/tdef/FSEventStreamCallback|title=FSEvents.h -- FSEventStreamCallback|date=2011-05-05|accessdate=2011-08-16}}
4. ^{{cite web|url=https://developer.apple.com/documentation/coreservices/1455376-fseventstreamcreateflags/kfseventstreamcreateflagfileevents|title=FSEvents reference -- kFSEventStreamCreateFlagFileEvents|accessdate=2017-10-13}}

External links

  • [https://arstechnica.com/apple/reviews/2007/10/mac-os-x-10-5.ars/7 Mac OS X 10.5 Leopard: the Ars Technica review (page 7)]
{{operating-system-stub}}{{Mac-stub}}

1 : MacOS

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/24 15:16:08