OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man2 / inotify_init.2
index 208b0f2..656c0df 100644 (file)
 .\" 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
+.\"*******************************************************************
 .\"
-.TH INOTIFY_INIT 2 2008-10-10 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH INOTIFY_INIT 2 2008\-10\-10 Linux "Linux Programmer's Manual"
 .SH 名前
-.\"O inotify_init, inotify_init1 \- initialize an inotify instance
 inotify_init, inotify_init1 \- inotify インスタンスを初期化する
-.\"O .SH SYNOPSIS
 .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
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O .BR inotify_init ()
-.\"O initializes a new inotify instance and returns a file descriptor associated
-.\"O with a new inotify event queue.
-.BR inotify_init ()
-は、新規の inotify インスタンスを初期化し、作成された inotify イベントキュー
+\fBinotify_init\fP()  は、新規の inotify インスタンスを初期化し、作成された inotify イベントキュー
 に対応するファイルディスクリプタを返す。
 
-.\"O If
-.\"O .I flags
-.\"O is 0, then
-.\"O .BR inotify_init1 ()
-.\"O is the same as
-.\"O .BR inotify_init ().
-.\"O The following values can be bitwise ORed in
-.\"O .IR flags
-.\"O to obtain different behavior:
-.BR inotify_init1 ()
-は、
-.I flags
-が 0 の場合、
-.BR inotify_init ()
-と同じである。
-.I flags
-に以下の値をビット毎の論理和 (OR) で指定することで、
-異なる動作をさせることができる。
-.TP 12
-.B IN_NONBLOCK
-.\"O Set the
-.\"O .BR O_NONBLOCK
-.\"O file status flag on the new open file description.
-.\"O Using this flag saves extra calls to
-.\"O .BR fcntl (2)
-.\"O to achieve the same result.
-新しく生成されるオープンファイル記述 (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
-.\"O Set the close-on-exec
-.\"O .RB ( FD_CLOEXEC )
-.\"O flag on the new file descriptor.
-.\"O See the description of the
-.\"O .B O_CLOEXEC
-.\"O flag in
-.\"O .BR open (2)
-.\"O for reasons why this may be useful.
-新しいファイル・ディスクリプターに対して
-close-on-exec
-.RB ( FD_CLOEXEC )
-フラグをセットする。
-このフラグが役に立つ理由については、
-.BR open (2)
-の
-.B O_CLOEXEC
-フラグの説明を参照のこと。
-.\"O .SH "RETURN VALUE"
+.TP 
+\fBIN_CLOEXEC\fP
+新しいファイル・ディスクリプターに対して close\-on\-exec (\fBFD_CLOEXEC\fP)  フラグをセットする。
+このフラグが役に立つ理由については、 \fBopen\fP(2)  の \fBO_CLOEXEC\fP フラグの説明を参照のこと。
 .SH 返り値
-.\"O On success, these system calls return a new file descriptor.
-.\"O On error, \-1 is returned, and
-.\"O .I errno
-.\"O is set to indicate the error.
-成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。
-エラーの場合、\-1 を返し、
-.I errno
-をエラーを示す値に設定する。
-.\"O .SH ERRORS
+成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。 エラーの場合、\-1 を返し、 \fIerrno\fP をエラーを示す値に設定する。
 .SH エラー
-.TP
-.B EINVAL
-.\"O .RB ( inotify_init1 ())
-.\"O An invalid value was specified in
-.\"O .IR flags .
-.RB ( inotify_init1 ())
-無効な値が
-.I flags
-に指定された。
-.TP
-.B EMFILE
-.\"O The user limit on the total number of inotify instances has been reached.
+.TP 
+\fBEINVAL\fP
+(\fBinotify_init1\fP())  無効な値が \fIflags\fP に指定された。
+.TP 
+\fBEMFILE\fP
 inotify インスタンスの総数がユーザ単位の上限に達していた。
-.TP
-.B ENFILE
-.\"O The system limit on the total number of file descriptors has been reached.
+.TP 
+\fBENFILE\fP
 inotify インスタンスの総数がシステムの上限に達していた。
-.TP
-.B ENOMEM
-.\"O Insufficient kernel memory is available.
+.TP 
+\fBENOMEM\fP
 カーネルメモリが十分になかった。
-.\"O .SH VERSIONS
 .SH バージョン
-.\"O .BR inotify_init ()
-.\"O first appeared in Linux 2.6.13.
-.\"O .BR inotify_init1 ()
-.\"O was added in Linux 2.6.27.
-.BR inotify_init ()
-は Linux 2.6.13 で初めて登場した。
-.BR inotify_init1 ()
-は Linux 2.6.27 で追加された。
-.\"O .SH "CONFORMING TO"
+\fBinotify_init\fP()  は Linux 2.6.13 で初めて登場した。 \fBinotify_init1\fP()  は Linux
+2.6.27 で追加された。
 .SH 準拠
-.\"O These system calls are Linux-specific.
 これらのシステムコールは Linux 独自である。
-.\"O .SH "SEE ALSO"
 .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)