* 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 $pathname

File or directory to watch

* @param int $mask

Events 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)
* Initialize an inotify instance for use with {@see inotify_add_watch} * * @link https://php.net/manual/en/function.inotify-init.php * @return resource|false a stream resource or FALSE on error. */ function inotify_init() {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)
* This function allows to know if {@see inotify_read} will block or not. * If a number upper than zero is returned, there are pending events * and {@see inotify_read} will not block. * * @link https://php.net/manual/en/function.inotify-queue-len.php * * @param resource $inotify_instance

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)
* Read inotify events from an inotify instance. * * @link https://php.net/manual/en/function.inotify-read.php * * @param resource $inotify_instance

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: * * */ function inotify_read($inotify_instance) {} /** * (PHP >= 5.2.0, PECL inotify >= 0.1.2)
* Removes the watch $watch_descriptor from the inotify instance $inotify_instance. * * @link https://secure.php.net/manual/en/function.inotify-rm-watch.php * * @param resource $inotify_instance

resource returned by {@link https://php.net/manual/en/function.inotify-init.php inotify_init()}

* @param int $mask

watch 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