X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=release%2Fman2%2Finotify_rm_watch.2;h=593f4f376c977ec7f8d4f2b12c01c729999c10cd;hb=bb92023e2caf6dc30bd3a8f07877ec870c853e23;hp=932a42d9716854c092f218e7e907bd5dec1f77bf;hpb=633a2252e0be3c867dce264a180a89ce8181d36f;p=linuxjm%2FLDP_man-pages.git diff --git a/release/man2/inotify_rm_watch.2 b/release/man2/inotify_rm_watch.2 index 932a42d9..593f4f37 100644 --- a/release/man2/inotify_rm_watch.2 +++ b/release/man2/inotify_rm_watch.2 @@ -1,7 +1,6 @@ -.\" man2/inotify_rm_watch.2 - inotify_rm_watch man page -.\" .\" Copyright (C) 2005 Robert Love .\" +.\" %%%LICENSE_START(GPLv2+_DOC_FULL) .\" 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 @@ -18,70 +17,48 @@ .\" 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. +.\" License along with this manual; if not, see +.\" . +.\" %%%LICENSE_END .\" .\" 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 ´Æ»ëÂоݥǥ£¥¹¥¯¥ê¥×¥¿ +.\" This file was generated with po4a. Translate the source file. .\" -.TH INOTIFY_RM_WATCH 2 2006-02-07 "Linux" "Linux Programmer's Manual" -.SH ̾Á° -inotify_rm_watch \- inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤«¤é´û¸¤Î´Æ»ë¥¢¥¤¥Æ¥à¤òºï½ü¤¹¤ë -.SH ½ñ¼° -.B #include +.\"******************************************************************* +.TH INOTIFY_RM_WATCH 2 2010\-10\-15 Linux "Linux Programmer's Manual" +.SH 名前 +inotify_rm_watch \- inotify インスタンスから既存の監視アイテムを削除する +.SH 書式 +\fB#include \fP .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 -.SH ÀâÌÀ -.BR inotify_rm_watch () -¤Ï¡¢´Æ»ëÂоݥǥ£¥¹¥¯¥ê¥×¥¿ (watch descriptor) -.I wd -¤ËÂбþ¤¹¤ë´Æ»ë¥¢¥¤¥Æ¥à¤ò¡¢ -¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿ -.I fd -¤ËÂбþ¤¹¤ë inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤«¤éºï½ü¤¹¤ë¡£ +.\" Before glibc 2.10, the second argument was types as uint32_t. +.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040 +\fBint inotify_rm_watch(int \fP\fIfd\fP\fB, int \fP\fIwd\fP\fB);\fP +.SH 説明 +\fBinotify_rm_watch\fP() は、監視対象ディスクリプタ (watch descriptor) \fIwd\fP に対応する監視アイテムを、 +ファイルディスクリプタ \fIfd\fP に対応する inotify インスタンスから削除する。 -´Æ»ëÂоݤòºï½ü¤¹¤ë¤È¡¢ -¤³¤Î´Æ»ëÂоݥǥ£¥¹¥¯¥ê¥×¥¿¤ËÂФ·¤Æ -.B IN_IGNORED -¥¤¥Ù¥ó¥È¤¬À¸À®¤µ¤ì¤ë -.RB ( inotify (7) -»²¾È)¡£ -.SH ÊÖ¤êÃÍ -À®¸ù¤¹¤ë¤È¡¢ -.BR inotify_rm_watch () -¤Ï 0 ¤òÊÖ¤¹¡£ -¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢ -.I errno -¤òŬÀÚ¤ËÀßÄꤹ¤ë¡£ -.SH ¥¨¥é¡¼ -.TP -.B EBADF -.I fd -¤¬Í­¸ú¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ï¤Ê¤¤¡£ -.TP -.B EINVAL -´Æ»ëÂоݥǥ£¥¹¥¯¥ê¥×¥¿ -.I wd -¤¬Í­¸ú¤Ç¤Ê¤¤¡£¤â¤·¤¯¤Ï¡¢ -.I fd -¤¬ inotify ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ï¤Ê¤¤¡£ -.SH ¥Ð¡¼¥¸¥ç¥ó -inotify ¤Ï Linux ¥«¡¼¥Í¥ë 2.6.13 ¤ËÁȤ߹þ¤Þ¤ì¤¿¡£ -.SH ½àµò -¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï Linux Æȼ«¤Ç¤¢¤ë¡£ -.SH ´ØÏ¢¹àÌÜ -.BR inotify_add_watch (2), -.BR inotify_init (2), -.BR inotify (7) +監視対象を削除すると、 この監視対象ディスクリプタに対して \fBIN_IGNORED\fP イベントが生成される (\fBinotify\fP(7) 参照)。 +.SH 返り値 +成功すると、 \fBinotify_rm_watch\fP() は 0 を返す。 エラーの場合、\-1 を返し、 \fIerrno\fP を適切に設定する。 +.SH エラー +.TP +\fBEBADF\fP +\fIfd\fP が有効なファイルディスクリプタではない。 +.TP +\fBEINVAL\fP +監視対象ディスクリプタ \fIwd\fP が有効でない。もしくは、 \fIfd\fP が inotify ファイルディスクリプタではない。 +.SH バージョン +inotify は Linux カーネル 2.6.13 に組み込まれた。 +.SH 準拠 +このシステムコールは Linux 独自である。 +.SH 関連項目 +\fBinotify_add_watch\fP(2), \fBinotify_init\fP(2), \fBinotify\fP(7) +.SH この文書について +この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部 +である。プロジェクトの説明とバグ報告に関する情報は +http://www.kernel.org/doc/man\-pages/ に書かれている。