update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -5,19 +5,10 @@
|
||||
use Safe\Exceptions\InotifyException;
|
||||
|
||||
/**
|
||||
* inotify_add_watch adds a new watch or modify an
|
||||
* existing watch for the file or directory specified in
|
||||
* pathname.
|
||||
*
|
||||
* Using inotify_add_watch on a watched object replaces
|
||||
* the existing watch. Using the IN_MASK_ADD constant
|
||||
* adds (OR) events to the existing watch.
|
||||
*
|
||||
* @param resource $inotify_instance Resource returned by
|
||||
* inotify_init
|
||||
* @param string $pathname File or directory to watch
|
||||
* @param int $mask Events to watch for. See Predefined Constants.
|
||||
* @return int The return value is a unique (inotify instance wide) watch descriptor.
|
||||
* @param resource $inotify_instance
|
||||
* @param string $pathname
|
||||
* @param int $mask
|
||||
* @return int
|
||||
* @throws InotifyException
|
||||
*
|
||||
*/
|
||||
@@ -33,10 +24,7 @@ function inotify_add_watch($inotify_instance, string $pathname, int $mask): int
|
||||
|
||||
|
||||
/**
|
||||
* Initialize an inotify instance for use with
|
||||
* inotify_add_watch
|
||||
*
|
||||
* @return resource A stream resource.
|
||||
* @return resource
|
||||
* @throws InotifyException
|
||||
*
|
||||
*/
|
||||
@@ -52,13 +40,8 @@ function inotify_init()
|
||||
|
||||
|
||||
/**
|
||||
* inotify_rm_watch removes the watch
|
||||
* watch_descriptor from the inotify instance
|
||||
* inotify_instance.
|
||||
*
|
||||
* @param resource $inotify_instance Resource returned by
|
||||
* inotify_init
|
||||
* @param int $watch_descriptor Watch to remove from the instance
|
||||
* @param resource $inotify_instance
|
||||
* @param int $watch_descriptor
|
||||
* @throws InotifyException
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user