1 .\" Copyright (C) 2005 Robert Love
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
24 .\" 2005-07-19 Robert Love <rlove@rlove.org> - initial version
25 .\" 2006-02-07 mtk, minor changes
27 .TH INOTIFY_RM_WATCH 2 2021-03-22 "Linux" "Linux Programmer's Manual"
29 inotify_rm_watch \- remove an existing watch from an inotify instance
32 .B #include <sys/inotify.h>
34 .BI "int inotify_rm_watch(int " fd ", int " wd );
35 .\" Before glibc 2.10, the second argument was types as uint32_t.
36 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
39 .BR inotify_rm_watch ()
40 removes the watch associated with the watch descriptor
42 from the inotify instance associated with the file descriptor
45 Removing a watch causes an
47 event to be generated for this watch descriptor.
52 .BR inotify_rm_watch ()
54 On error, \-1 is returned and
56 is set to indicate the error.
61 is not a valid file descriptor.
68 is not an inotify file descriptor.
70 Inotify was merged into the 2.6.13 Linux kernel.
72 This system call is Linux-specific.
74 .BR inotify_add_watch (2),