inotify_rm_watch

Section: System Calls (2)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

inotify_rm_watch - inotify インスタンスから既存の監視アイテムを削除する  

ライブラリ

標準 C ライブラリ (libc,~-lc)  

書式

#include <sys/inotify.h>



int inotify_rm_watch(int fd, int wd);
 

説明

inotify_rm_watch() は、監視対象ディスクリプター (watch descriptor) wd に対応する監視アイテムを、 ファイルディスクリプター fd に対応する inotify インスタンスから削除する。

監視対象を削除すると、 この監視対象ディスクリプターに対して IN_IGNORED イベントが生成される (inotify(7) 参照)。  

返り値

On success, inotify_rm_watch() returns zero. On error, -1 is returned and errno is set to indicate the error.  

エラー

EBADF
fd が有効なファイルディスクリプターではない。
EINVAL
監視対象ディスクリプター wd が有効でない。もしくは、 fd が inotify ファイルディスクリプターではない。
 

標準規格

Linux.  

歴史

Linux 2.6.13.  

関連項目

inotify_add_watch(2), inotify_init(2), inotify(7)


 

Index

名前
ライブラリ
書式
説明
返り値
エラー
標準規格
歴史
関連項目

This document was created by man2html, using the manual pages.