.\" man2/inotify_rm_watch.2 - inotify_rm_watch man page .\" .\" Copyright (C) 2005 Robert Love .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, .\" USA. .\" .\" 2005-07-19 Robert Love - initial version .\" 2006-02-07 mtk, minor changes .\" .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2006-08-15, Akihiro MOTOKI , LDP v2.39 .\" .\" WORD: watch 監視アイテム .\" WORD: watch descriptor 監視対象ディスクリプタ .\" .TH INOTIFY_RM_WATCH 2 2006-02-07 "Linux" "Linux Programmer's Manual" .\"O .SH NAME .SH 名前 .\"O inotify_rm_watch \- remove an existing watch from an inotify instance inotify_rm_watch \- inotify インスタンスから既存の監視アイテムを削除する .\"O .SH SYNOPSIS .SH 書式 .B #include .sp .BI "int inotify_rm_watch(int " fd ", uint32_t " wd ); .\" FIXME . The type of the second argument should probably be "int". .\" I submitted a patch to fix this. See the LKML thread .\" "[patch] Fix type errors in inotify interfaces", 18 Nov 2008 .\" Glibc bug filed: http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040 .\"O .SH DESCRIPTION .SH 説明 .\"O .BR inotify_rm_watch () .\"O removes the watch associated with the watch descriptor .\"O .I wd .\"O from the inotify instance associated with the file descriptor .\"O .IR fd . .BR inotify_rm_watch () は、監視対象ディスクリプタ (watch descriptor) .I wd に対応する監視アイテムを、 ファイルディスクリプタ .I fd に対応する inotify インスタンスから削除する。 .\"O Removing a watch causes an .\"O .B IN_IGNORED .\"O event to be generated for this watch descriptor. .\"O (See .\"O .BR inotify (7).) 監視対象を削除すると、 この監視対象ディスクリプタに対して .B IN_IGNORED イベントが生成される .RB ( inotify (7) 参照)。 .\"O .SH "RETURN VALUE" .SH 返り値 .\"O On success, .\"O .BR inotify_rm_watch () .\"O returns zero, or \-1 if an error occurred (in which case, .\"O .I errno .\"O is set appropriately). 成功すると、 .BR inotify_rm_watch () は 0 を返す。 エラーの場合、\-1 を返し、 .I errno を適切に設定する。 .\"O .SH ERRORS .SH エラー .TP .B EBADF .\"O .I fd .\"O is not a valid file descriptor. .I fd が有効なファイルディスクリプタではない。 .TP .B EINVAL .\"O The watch descriptor .\"O .I wd .\"O is not valid; or .\"O .I fd .\"O is not an inotify file descriptor. 監視対象ディスクリプタ .I wd が有効でない。もしくは、 .I fd が inotify ファイルディスクリプタではない。 .\"O .SH VERSIONS .SH バージョン .\"O Inotify was merged into the 2.6.13 Linux kernel. inotify は Linux カーネル 2.6.13 に組み込まれた。 .\"O .SH "CONFORMING TO" .SH 準拠 .\"O This system call is Linux-specific. このシステムコールは Linux 独自である。 .\"O .SH "SEE ALSO" .SH 関連項目 .BR inotify_add_watch (2), .BR inotify_init (2), .BR inotify (7)