pike.git / lib / modules / Filesystem.pmod / Monitor.pmod / basic.pike

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:10:   //!   //! This module is intended to be used for incremental scanning of   //! a filesystem.   //!   //! Supports FSEvents on MacOS X and Inotify on Linux to provide low overhead monitoring; other   //! systems use a less efficient polling approach.      //   // some necessary setup activities for systems that provide filesystem event monitoring   // - #if constant(Public.System.FSEvents.EventStream) + #if constant(System.FSEvents.EventStream)   #define HAVE_EVENTSTREAM 1   #endif    - #if constant(Public.System.___Inotify) + #if constant(System.Inotify)   #define HAVE_INOTIFY 1   #endif      #if HAVE_EVENTSTREAM    System.FSEvents.EventStream eventstream = System.FSEvents.EventStream(({}), 3.0, System.FSEvents.kFSEventStreamEventIdSinceNow, System.FSEvents.kFSEventStreamCreateFlagNone);    array eventstream_paths = ({});       // This function is called when the FSEvents EventStream detects a change in one of the monitored directories.    void eventstream_callback(string path, int flags, int event_id)    {