OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man2 / inotify_init.2
index 3930961..5e7cd1f 100644 (file)
@@ -1,7 +1,6 @@
-.\" man2/inotify_init.2 - inotify_init 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
 .\" 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
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
 .\"
 .\" 2005-07-19 Robert Love <rlove@rlove.org> - initial version
 .\" 2006-02-07 mtk, minor changes
 .\" 2008-10-10 mtk: add description of inotify_init1()
 .\"
-.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI
-.\"         all rights reserved.
-.\" Translated 2006-08-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.39
-.\" Updated 2008-11-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.12
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH INOTIFY_INIT 2 2008-10-10 "Linux" "Linux Programmer's Manual"
-.SH Ì¾Á°
-inotify_init, inotify_init1 \- inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ò½é´ü²½¤¹¤ë
-.SH ½ñ¼°
+.\"*******************************************************************
+.TH INOTIFY_INIT 2 2012\-05\-04 Linux "Linux Programmer's Manual"
+.SH 名前
+inotify_init, inotify_init1 \- inotify インスタンスを初期化する
+.SH 書式
 .nf
-.B #include <sys/inotify.h>
+\fB#include <sys/inotify.h>\fP
 .sp
-.B "int inotify_init(void);"
-.BI "int inotify_init1(int " flags );
+\fBint inotify_init(void);\fP
+\fBint inotify_init1(int \fP\fIflags\fP\fB);\fP
 .fi
-.SH ÀâÌÀ
-.BR inotify_init ()
-¤Ï¡¢¿·µ¬¤Î inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ò½é´ü²½¤·¡¢ºîÀ®¤µ¤ì¤¿ inotify ¥¤¥Ù¥ó¥È¥­¥å¡¼
-¤ËÂбþ¤¹¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹¡£
+.SH 説明
+\fBinotify_init\fP()  は、新規の inotify インスタンスを初期化し、作成された inotify イベントキュー
+に対応するファイルディスクリプタを返す。
 
-.BR inotify_init1 ()
-¤Ï¡¢
-.I flags
-¤¬ 0 ¤Î¾ì¹ç¡¢
-.BR inotify_init ()
-¤ÈƱ¤¸¤Ç¤¢¤ë¡£
-.I flags
-¤Ë°Ê²¼¤ÎÃͤò¥Ó¥Ã¥ÈËè¤ÎÏÀÍýÏ (OR) ¤Ç»ØÄꤹ¤ë¤³¤È¤Ç¡¢
-°Û¤Ê¤ëÆ°ºî¤ò¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
-.TP 12
-.B IN_NONBLOCK
-¿·¤·¤¯À¸À®¤µ¤ì¤ë¥ª¡¼¥×¥ó¥Õ¥¡¥¤¥ëµ­½Ò (open file description) ¤Î
-BR O_NONBLOCK
-¥Õ¥¡¥¤¥ë¥¹¥Æ¡¼¥¿¥¹¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¡£
-¤³¤Î¥Õ¥é¥°¤ò»È¤¦¤³¤È¤Ç¡¢
-.B O_NONBLOCK
-¤ò¥»¥Ã¥È¤¹¤ë¤¿¤á¤Ë
-.BR fcntl (2)
-¤òÄɲäǸƤӽФ¹É¬Íפ¬¤Ê¤¯¤Ê¤ë¡£
-.TP
-.B IN_CLOEXEC
-¿·¤·¤¤¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼¤ËÂФ·¤Æ
-close-on-exec
-.RB ( FD_CLOEXEC )
-¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¡£
-¤³¤Î¥Õ¥é¥°¤¬Ìò¤ËΩ¤ÄÍýͳ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
-.BR open (2)
-¤Î
-.B O_CLOEXEC
-¥Õ¥é¥°¤ÎÀâÌÀ¤ò»²¾È¤Î¤³¤È¡£
-.SH ÊÖ¤êÃÍ
-À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¿·¤·¤¤¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹¡£
-¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
-.I errno
-¤ò¥¨¥é¡¼¤ò¼¨¤¹ÃͤËÀßÄꤹ¤ë¡£
-.SH ¥¨¥é¡¼
-.TP
-.B EINVAL
-.RB ( inotify_init1 ())
-̵¸ú¤ÊÃͤ¬
-.I flags
-¤Ë»ØÄꤵ¤ì¤¿¡£
-.TP
-.B EMFILE
-inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÁí¿ô¤¬¥æ¡¼¥¶Ã±°Ì¤Î¾å¸Â¤Ë㤷¤Æ¤¤¤¿¡£
-.TP
-.B ENFILE
-inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÁí¿ô¤¬¥·¥¹¥Æ¥à¤Î¾å¸Â¤Ë㤷¤Æ¤¤¤¿¡£
-.TP
-.B ENOMEM
-¥«¡¼¥Í¥ë¥á¥â¥ê¤¬½½Ê¬¤Ë¤Ê¤«¤Ã¤¿¡£
-.SH ¥Ð¡¼¥¸¥ç¥ó
-.BR inotify_init ()
-¤Ï Linux 2.6.13 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
-.BR inotify_init1 ()
-¤Ï Linux 2.6.27 ¤ÇÄɲ䵤줿¡£
-.SH ½àµò
-¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï Linux Æȼ«¤Ç¤¢¤ë¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR inotify_add_watch (2),
-.BR inotify_rm_watch (2),
-.BR inotify (7)
+\fBinotify_init1\fP()  は、 \fIflags\fP が 0 の場合、 \fBinotify_init\fP()  と同じである。 \fIflags\fP
+に以下の値をビット毎の論理和 (OR) で指定することで、 異なる動作をさせることができる。
+.TP  12
+\fBIN_NONBLOCK\fP
+新しく生成されるオープンファイル記述 (open file description) の BR O_NONBLOCK
+ファイルステータスフラグをセットする。 このフラグを使うことで、 \fBO_NONBLOCK\fP をセットするために \fBfcntl\fP(2)
+を追加で呼び出す必要がなくなる。
+.TP 
+\fBIN_CLOEXEC\fP
+新しいファイル・ディスクリプターに対して close\-on\-exec (\fBFD_CLOEXEC\fP)  フラグをセットする。
+このフラグが役に立つ理由については、 \fBopen\fP(2)  の \fBO_CLOEXEC\fP フラグの説明を参照のこと。
+.SH 返り値
+成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。 エラーの場合、\-1 を返し、 \fIerrno\fP をエラーを示す値に設定する。
+.SH エラー
+.TP 
+\fBEINVAL\fP
+(\fBinotify_init1\fP())  無効な値が \fIflags\fP に指定された。
+.TP 
+\fBEMFILE\fP
+inotify インスタンスの総数がユーザ単位の上限に達していた。
+.TP 
+\fBENFILE\fP
+inotify インスタンスの総数がシステムの上限に達していた。
+.TP 
+\fBENOMEM\fP
+カーネルメモリが十分になかった。
+.SH バージョン
+\fBinotify_init\fP()  first appeared in Linux 2.6.13; library support was added
+to glibc in version 2.4.  \fBinotify_init1\fP()  was added in Linux 2.6.27;
+library support was added to glibc in version 2.9.
+.SH 準拠
+これらのシステムコールは Linux 独自である。
+.SH 関連項目
+\fBinotify_add_watch\fP(2), \fBinotify_rm_watch\fP(2), \fBinotify\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。