inotify_init
inotify インスタンスを初期化する
&reftitle.description;
resourcefalseinotify_init
inotify_add_watch で使用するための
inotify インスタンスを初期化します。
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
ストリームリソース、あるいはエラー時に &false; を返します。
&reftitle.examples;
inotify の使用例
0, inotify_read() will not block
// __FILE__ のメタデータ変更の監視を終了します
inotify_rm_watch($fd, $watch_descriptor);
// inotify インスタンスを閉じます
// 未完了の監視があれば、それらもすべて閉じられます
fclose($fd);
?>
]]>
&example.outputs.similar;
1, // Equals $watch_descriptor
'mask' => 4, // IN_ATTRIB bit is set
'cookie' => 0, // unique id to connect related events (e.g.
// IN_MOVE_FROM and IN_MOVE_TO events)
'name' => '', // the name of a file (e.g. if we monitored changes
// in a directory)
),
);
]]>
&reftitle.seealso;
inotify_add_watch
inotify_rm_watch
inotify_queue_len
inotify_read
fclose