Return Values. An array of inotify events or false if no events was pending and inotify_instance is non-blocking. Each event is an array with the following keys: wd is a watch descriptor returned by inotify_add_watch() mask is a bit mask of events; cookie is a unique id to connect related events (e.g. IN_MOVE_FROM and IN_MOVE_TO) name is the name of a file (e.g. if a file was . INOTIFY_RM_WATCH(2) Linux Programmer's Manual INOTIFY_RM_WATCH(2) NAME top inotify_rm_watch - remove an existing watch from an inotify instance SYNOPSIS top #include inotify.h int inotify_rm_watch(int fd, int wd); DESCRIPTION top. This» PECL extension is not bundled with PHP. Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here.
inotify_add_watch () adds a new watch, or modifies an existing watch, for the file whose location is specified in pathname; the caller must have read permission for this file. The fd argument is a file descriptor referring to the inotify instance whose watch list is to be modified. The events to be monitored for pathname are specified in the. inotify_init() initializes a new inotify instance and returns a file descriptor associated with a new inotify event queue. If flags is 0, then inotify_init1 () is the same as inotify_init (). sd_event_add_inotify () adds a new inotify (7) file system inode event source to an event loop. The event loop object is specified in the event parameter, the event source object is returned in the source parameter. The path parameter specifies the path of the file system inode to watch. The handler must reference a function to call when the.
You can manually install inotify-tools, by using the following command: cd /tmp git clone www.doorway.ru cd inotify-tools. The inotify API provides a mechanism for monitoring filesystem events. Inotify can be used to monitor individual files, or to monitor. Files can be ignored manually in the configuration or using rules. Windows comes with support out of the box, but on Linux systems inotify packages may.
0コメント