-.\" 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"
+.\"*******************************************************************
+.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 イベントキュー
+\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)
+\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
-.B IN_CLOEXEC
-新しいファイル・ディスクリプターに対して
-close-on-exec
-.RB ( FD_CLOEXEC )
-フラグをセットする。
-このフラグが役に立つ理由については、
-.BR open (2)
-の
-.B O_CLOEXEC
-フラグの説明を参照のこと。
+.TP
+\fBIN_CLOEXEC\fP
+新しいファイル・ディスクリプターに対して close\-on\-exec (\fBFD_CLOEXEC\fP) フラグをセットする。
+このフラグが役に立つ理由については、 \fBopen\fP(2) の \fBO_CLOEXEC\fP フラグの説明を参照のこと。
.SH 返り値
-成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。
-エラーの場合、\-1 を返し、
-.I errno
-をエラーを示す値に設定する。
+成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。 エラーの場合、\-1 を返し、 \fIerrno\fP をエラーを示す値に設定する。
.SH エラー
-.TP
-.B EINVAL
-.RB ( inotify_init1 ())
-無効な値が
-.I flags
-に指定された。
-.TP
-.B EMFILE
+.TP
+\fBEINVAL\fP
+(\fBinotify_init1\fP()) 無効な値が \fIflags\fP に指定された。
+.TP
+\fBEMFILE\fP
inotify インスタンスの総数がユーザ単位の上限に達していた。
-.TP
-.B ENFILE
+.TP
+\fBENFILE\fP
inotify インスタンスの総数がシステムの上限に達していた。
-.TP
-.B ENOMEM
+.TP
+\fBENOMEM\fP
カーネルメモリが十分になかった。
.SH バージョン
-.BR inotify_init ()
-は Linux 2.6.13 で初めて登場した。
-.BR inotify_init1 ()
-は Linux 2.6.27 で追加された。
+\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 関連項目
-.BR inotify_add_watch (2),
-.BR inotify_rm_watch (2),
-.BR inotify (7)
+\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/ に書かれている。