内容简介
#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. |
HISTORY
Inotify was merged into the 2.6.13 Linux kernel.遵循于
This system call is Linux specific.另请参阅