1inotify_rm_watch(2)           System Calls Manual          inotify_rm_watch(2)
2
3
4

NAME

6       inotify_rm_watch - remove an existing watch from an inotify instance
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <sys/inotify.h>
13
14       int inotify_rm_watch(int fd, int wd);
15

DESCRIPTION

17       inotify_rm_watch() removes the watch associated with the watch descrip‐
18       tor wd from the inotify instance associated with  the  file  descriptor
19       fd.
20
21       Removing  a  watch  causes an IN_IGNORED event to be generated for this
22       watch descriptor.  (See inotify(7).)
23

RETURN VALUE

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

ERRORS

29       EBADF  fd is not a valid file descriptor.
30
31       EINVAL The  watch  descriptor  wd is not valid; or fd is not an inotify
32              file descriptor.
33

STANDARDS

35       Linux.
36

HISTORY

38       Linux 2.6.13.
39

SEE ALSO

41       inotify_add_watch(2), inotify_init(2), inotify(7)
42
43
44
45Linux man-pages 6.04              2023-03-30               inotify_rm_watch(2)
Impressum