downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

inotify_init> <Inotify 関数
Last updated: Fri, 13 Nov 2009

view this page in

inotify_add_watch

(PECL inotify >= 0.1.2)

inotify_add_watch初期化済みの inotify インスタンスに監視対象を追加する

説明

int inotify_add_watch ( resource $inotify_instance , string $pathname , int $mask )

inotify_add_watch() は、pathname で指定したファイルあるいはディレクトリへの監視を追加あるいは変更します。

既存の監視対象に対して inotify_add_watch() を使用すると、 監視内容を上書きします。定数 IN_MASK_ADD を使用すると、 既存の監視対象を上書きせずにイベントを追加します。

パラメータ

inotify_instance

inotify_init() が返すリソース

pathname

監視対象のファイルあるいはディレクトリ。

mask

監視するイベント。定義済みの定数 を参照ください。

返り値

返り値は、(inotify インスタンス内で) 一意な監視記述子です。

参考



add a note add a note User Contributed Notes
inotify_add_watch
There are no user contributed notes for this page.

inotify_init> <Inotify 関数
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites