* Add a watch to an initialized inotify instance * * @link https://php.net/manual/en/function.inotify-add-watch.php * * @param resource $inotify_instance
resource returned by {@link https://php.net/manual/en/function.inotify-init.php inotify_init()}
* @param string $pathnameFile or directory to watch
* @param int $maskEvents to watch for. See {@link https://php.net/manual/en/inotify.constants.php Predefined Constants}.
* * @return int a unique (inotify instance-wide) watch descriptor. */ function inotify_add_watch($inotify_instance, $pathname, $mask) {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)resource returned by {@link https://php.net/manual/en/function.inotify-init.php inotify_init()}
* * @return int a number greater than zero if events are pending, otherwise zero. */ function inotify_queue_len($inotify_instance) {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)resource returned by {@link https://php.net/manual/en/function.inotify-init.php inotify_init()}
* * @return array|false an array of inotify events or FALSE if no events * were pending and inotify_instance is non-blocking. Each event * is an array with the following keys: * *resource returned by {@link https://php.net/manual/en/function.inotify-init.php inotify_init()}
* @param int $maskwatch to remove from the instance
* * @return bool TRUE on success or FALSE on failure. */ function inotify_rm_watch($inotify_instance, $mask) {} /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_ACCESS = 1; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_MODIFY = 2; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_ATTRIB = 4; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_CLOSE_WRITE = 8; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_CLOSE_NOWRITE = 16; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_OPEN = 32; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_MOVED_FROM = 64; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_MOVED_TO = 128; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_CREATE = 256; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_DELETE = 512; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_DELETE_SELF = 1024; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_MOVE_SELF = 2048; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_UNMOUNT = 8192; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_Q_OVERFLOW = 16384; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_IGNORED = 32768; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_CLOSE = 24; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_MOVE = 192; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_ALL_EVENTS = 4095; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_ONLYDIR = 16777216; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_DONT_FOLLOW = 33554432; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_MASK_ADD = 536870912; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_ISDIR = 1073741824; /** * @link https://php.net/manual/en/inotify.constants.php */ const IN_ONESHOT = 2147483648; // End of inotify v.0.1.6