inotify_rm_watch()函式 Unix/Linux


inotify_rm_watch - 從inotify範例移除現有的監視

內容簡介

#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.

另請參閱