inotify_rm_watch()函數 Unix/Linux
內容簡介
#include <sys/inotify.h>int inotify_rm_watch(int fd, uint32_t wd);
描述
inotify_rm_watch() 刪除與從與文件描述符 fd 相關的 inotify 實例的描述符表關聯的 wd 監視 .Removing a watch causes an IN_IGNORED event to be generated for this watch descriptor. (See inotify(7).)
返回值
On success, inotify_rm_watch() returns zero, or -1 if an error occurred (in which case,errno is set appropriately).錯誤
標簽 | 描述 |
---|---|
EBADF | fd is not a valid file descriptor. |
EINVAL | The watch descriptor wd is not valid; or fd is not an inotify file descriptor. |