1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2014-04-24 00:50+0900\n"
10 "PO-Revision-Date: 2014-04-27 06:31+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
19 #: build/C/man7/inotify.7:26
25 #: build/C/man7/inotify.7:26
31 #: build/C/man7/inotify.7:26 build/C/man2/inotify_add_watch.2:28
32 #: build/C/man2/inotify_init.2:29 build/C/man2/inotify_rm_watch.2:27
38 #: build/C/man7/inotify.7:26 build/C/man2/inotify_add_watch.2:28
39 #: build/C/man2/inotify_init.2:29 build/C/man2/inotify_rm_watch.2:27
41 msgid "Linux Programmer's Manual"
42 msgstr "Linux Programmer's Manual"
45 #: build/C/man7/inotify.7:27 build/C/man2/inotify_add_watch.2:29
46 #: build/C/man2/inotify_init.2:30 build/C/man2/inotify_rm_watch.2:28
52 #: build/C/man7/inotify.7:29
53 msgid "inotify - monitoring filesystem events"
54 msgstr "inotify - ファイルシステムイベントを監視する"
57 #: build/C/man7/inotify.7:29 build/C/man2/inotify_add_watch.2:35
58 #: build/C/man2/inotify_init.2:39 build/C/man2/inotify_rm_watch.2:36
64 #: build/C/man7/inotify.7:37
66 "The I<inotify> API provides a mechanism for monitoring filesystem events. "
67 "Inotify can be used to monitor individual files, or to monitor directories. "
68 "When a directory is monitored, inotify will return events for the directory "
69 "itself, and for files inside the directory."
71 "I<inotify> API はファイルシステムイベントを監視するための機構を提供する。 "
72 "inotify は個々のファイルやディレクトリを監視するのに使える。 ディレクトリを監"
73 "視する場合、inotify はディレクトリ自身と ディレクトリ内のファイルのイベントを"
77 #: build/C/man7/inotify.7:39
78 msgid "The following system calls are used with this API:"
79 msgstr "この API では以下のシステムコールが使用される。"
82 #: build/C/man7/inotify.7:39 build/C/man7/inotify.7:50
83 #: build/C/man7/inotify.7:63 build/C/man7/inotify.7:69
84 #: build/C/man7/inotify.7:72
90 #: build/C/man7/inotify.7:50
92 "B<inotify_init>(2) creates an inotify instance and returns a file "
93 "descriptor referring to the inotify instance. The more recent "
94 "B<inotify_init1>(2) is like B<inotify_init>(2), but has a I<flags> argument "
95 "that provides access to some extra functionality."
97 "B<inotify_init>(2) は inotify インスタンスを作成し、inotify インスタンスを参"
98 "照する ファイルディスクリプタを返す。 もっと新しい B<inotify_init1>(2) も "
99 "B<inotify_init>(2) と同様だが、いくつかの追加の機能を利用するための "
100 "I<flags> 引き数を持っている。"
103 #: build/C/man7/inotify.7:63
105 "B<inotify_add_watch>(2) manipulates the \"watch list\" associated with an "
106 "inotify instance. Each item (\"watch\") in the watch list specifies the "
107 "pathname of a file or directory, along with some set of events that the "
108 "kernel should monitor for the file referred to by that pathname. "
109 "B<inotify_add_watch>(2) either creates a new watch item, or modifies an "
110 "existing watch. Each watch has a unique \"watch descriptor\", an integer "
111 "returned by B<inotify_add_watch>(2) when the watch is created."
113 "B<inotify_add_watch>(2) は inotify インスタンスに関連づけられた「監視対象 "
114 "(watch) リスト」を操作する。 監視対象リストの各アイテム (\"watch\") は、 ファ"
115 "イルまたはディレクトリのパス名と、 そのパス名で参照されるファイルに対して "
116 "カーネルが監視する複数のイベントの集合を指定する。 B<inotify_add_watch>(2) "
117 "は新しい監視アイテムの作成や既存の監視対象の変更ができる。 各監視対象は一意の"
118 "「監視対象ディスクリプタ」を持つ。 これは監視対象を作成したときに "
119 "B<inotify_add_watch>(2) から返される整数である。"
122 #: build/C/man7/inotify.7:69
124 "When events occur for monitored files and directories, those events are made "
125 "available to the application as structured data that can be read from the "
126 "inotify file descriptor using B<read>(2) (see below)."
130 #: build/C/man7/inotify.7:72
131 msgid "B<inotify_rm_watch>(2) removes an item from an inotify watch list."
133 "B<inotify_rm_watch>(2) は inotify の監視対象リストからアイテムを削除する。"
136 #: build/C/man7/inotify.7:79
138 "When all file descriptors referring to an inotify instance have been closed "
139 "(using B<close>(2)), the underlying object and its resources are freed for "
140 "reuse by the kernel; all associated watches are automatically freed."
142 "inotify インスタンスを指している 全てのファイルディスクリプタが (B<close>(2) "
143 "を使って) クローズされた場合、 その下層にあるオブジェクトとそのリソースは、 "
144 "カーネルで再利用するために解放される。 関連が切られた監視対象は自動的に解放さ"
148 #: build/C/man7/inotify.7:88
150 "With careful programming, an application can use inotify to efficiently "
151 "monitor and cache the state of a set of filesystem objects. However, robust "
152 "applications should allow for the fact that bugs in the monitoring logic or "
153 "races of the kind described below may leave the cache inconsistent with the "
154 "filesystem state. It is probably wise to to do some consistency checking, "
155 "and rebuild the cache when inconsistencies are detected."
159 #: build/C/man7/inotify.7:88
161 msgid "Reading events from an inotify file descriptor"
162 msgstr "inotify ファイルディスクリプタからのイベントの読み出し"
165 #: build/C/man7/inotify.7:101
167 "To determine what events have occurred, an application B<read>(2)s from the "
168 "inotify file descriptor. If no events have so far occurred, then, assuming "
169 "a blocking file descriptor, B<read>(2) will block until at least one event "
170 "occurs (unless interrupted by a signal, in which case the call fails with "
171 "the error B<EINTR>; see B<signal>(7))."
173 "どのようなイベントが起こっていたかを知るには、 アプリケーションで inotify "
174 "ファイルディスクリプタを B<read>(2) すればよい。 これまでに何もイベントが起"
175 "こっていない場合、 停止 (blocking) モードのファイルディスクリプタであれば、 "
176 "少なくとも 1 つのイベントが起こるまで B<read>(2) は停止する (シグナルにより"
177 "割り込まれなかった場合。 シグナルによる割り込みがあった場合、呼び出しはエ"
178 "ラー B<EINTR> で失敗する。 B<signal>(7) 参照)。"
181 #: build/C/man7/inotify.7:105
183 "Each successful B<read>(2) returns a buffer containing one or more of the "
184 "following structures:"
186 "B<read>(2) が成功すると、以下の構造体を 1 つ以上含むバッファが返される:"
188 #. FIXME . The type of the 'wd' field should probably be "int32_t".
189 #. I submitted a patch to fix this. See the LKML thread
190 #. "[patch] Fix type errors in inotify interfaces", 18 Nov 2008
191 #. Glibc bug filed: http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
193 #: build/C/man7/inotify.7:120
196 "struct inotify_event {\n"
197 " int wd; /* Watch descriptor */\n"
198 " uint32_t mask; /* Mask of events */\n"
199 " uint32_t cookie; /* Unique cookie associating related\n"
200 " events (for rename(2)) */\n"
201 " uint32_t len; /* Size of I<name> field */\n"
202 " char name[]; /* Optional null-terminated name */\n"
205 "struct inotify_event {\n"
206 " int wd; /* 監視対象ディスクリプタ */\n"
207 " uint32_t mask; /* イベントのマスク */\n"
208 " uint32_t cookie; /* 関連するイベント群を関連づける\n"
209 " 一意なクッキー (rename(2) 用) */\n"
210 " uint32_t len; /* \\(aqname\\(aq フィールドのサイズ */\n"
211 " char name[]; /* ヌルで終端された任意の名前 */\n"
215 #: build/C/man7/inotify.7:127
217 "I<wd> identifies the watch for which this event occurs. It is one of the "
218 "watch descriptors returned by a previous call to B<inotify_add_watch>(2)."
220 "I<wd> はイベント発生の監視対象を指定する。 これは、前もって行われた "
221 "B<inotify_add_watch>(2) 呼び出しで返された監視対象ディスクリプタのうちの 1 "
225 #: build/C/man7/inotify.7:130
227 "I<mask> contains bits that describe the event that occurred (see below)."
229 "I<mask> には発生したイベント (下記参照) を記述するためのビットが含まれる。"
232 #: build/C/man7/inotify.7:142
234 "I<cookie> is a unique integer that connects related events. Currently this "
235 "is used only for rename events, and allows the resulting pair of "
236 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events to be connected by the "
237 "application. For all other event types, I<cookie> is set to 0."
239 "I<cookie> は関連するイベントを関連づけるための一意な整数である。\n"
240 "現在のところ、この値は rename イベントに対してのみ使われており、\n"
241 "結果のペアである B<IN_MOVED_FROM> と B<IN_MOVED_TO> イベントを\n"
242 "アプリケーションで関連づけることができる。\n"
243 "他のイベント種別の場合には、 I<cookie> は 0 に設定する。"
246 #: build/C/man7/inotify.7:151
248 "The I<name> field is present only when an event is returned for a file "
249 "inside a watched directory; it identifies the file pathname relative to the "
250 "watched directory. This pathname is null-terminated, and may include "
251 "further null bytes (\\(aq\\e0\\(aq) to align subsequent reads to a suitable "
254 "I<name> フィールドは監視しているディレクトリ内のファイルに対して イベントが返"
255 "される場合のためにだけ存在する。 監視するディレクトリからのファイルの相対パス"
256 "名を表す。 このパス名はヌルで終端され、 その後の読み込みで適切なアドレス境"
257 "界に調整するために、 さらにヌルバイト (\\(aq\\e0\\(aq) が含まれる場合もあ"
261 #: build/C/man7/inotify.7:161
263 "The I<len> field counts all of the bytes in I<name>, including the null "
264 "bytes; the length of each I<inotify_event> structure is thus I<sizeof(struct "
265 "inotify_event)+len>."
267 "I<len> フィールドはヌルバイトを含む I<name> の全てのバイト数を表す。\n"
268 "よって、 I<inotify_event> 構造体のサイズは \n"
269 "I<sizeof(struct inotify_event)+len> である。"
272 #: build/C/man7/inotify.7:172
274 "The behavior when the buffer given to B<read>(2) is too small to return "
275 "information about the next event depends on the kernel version: in kernels "
276 "before 2.6.21, B<read>(2) returns 0; since kernel 2.6.21, B<read>(2) fails "
277 "with the error B<EINVAL>. Specifying a buffer of size"
279 "B<read>(2) に渡されたバッファが小さすぎて次のイベントに関する情報を返せ\n"
280 "ない場合の動作はカーネルのバージョンにより異なる。 2.6.21 より前のカー\n"
281 "ネルでは、 B<read>(2) は 0 を返す。 2.6.21 以降のカーネルでは、\n"
282 "B<read>(2) はエラー B<EINVAL> で失敗する。\n"
286 #: build/C/man7/inotify.7:174
288 msgid " sizeof(struct inotify_event) + NAME_MAX + 1\n"
289 msgstr " sizeof(struct inotify_event) + NAME_MAX + 1\n"
292 #: build/C/man7/inotify.7:176
293 msgid "will be sufficient to read at least one event."
294 msgstr "を指定すれば、少なくとも 1 イベントで読み出しを行うには十分である。"
297 #: build/C/man7/inotify.7:176
299 msgid "inotify events"
300 msgstr "inotify イベント"
303 #: build/C/man7/inotify.7:196
305 "The B<inotify_add_watch>(2) I<mask> argument and the I<mask> field of the "
306 "I<inotify_event> structure returned when B<read>(2)ing an inotify file "
307 "descriptor are both bit masks identifying inotify events. The following "
308 "bits can be specified in I<mask> when calling B<inotify_add_watch>(2) and "
309 "may be returned in the I<mask> field returned by B<read>(2):"
311 "B<inotify_add_watch>(2) の I<mask> 引き数と、inotify ファイル構造体を "
312 "B<read>(2) したときに返される I<inotify_event> 構造体の I<mask> フィールド"
313 "は、ともに inotify イベントを識別するための ビットマスクである。 以下のビット"
314 "が B<inotify_add_watch>(2) を呼ぶときの I<mask> に指定可能であり、 B<read>"
315 "(2) で返される I<mask> フィールドで返される:"
318 #: build/C/man7/inotify.7:197
320 msgid "B<IN_ACCESS> (*)"
321 msgstr "B<IN_ACCESS> (*)"
324 #: build/C/man7/inotify.7:202
325 msgid "File was accessed (e.g., B<read>(2), B<execve>(2))."
326 msgstr "(B<read>(2), B<execve>(2) などで) ファイルがアクセスされた。"
329 #: build/C/man7/inotify.7:202
331 msgid "B<IN_ATTRIB> (*)"
332 msgstr "B<IN_ATTRIB> (*)"
335 #: build/C/man7/inotify.7:217
337 "Metadata changed\\(emfor example, permissions (e.g., B<chmod>(2)), "
338 "timestamps (e.g., B<utimensat>(2)), extended attributes (B<setxattr>(2)), "
339 "link count (since Linux 2.6.25; e.g., for the target of B<link>(2) and for "
340 "B<unlink>(2)), and user/group ID (e.g., B<chown>(2))."
342 "メタデータが変更された。 メタデータとは、例えば、アクセス許可 (B<chmod>(2))、"
343 "タイムスタンプ (B<utimensat>(2) など)、拡張属性 (B<setxattr>(2))、 リンクカウ"
344 "ント (Linux 2.6.25 以降; B<link>(2) のリンク先や B<unlink>(2) など)、ユー"
345 "ザー/グループ ID (B<chown>(2) など) などである。"
348 #: build/C/man7/inotify.7:217
350 msgid "B<IN_CLOSE_WRITE> (*)"
351 msgstr "B<IN_CLOSE_WRITE> (*)"
354 #: build/C/man7/inotify.7:220
355 msgid "File opened for writing was closed."
356 msgstr "書き込みのためにオープンされたファイルがクローズされた。"
359 #: build/C/man7/inotify.7:220
361 msgid "B<IN_CLOSE_NOWRITE> (*)"
362 msgstr "B<IN_CLOSE_NOWRITE> (*)"
365 #: build/C/man7/inotify.7:223
366 msgid "File not opened for writing was closed."
367 msgstr "書き込み以外のためにオープンされたファイルがクローズされた。"
370 #: build/C/man7/inotify.7:223
372 msgid "B<IN_CREATE> (*)"
373 msgstr "B<IN_CREATE> (*)"
376 #: build/C/man7/inotify.7:233
378 "File/directory created in watched directory (e.g., B<open>(2) B<O_CREAT>, "
379 "B<mkdir>(2), B<link>(2), B<symlink>(2), B<bind>(2) on a UNIX domain socket)."
381 "監視対象ディレクトリ内でファイルやディレクトリが作成された (B<open>(2) "
382 "B<O_CREAT>, B<mkdir>(2), B<link>(2), B<symlink>(2), UNIX ドメインソケットに対"
386 #: build/C/man7/inotify.7:233
388 msgid "B<IN_DELETE> (*)"
389 msgstr "B<IN_DELETE> (*)"
392 #: build/C/man7/inotify.7:236
393 msgid "File/directory deleted from watched directory."
394 msgstr "監視対象ディレクトリ内でファイルやディレクトリが削除された。"
397 #: build/C/man7/inotify.7:236
399 msgid "B<IN_DELETE_SELF>"
400 msgstr "B<IN_DELETE_SELF>"
403 #: build/C/man7/inotify.7:247
405 "Watched file/directory was itself deleted. (This event also occurs if an "
406 "object is moved to another filesystem, since B<mv>(1) in effect copies the "
407 "file to the other filesystem and then deletes it from the original "
408 "filesystem.) In addition, an B<IN_IGNORED> event will subsequently be "
409 "generated for the watch descriptor."
413 #: build/C/man7/inotify.7:247
415 msgid "B<IN_MODIFY> (*)"
416 msgstr "B<IN_MODIFY> (*)"
419 #: build/C/man7/inotify.7:252
420 msgid "File was modified (e.g., B<write>(2), B<truncate>(2))."
421 msgstr "ファイルが変更された (B<write>(2), B<truncate>(2) など)。"
424 #: build/C/man7/inotify.7:252
426 msgid "B<IN_MOVE_SELF>"
427 msgstr "B<IN_MOVE_SELF>"
430 #: build/C/man7/inotify.7:255
431 msgid "Watched file/directory was itself moved."
432 msgstr "監視対象のディレクトリまたはファイル自身が移動された。"
435 #: build/C/man7/inotify.7:255
437 msgid "B<IN_MOVED_FROM> (*)"
438 msgstr "B<IN_MOVED_FROM> (*)"
441 #: build/C/man7/inotify.7:259
443 "Generated for the directory containing the old filename when a file is "
446 "ファイル名の変更を行った際に変更前のファイル名が含まれるディレクトリに対して"
450 #: build/C/man7/inotify.7:259
452 msgid "B<IN_MOVED_TO> (*)"
453 msgstr "B<IN_MOVED_TO> (*)"
456 #: build/C/man7/inotify.7:263
458 "Generated for the directory containing the new filename when a file is "
461 "ファイル名の変更を行った際に新しいファイル名が含まれるディレクトリに対して生"
465 #: build/C/man7/inotify.7:263
467 msgid "B<IN_OPEN> (*)"
468 msgstr "B<IN_OPEN> (*)"
471 #: build/C/man7/inotify.7:266
472 msgid "File was opened."
473 msgstr "ファイルがオープンされた。"
476 #: build/C/man7/inotify.7:275
478 "When monitoring a directory, the events marked with an asterisk (*) above "
479 "can occur for files in the directory, in which case the I<name> field in the "
480 "returned I<inotify_event> structure identifies the name of the file within "
483 "ディレクトリを監視する場合、 上記でアスタリスク (*) を付けたイベントは、 その"
484 "ディレクトリ内のファイルに対して発生する。 このとき I<inotify_event> 構造体で"
485 "返される I<name> フィールドは、ディレクトリ内のファイル名を表す。"
488 #: build/C/man7/inotify.7:283
490 "The B<IN_ALL_EVENTS> macro is defined as a bit mask of all of the above "
491 "events. This macro can be used as the I<mask> argument when calling "
492 "B<inotify_add_watch>(2)."
494 "B<IN_ALL_EVENTS> マクロは上記のイベント全てのマスクとして定義される。 このマ"
495 "クロは B<inotify_add_watch>(2) を呼び出すときの I<mask> 引き数として使える。"
498 #: build/C/man7/inotify.7:285
499 msgid "Two additional convenience macros are defined:"
500 msgstr "以下の 2 つの便利なマクロが定義されている。"
503 #: build/C/man7/inotify.7:286
509 #: build/C/man7/inotify.7:290
510 msgid "Equates to B<IN_MOVED_FROM | IN_MOVED_TO>."
511 msgstr "B<IN_MOVED_FROM | IN_MOVED_TO> と等価。"
514 #: build/C/man7/inotify.7:290
520 #: build/C/man7/inotify.7:294
521 msgid "Equates to B<IN_CLOSE_WRITE | IN_CLOSE_NOWRITE>."
522 msgstr "B<IN_CLOSE_WRITE | IN_CLOSE_NOWRITE> と等価。"
525 #: build/C/man7/inotify.7:300
527 "The following further bits can be specified in I<mask> when calling "
528 "B<inotify_add_watch>(2):"
530 "その他にも以下のビットを B<inotify_add_watch>(2) を呼ぶときの I<mask> に指定"
534 #: build/C/man7/inotify.7:301
536 msgid "B<IN_DONT_FOLLOW> (since Linux 2.6.15)"
537 msgstr "B<IN_DONT_FOLLOW> (Linux 2.6.15 以降)"
540 #: build/C/man7/inotify.7:306
541 msgid "Don't dereference I<pathname> if it is a symbolic link."
543 "I<pathname> がシンボリックリンクである場合に辿らない。 (Linux 2.6.15 以降)"
546 #: build/C/man7/inotify.7:306
548 msgid "B<IN_EXCL_UNLINK> (since Linux 2.6.36)"
549 msgstr "B<IN_EXCL_UNLINK> (Linux 2.6.36 以降)"
551 #. commit 8c1934c8d70b22ca8333b216aec6c7d09fdbd6a6
553 #: build/C/man7/inotify.7:322
555 "By default, when watching events on the children of a directory, events are "
556 "generated for children even after they have been unlinked from the "
557 "directory. This can result in large numbers of uninteresting events for "
558 "some applications (e.g., if watching I</tmp>, in which many applications "
559 "create temporary files whose names are immediately unlinked). Specifying "
560 "B<IN_EXCL_UNLINK> changes the default behavior, so that events are not "
561 "generated for children after they have been unlinked from the watched "
564 "デフォルトでは、あるディレクトリの子ファイルに関するイベントを監視 (watch) し"
565 "た際、ディレクトリからその子ファイルが削除 (unlink) された場合であってもその"
566 "子ファイルに対してイベントが生成される。このことは、アプリケーションによって"
567 "はあまり興味のないイベントが大量に発生することにつながる (例えば、I</tmp> を"
568 "監視している場合、たくさんのアプリケーションが、すぐにその名前が削除される一"
569 "時ファイルをそのディレクトリに作成する)。 B<IN_EXCL_UNLINK> を指定するとこの"
570 "デフォルトの動作を変更でき、監視対象のディレクトリから子ファイルが削除された"
571 "後に子ファイルに関するイベントが生成されなくなる。"
574 #: build/C/man7/inotify.7:322
576 msgid "B<IN_MASK_ADD>"
577 msgstr "B<IN_MASK_ADD>"
580 #: build/C/man7/inotify.7:326
582 "Add (OR) events to watch mask for this pathname if it already exists "
583 "(instead of replacing mask)."
585 "I<pathname> に対する監視マスクが既に存在する場合、 (マスクの置き換えではな"
586 "く) イベントを追加 (OR) する。"
589 #: build/C/man7/inotify.7:326
591 msgid "B<IN_ONESHOT>"
592 msgstr "B<IN_ONESHOT>"
595 #: build/C/man7/inotify.7:332
596 msgid "Monitor I<pathname> for one event, then remove from watch list."
598 "1 つのイベントについて I<pathname> を監視し、 イベントが発生したら監視対象リ"
602 #: build/C/man7/inotify.7:332
604 msgid "B<IN_ONLYDIR> (since Linux 2.6.15)"
605 msgstr "B<IN_ONLYDIR> (Linux 2.6.15 以降)"
608 #: build/C/man7/inotify.7:337
609 msgid "Only watch I<pathname> if it is a directory."
610 msgstr "I<pathname> がディレクトリの場合にのみ監視する。"
613 #: build/C/man7/inotify.7:343
615 "The following bits may be set in the I<mask> field returned by B<read>(2):"
616 msgstr "以下のビットが B<read>(2) で返される I<mask> フィールドに設定される:"
619 #: build/C/man7/inotify.7:344
621 msgid "B<IN_IGNORED>"
622 msgstr "B<IN_IGNORED>"
625 #: build/C/man7/inotify.7:350
627 "Watch was removed explicitly (B<inotify_rm_watch>(2)) or automatically "
628 "(file was deleted, or filesystem was unmounted). See also BUGS."
630 "監視対象が (B<inotify_rm_watch>(2) により) 明示的に 削除された。もしくは "
631 "(ファイルの削除、またはファイル システムのアンマウントにより) 自動的に削除さ"
635 #: build/C/man7/inotify.7:350
641 #: build/C/man7/inotify.7:353
642 msgid "Subject of this event is a directory."
643 msgstr "このイベントの対象がディレクトリである。"
646 #: build/C/man7/inotify.7:353
648 msgid "B<IN_Q_OVERFLOW>"
649 msgstr "B<IN_Q_OVERFLOW>"
652 #: build/C/man7/inotify.7:358
653 msgid "Event queue overflowed (I<wd> is -1 for this event)."
654 msgstr "イベントキューが溢れた (このイベントの場合、I<wd> は -1 である)。"
657 #: build/C/man7/inotify.7:358
659 msgid "B<IN_UNMOUNT>"
660 msgstr "B<IN_UNMOUNT>"
663 #: build/C/man7/inotify.7:364
665 "Filesystem containing watched object was unmounted. In addition, an "
666 "B<IN_IGNORED> event will subsequently be generated for the watch descriptor."
668 "監視対象オブジェクトを含むファイルシステムがアンマウントされた。さらに、この"
669 "監視対象ディスクリプタに対して B<IN_IGNORED> イベントが生成される。"
672 #: build/C/man7/inotify.7:365
678 #: build/C/man7/inotify.7:373
680 "Suppose an application is watching the directory I<dir> and the file I<dir/"
681 "myfile> for all events. The examples below show some events that will be "
682 "generated for these two objects."
686 #: build/C/man7/inotify.7:374
688 msgid "fd = open(\"dir/myfile\", O_RDWR);"
689 msgstr "fd = open(\"dir/myfile\", O_RDWR);"
692 #: build/C/man7/inotify.7:382
693 msgid "Generates B<IN_OPEN> events for both I<dir> and I<dir/myfile>."
695 "I<dir> と I<dir/myfile> の両方に対して B<IN_OPEN> イベントが生成される。"
698 #: build/C/man7/inotify.7:382
700 msgid "read(fd, buf, count);"
701 msgstr "read(fd, buf, count);"
704 #: build/C/man7/inotify.7:390
705 msgid "Generates B<IN_ACCESS> events for both I<dir> and I<dir/myfile>."
707 "I<dir> と I<dir/myfile> の両方に対して B<IN_ACCESS> イベントが生成される"
710 #: build/C/man7/inotify.7:390
712 msgid "write(fd, buf, count);"
713 msgstr "write(fd, buf, count);"
716 #: build/C/man7/inotify.7:398
717 msgid "Generates B<IN_MODIFY> events for both I<dir> and I<dir/myfile>."
719 "I<dir> と I<dir/myfile> の両方に対して B<IN_MODIFY> イベントが生成される"
722 #: build/C/man7/inotify.7:398
724 msgid "fchmod(fd, mode);"
725 msgstr "fchmod(fd, mode);"
728 #: build/C/man7/inotify.7:406
729 msgid "Generates B<IN_ATTRIB> events for both I<dir> and I<dir/myfile>."
731 "I<dir> と I<dir/myfile> の両方に対して B<IN_ATTRIB> イベントが生成される"
734 #: build/C/man7/inotify.7:406
740 #: build/C/man7/inotify.7:414
741 msgid "Generates B<IN_CLOSE_WRITE> events for both I<dir> and I<dir/myfile>."
743 "I<dir> と I<dir/myfile> の両方に対して B<IN_CLOSE_WRITE> イベントが生成される"
746 #: build/C/man7/inotify.7:423
748 "Suppose an application is watching the directories I<dir1> and I<dir2>, and "
749 "the file I<dir1/myfile>. The following examples show some events that may "
754 #: build/C/man7/inotify.7:424
756 msgid "link(\"dir1/myfile\", \"dir2/new\");"
757 msgstr "link(\"dir1/myfile\", \"dir2/new\");"
760 #: build/C/man7/inotify.7:434
762 "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event for "
765 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
766 "B<IN_CREATE> イベントが生成される。"
769 #: build/C/man7/inotify.7:434
771 msgid "rename(\"dir1/myfile\", \"dir2/myfile\");"
772 msgstr "rename(\"dir1/myfile\", \"dir2/myfile\");"
775 #: build/C/man7/inotify.7:455
777 "Generates an B<IN_MOVED_FROM> event for I<dir1>, an B<IN_MOVED_TO> event for "
778 "I<dir2>, and an B<IN_MOVE_SELF> event for I<myfile>. The B<IN_MOVED_FROM> "
779 "and B<IN_MOVED_TO> events will have the same I<cookie> value."
781 "I<dir1> に対してイベント B<IN_MOVED_FROM> が、 I<dir2> に対してイベント "
782 "B<IN_MOVED_TO> が、 I<myfile> に対してイベント B<IN_MOVE_SELF> が生成される。"
783 "この際 イベント B<IN_MOVED_FROM> と B<IN_MOVED_TO> は同じ I<cookie> 値を持"
787 #: build/C/man7/inotify.7:469
789 "Suppose that I<dir1/xx> and I<dir2/yy> are (the only) links to the same "
790 "file, and an application is watching I<dir1>, I<dir2>, I<dir1/xx>, and "
791 "I<dir2/yy>. Executing the following calls in the order given below will "
792 "generate the following events:"
796 #: build/C/man7/inotify.7:470
798 msgid "unlink(\"dir2/yy\");"
799 msgstr "unlink(\"dir2/yy\");"
802 #: build/C/man7/inotify.7:481
805 #| "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event "
808 "Generates an B<IN_ATTRIB> event for I<xx> (because its link count changes) "
809 "and an B<IN_DELETE> event for I<dir2>."
811 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
812 "B<IN_CREATE> イベントが生成される。"
815 #: build/C/man7/inotify.7:481
817 msgid "unlink(\"dir1/xx\");"
818 msgstr "unlink(\"dir1/xx\");"
821 #: build/C/man7/inotify.7:494
824 #| "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event "
827 "Generates B<IN_ATTRIB>, B<IN_DELETE_SELF>, and B<IN_IGNORED> events for "
828 "I<xx>, and an B<IN_DELETE> event for I<dir1>."
830 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
831 "B<IN_CREATE> イベントが生成される。"
834 #: build/C/man7/inotify.7:501
836 "Suppose an application is watching the directory I<dir> and (the empty) "
837 "directory I<dir/subdir>. The following examples show some events that may "
842 #: build/C/man7/inotify.7:502
844 msgid "mkdir(\"dir/new\", mode);"
845 msgstr "mkdir(\"dir/new\", mode);"
848 #: build/C/man7/inotify.7:508
849 msgid "Generates an B<IN_CREATE | IN_ISDIR> event for I<dir>."
853 #: build/C/man7/inotify.7:508
855 msgid "rmdir(\"dir/subdir\");"
856 msgstr "rmdir(\"dir/subdir\");"
859 #: build/C/man7/inotify.7:520
861 "Generates B<IN_DELETE_SELF> and B<IN_IGNORED> events for I<subdir>, and an "
862 "B<IN_DELETE | IN_ISDIR> event for I<dir>."
866 #: build/C/man7/inotify.7:521
868 msgid "/proc interfaces"
869 msgstr "/proc インターフェース"
872 #: build/C/man7/inotify.7:524
874 "The following interfaces can be used to limit the amount of kernel memory "
875 "consumed by inotify:"
877 "以下のインターフェースは、inotify で消費される カーネルメモリの総量を制限する"
881 #: build/C/man7/inotify.7:524
883 msgid "I</proc/sys/fs/inotify/max_queued_events>"
884 msgstr "I</proc/sys/fs/inotify/max_queued_events>"
887 #: build/C/man7/inotify.7:533
889 "The value in this file is used when an application calls B<inotify_init>(2) "
890 "to set an upper limit on the number of events that can be queued to the "
891 "corresponding inotify instance. Events in excess of this limit are dropped, "
892 "but an B<IN_Q_OVERFLOW> event is always generated."
894 "このファイルの値は、アプリケーションが B<inotify_init>(2) を呼び出すときに使"
895 "用され、対応する inotify インスタンスについて キューに入れられるイベントの数"
896 "の上限を設定する。 この制限を超えたイベントは破棄されるが、 B<IN_Q_OVERFLOW> "
900 #: build/C/man7/inotify.7:533
902 msgid "I</proc/sys/fs/inotify/max_user_instances>"
903 msgstr "I</proc/sys/fs/inotify/max_user_instances>"
906 #: build/C/man7/inotify.7:537
908 "This specifies an upper limit on the number of inotify instances that can be "
909 "created per real user ID."
911 "1 つの実ユーザ ID に対して生成できる inotify インスタンスの数の上限を指定す"
915 #: build/C/man7/inotify.7:537
917 msgid "I</proc/sys/fs/inotify/max_user_watches>"
918 msgstr "I</proc/sys/fs/inotify/max_user_watches>"
921 #: build/C/man7/inotify.7:541
923 "This specifies an upper limit on the number of watches that can be created "
925 msgstr "作成可能な監視対象の数の実 UID 単位の上限を指定する。"
928 #: build/C/man7/inotify.7:541 build/C/man2/inotify_add_watch.2:118
929 #: build/C/man2/inotify_init.2:94 build/C/man2/inotify_rm_watch.2:67
935 #: build/C/man7/inotify.7:549
937 "Inotify was merged into the 2.6.13 Linux kernel. The required library "
938 "interfaces were added to glibc in version 2.4. (B<IN_DONT_FOLLOW>, "
939 "B<IN_MASK_ADD>, and B<IN_ONLYDIR> were added in glibc version 2.5.)"
941 "inotify は 2.6.13 の Linux カーネルに組込まれた。 これに必要なライブラリのイ"
942 "ンターフェースは、 glibc のバージョン 2.4 に追加された (B<IN_DONT_FOLLOW>, "
943 "B<IN_MASK_ADD>, B<IN_ONLYDIR> は glibc バージョン 2.5 で追加された)。"
946 #: build/C/man7/inotify.7:549 build/C/man2/inotify_add_watch.2:120
947 #: build/C/man2/inotify_init.2:101 build/C/man2/inotify_rm_watch.2:69
949 msgid "CONFORMING TO"
953 #: build/C/man7/inotify.7:551
954 msgid "The inotify API is Linux-specific."
955 msgstr "inotify API は Linux 独自のものである。"
958 #: build/C/man7/inotify.7:551
964 #: build/C/man7/inotify.7:558
966 "Inotify file descriptors can be monitored using B<select>(2), B<poll>(2), "
967 "and B<epoll>(7). When an event is available, the file descriptor indicates "
970 "inotify ファイルディスクリプタは B<select>(2), B<poll>(2), B<epoll>(7) を"
971 "使って監視できる。 イベントがある場合、ファイルディスクリプタは読み込み可能と"
975 #: build/C/man7/inotify.7:587
977 "Since Linux 2.6.25, signal-driven I/O notification is available for inotify "
978 "file descriptors; see the discussion of B<F_SETFL> (for setting the "
979 "B<O_ASYNC> flag), B<F_SETOWN>, and B<F_SETSIG> in B<fcntl>(2). The "
980 "I<siginfo_t> structure (described in B<sigaction>(2)) that is passed to the "
981 "signal handler has the following fields set: I<si_fd> is set to the inotify "
982 "file descriptor number; I<si_signo> is set to the signal number; I<si_code> "
983 "is set to B<POLL_IN>; and B<POLLIN> is set in I<si_band>."
985 "Linux 2.6.25 以降では、シグナル駆動 (signal-driven) I/O の通知が inotify ファ"
986 "イルディスクリプタについて利用可能である。 B<fcntl>(2) に書かれている "
987 "(B<O_ASYNC> フラグを設定するための) B<F_SETFL>, B<F_SETOWN>, B<F_SETSIG> の"
988 "議論を参照のこと。 シグナルハンドラに渡される I<siginfo_t> 構造体は、以下の"
989 "フィールドが設定される (I<siginfo_t> は B<sigaction>(2) で説明されている)。 "
990 "I<si_fd> には inotify ファイルディスクリプタ番号が、 I<si_signo> にはシグナル"
991 "番号が、 I<si_code> には B<POLL_IN> が、 I<si_band> には B<POLLIN> が設定され"
995 #: build/C/man7/inotify.7:600
997 "If successive output inotify events produced on the inotify file descriptor "
998 "are identical (same I<wd>, I<mask>, I<cookie>, and I<name>), then they are "
999 "coalesced into a single event if the older event has not yet been read (but "
1000 "see BUGS). This reduces the amount of kernel memory required for the event "
1001 "queue, but also means that an application can't use inotify to reliably "
1002 "count file events."
1004 "inotify ファイルディスクリプタに対して 連続して生成される出力 inotify イベン"
1005 "トが同一の場合 (I<wd>, I<mask>, I<cookie>, I<name> が等しい場合)、 前のイベン"
1006 "トがまだ読み込まれていなければ、 連続するイベントが 1 つのイベントにまとめら"
1007 "れる (ただし「バグ」の節も参照のこと)。 これによりイベントキューに必要なカー"
1008 "ネルメモリ量が減るが、 これはまたアプリケーションがファイルイベント数を信頼性"
1009 "を持って数えるのに inotify を使用できないということでもある。"
1012 #: build/C/man7/inotify.7:606
1014 "The events returned by reading from an inotify file descriptor form an "
1015 "ordered queue. Thus, for example, it is guaranteed that when renaming from "
1016 "one directory to another, events will be produced in the correct order on "
1017 "the inotify file descriptor."
1019 "inotify ファイルディスクリプタの読み込みで返されるイベントは、 順序付けられた"
1020 "キューになる。 従って、たとえば、あるディレクトリの名前を別の名前に変更した場"
1021 "合、 inotify ファイルディスクリプタについての正しい順番で イベントが生成され"
1025 #: build/C/man7/inotify.7:612
1027 "The B<FIONREAD> B<ioctl>(2) returns the number of bytes available to read "
1028 "from an inotify file descriptor."
1030 "B<FIONREAD> B<ioctl>(2) は inotify ファイルディスクリプタから何バイト読み込"
1034 #: build/C/man7/inotify.7:612
1036 msgid "Limitations and caveats"
1040 #: build/C/man7/inotify.7:619
1042 "The inotify API provides no information about the user or process that "
1043 "triggered the inotify event. In particular, there is no easy way for a "
1044 "process that is monitoring events via inotify to distinguish events that it "
1045 "triggers itself from those that are triggered by other processes."
1047 "inotify API では、inotify イベントが発生するきっかけとなったユーザやプロセス"
1048 "に関する情報は提供されない。とりわけ、inotify 経由でイベントを監視しているプ"
1049 "ロセスが、自分自身がきっかけとなったイベントと他のプロセスがきっかけとなった"
1050 "イベントを区別する簡単な手段はない。"
1053 #: build/C/man7/inotify.7:632
1055 "Inotify reports only events that a user-space program triggers through the "
1056 "filesystem API. As a result, it does not catch remote events that occur on "
1057 "network filesystems. (Applications must fall back to polling the filesystem "
1058 "to catch such events.) Furthermore, various pseudo-filesystems such as I</"
1059 "proc>, I</sys>, and I</dev/pts> are not monitorable with inotify."
1063 #: build/C/man7/inotify.7:638
1065 "The inotify API does not report file accesses and modifications that may "
1066 "occur because of B<mmap>(2) and B<msync>(2)."
1070 #: build/C/man7/inotify.7:642
1072 "The inotify API identifies affected files by filename. However, by the time "
1073 "an application processes an inotify event, the filename may already have "
1074 "been deleted or renamed."
1076 "inotify API では影響が受けるファイルをファイル名で特定する。\n"
1077 "しかしながら、アプリケーションが inotify イベントを処理する時点では、\n"
1078 "そのファイル名がすでに削除されたり変更されたりしている可能性がある。"
1081 #: build/C/man7/inotify.7:647
1083 "The inotify API identifies events via watch descriptors. It is the "
1084 "application's responsibility to cache a mapping (if one is needed) between "
1085 "watch descriptors and pathnames. Be aware that directory renamings may "
1086 "affect multiple cached pathnames."
1090 #: build/C/man7/inotify.7:652
1092 "Inotify monitoring of directories is not recursive: to monitor "
1093 "subdirectories under a directory, additional watches must be created. This "
1094 "can take a significant amount time for large directory trees."
1096 "inotify によるディレクトリの監視は再帰的に行われない: あるディレクトリ以下"
1098 "サブディレクトリを監視する場合、 監視対象を追加で作成しなければならない。\n"
1099 "大きなディレクトリツリーの場合には、この作業にかなり時間がかかることがある。"
1102 #: build/C/man7/inotify.7:661
1104 "If monitoring an entire directory subtree, and a new subdirectory is created "
1105 "in that tree or an existing directory is renamed into that tree, be aware "
1106 "that by the time you create a watch for the new subdirectory, new files (and "
1107 "subdirectories) may already exist inside the subdirectory. Therefore, you "
1108 "may want to scan the contents of the subdirectory immediately after adding "
1109 "the watch (and, if desired, recursively add watches for any subdirectories "
1110 "that it contains)."
1112 "ディレクトリツリー全体を監視していて、 そのツリー内に新しいサブディレクトリが"
1113 "作成されるか、 既存のディレクトリが名前が変更されそのツリー内に移動した場"
1114 "合、 新しいサブディレクトリに対する watch を作成するまでに、 新しいファイル "
1115 "(やサブディレクトリ) がそのサブディレクトリ内にすでに作成されている場合がある"
1116 "点に注意すること。 したがって、watch を追加した直後にサブディレクトリの内容を"
1117 "スキャンしたいと思う場合もあるだろう (必要ならそのサブディレクトリ内のサブ"
1118 "ディレクトリに対する watch も再帰的に追加することもあるだろう)。"
1121 #: build/C/man7/inotify.7:673
1123 "Note that the event queue can overflow. In this case, events are lost. "
1124 "Robust applications should handle the possibility of lost events "
1125 "gracefully. For example, it may be necessary to rebuild part or all of the "
1126 "application cache. (One simple, but possibly expensive, approach is to "
1127 "close the inotify file descriptor, empty the cache, create a new inotify "
1128 "file descriptor, and then re-create watches and cache entries for the "
1129 "objects to be monitored.)"
1133 #: build/C/man7/inotify.7:673
1135 msgid "Dealing with rename() events"
1136 msgstr "rename() イベントの取り扱い"
1139 #: build/C/man7/inotify.7:682
1141 "As noted above, the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair that is "
1142 "generated by B<rename>(2) can be matched up via their shared cookie value. "
1143 "However, the task of matching has some challenges."
1147 #: build/C/man7/inotify.7:693
1149 "These two events are usually consecutive in the event stream available when "
1150 "reading from the inotify file descriptor. However, this is not guaranteed. "
1151 "If multiple processes are triggering events for monitored objects, then (on "
1152 "rare occasions) an arbitrary number of other events may appear between the "
1153 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events."
1157 #: build/C/man7/inotify.7:718
1159 "Matching up the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair generated by "
1160 "B<rename>(2) is thus inherently racy. (Don't forget that if an object is "
1161 "renamed outside of a monitored directory, there may not even be an "
1162 "B<IN_MOVED_TO> event.) Heuristic approaches (e.g., assume the events are "
1163 "always consecutive) can be used to ensure a match in most cases, but will "
1164 "inevitably miss some cases, causing the application to perceive the "
1165 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events as being unrelated. If watch "
1166 "descriptors are destroyed and re-created as a result, then those watch "
1167 "descriptors will be inconsistent with the watch descriptors in any pending "
1168 "events. (Re-creating the inotify file descriptor and rebuilding the cache "
1169 "may be useful to deal with this scenario.)"
1173 #: build/C/man7/inotify.7:728
1175 "Applications should also allow for the possibility that the B<IN_MOVED_FROM> "
1176 "event was the last event that could fit in the buffer returned by the "
1177 "current call to B<read>(2), and the accompanying B<IN_MOVED_TO> event might "
1178 "be fetched only on the next B<read>(2)."
1182 #: build/C/man7/inotify.7:728
1187 #. FIXME kernel commit 611da04f7a31b2208e838be55a42c7a1310ae321
1188 #. implies that unmount events were buggy 2.6.11 to 2.6.36
1190 #: build/C/man7/inotify.7:736
1191 msgid "In kernels before 2.6.16, the B<IN_ONESHOT> I<mask> flag does not work."
1192 msgstr "2.6.16 以前のカーネルでは B<IN_ONESHOT> I<mask> フラグが働かない。"
1195 #: build/C/man7/inotify.7:746
1197 "As originally designed and implemented, the B<IN_ONESHOT> flag did not cause "
1198 "an B<IN_IGNORED> event to be generated when the watch was dropped after one "
1199 "event. However, as an unintended effect of other changes, since Linux "
1200 "2.6.36, an B<IN_IGNORED> event is generated in this case."
1203 #. commit 1c17d18e3775485bf1e0ce79575eb637a94494a2
1205 #: build/C/man7/inotify.7:755
1207 "Before kernel 2.6.25, the kernel code that was intended to coalesce "
1208 "successive identical events (i.e., the two most recent events could "
1209 "potentially be coalesced if the older had not yet been read) instead "
1210 "checked if the most recent event could be coalesced with the I<oldest> "
1213 "カーネル 2.6.25 より前では、 連続する同一のイベントを一つにまとめることを意図"
1214 "したコード (古い方のイベントがまだ読み込まれていない場合に、 最新の 2 つのイ"
1215 "ベントを一つにまとめられる可能性がある) が、 最新のイベントが「最も古い」読み"
1216 "込まれていないイベントとまとめられるか をチェックするようになっていた。"
1219 #: build/C/man7/inotify.7:755 build/C/man2/inotify_add_watch.2:122
1220 #: build/C/man2/inotify_init.2:103 build/C/man2/inotify_rm_watch.2:71
1226 #: build/C/man7/inotify.7:764
1228 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1229 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1232 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1233 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1237 #: build/C/man7/inotify.7:767
1239 "I<Documentation/filesystems/inotify.txt> in the Linux kernel source tree"
1240 msgstr "Linux カーネルソース内の I<Documentation/filesystems/inotify.txt>"
1243 #: build/C/man7/inotify.7:767 build/C/man2/inotify_add_watch.2:126
1244 #: build/C/man2/inotify_init.2:107 build/C/man2/inotify_rm_watch.2:75
1250 #: build/C/man7/inotify.7:774 build/C/man2/inotify_add_watch.2:133
1251 #: build/C/man2/inotify_init.2:114 build/C/man2/inotify_rm_watch.2:82
1253 "This page is part of release 3.65 of the Linux I<man-pages> project. A "
1254 "description of the project, and information about reporting bugs, can be "
1255 "found at \\%http://www.kernel.org/doc/man-pages/."
1257 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.65 の一部\n"
1258 "である。プロジェクトの説明とバグ報告に関する情報は\n"
1259 "http://www.kernel.org/doc/man-pages/ に書かれている。"
1262 #: build/C/man2/inotify_add_watch.2:28
1264 msgid "INOTIFY_ADD_WATCH"
1265 msgstr "INOTIFY_ADD_WATCH"
1268 #: build/C/man2/inotify_add_watch.2:28 build/C/man2/inotify_init.2:29
1274 #: build/C/man2/inotify_add_watch.2:31
1275 msgid "inotify_add_watch - add a watch to an initialized inotify instance"
1277 "inotify_add_watch - 初期化済み inotify インスタンスに監視対象を追加する"
1280 #: build/C/man2/inotify_add_watch.2:31 build/C/man2/inotify_init.2:32
1281 #: build/C/man2/inotify_rm_watch.2:30
1287 #: build/C/man2/inotify_add_watch.2:33 build/C/man2/inotify_rm_watch.2:32
1288 msgid "B<#include E<lt>sys/inotify.hE<gt>>"
1289 msgstr "B<#include E<lt>sys/inotify.hE<gt>>"
1292 #: build/C/man2/inotify_add_watch.2:35
1294 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1297 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1301 #: build/C/man2/inotify_add_watch.2:54
1303 "B<inotify_add_watch>() adds a new watch, or modifies an existing watch, for "
1304 "the file whose location is specified in I<pathname>; the caller must have "
1305 "read permission for this file. The I<fd> argument is a file descriptor "
1306 "referring to the inotify instance whose watch list is to be modified. The "
1307 "events to be monitored for I<pathname> are specified in the I<mask> bit-mask "
1308 "argument. See B<inotify>(7) for a description of the bits that can be set "
1311 "B<inotify_add_watch>() は、 I<pathname> で指定された位置にあるファイルを監視"
1312 "する監視アイテム (watch) の新規追加、 または既存の監視アイテムの変更を行う。 "
1313 "呼び出し元は、監視対象のファイルに対する読み出し許可を 持っていなければならな"
1314 "い。 I<fd> 引き数は、変更を行う監視対象リスト (watch list) を持つ inotify イ"
1315 "ンスタンスを参照するファイルディスクリプタである。 I<pathname> のどのイベント"
1316 "を監視するかは、引き数のビットマスク I<mask> で指定する。 I<mask> に設定でき"
1317 "るビットの説明については B<inotify>(7) を参照のこと。"
1320 #: build/C/man2/inotify_add_watch.2:68
1322 "A successful call to B<inotify_add_watch>() returns the unique watch "
1323 "descriptor associated with I<pathname> for this inotify instance. If "
1324 "I<pathname> was not previously being watched by this inotify instance, then "
1325 "the watch descriptor is newly allocated. If I<pathname> was already being "
1326 "watched, then the descriptor for the existing watch is returned."
1328 "B<inotify_add_watch>() の呼び出しが成功すると、変更対象の inotify インスタン"
1329 "スで I<pathname> に対応付けられる一意な監視対象ディスクリプタ (watch "
1330 "descriptor) を返す。 I<pathname> がその inotify インスタンスに追加されていな"
1331 "ければ、 監視対象ディスクリプタが新規に割り当てられる。 I<pathname> がすでに"
1332 "監視対象になっていれば、既存の監視アイテムに対する ディスクリプタが返される。"
1335 #: build/C/man2/inotify_add_watch.2:79
1337 "The watch descriptor is returned by later B<read>(2)s from the inotify file "
1338 "descriptor. These reads fetch I<inotify_event> structures (see B<inotify>"
1339 "(7)) indicating filesystem events; the watch descriptor inside this "
1340 "structure identifies the object for which the event occurred."
1342 "これ以降に inotify ファイルディスクリプタから B<read>(2) を行うと、監視対象"
1343 "ディスクリプタが返される。 これらの B<read>() を行うと、ファイルシステムイベ"
1344 "ントを示す I<inotify_event> 構造体が読み出される (B<inotify>(7) 参照)。この"
1345 "構造体内の監視対象ディスクリプタにより、 どのオブジェクトでそのイベントが発生"
1349 #: build/C/man2/inotify_add_watch.2:79 build/C/man2/inotify_init.2:74
1350 #: build/C/man2/inotify_rm_watch.2:48
1352 msgid "RETURN VALUE"
1356 #: build/C/man2/inotify_add_watch.2:86
1358 "On success, B<inotify_add_watch>() returns a nonnegative watch descriptor. "
1359 "On error, -1 is returned and I<errno> is set appropriately."
1361 "成功すると、 B<inotify_add_watch>() は非負の監視対象ディスクリプタを返す。 "
1362 "エラーの場合、-1 を返し、 I<errno> を適切に設定する。"
1365 #: build/C/man2/inotify_add_watch.2:86 build/C/man2/inotify_init.2:79
1366 #: build/C/man2/inotify_rm_watch.2:55
1372 #: build/C/man2/inotify_add_watch.2:87
1378 #: build/C/man2/inotify_add_watch.2:90
1379 msgid "Read access to the given file is not permitted."
1380 msgstr "指定されたファイルに対する読み出しアクセスが許可されていない。"
1383 #: build/C/man2/inotify_add_watch.2:90 build/C/man2/inotify_rm_watch.2:56
1389 #: build/C/man2/inotify_add_watch.2:93
1390 msgid "The given file descriptor is not valid."
1391 msgstr "指定されたファイルディスクリプタが有効ではない。"
1394 #: build/C/man2/inotify_add_watch.2:93
1400 #: build/C/man2/inotify_add_watch.2:97
1401 msgid "I<pathname> points outside of the process's accessible address space."
1403 "I<pathname> が指すアドレスがプロセスがアクセスできるアドレス空間外である。"
1406 #: build/C/man2/inotify_add_watch.2:97 build/C/man2/inotify_init.2:80
1407 #: build/C/man2/inotify_rm_watch.2:60
1413 #: build/C/man2/inotify_add_watch.2:102
1415 "The given event mask contains no valid events; or I<fd> is not an inotify "
1418 "指定されたイベントマスクに有効なイベントが含まれていない。 もしくは I<fd> が "
1419 "inotify ファイルディスクリプタではない。"
1422 #: build/C/man2/inotify_add_watch.2:102
1424 msgid "B<ENAMETOOLONG>"
1425 msgstr "B<ENAMETOOLONG>"
1428 #: build/C/man2/inotify_add_watch.2:106
1429 msgid "I<pathname> is too long."
1430 msgstr "I<pathname> が長過ぎる。"
1433 #: build/C/man2/inotify_add_watch.2:106
1439 #: build/C/man2/inotify_add_watch.2:111
1441 "A directory component in I<pathname> does not exist or is a dangling "
1444 "I<pathname> のディレクトリ部分の構成要素が、存在しないか、\n"
1445 "リンク切れのシンボリックリンクである。"
1448 #: build/C/man2/inotify_add_watch.2:111 build/C/man2/inotify_init.2:91
1454 #: build/C/man2/inotify_add_watch.2:114
1455 msgid "Insufficient kernel memory was available."
1456 msgstr "カーネルメモリが十分になかった。"
1459 #: build/C/man2/inotify_add_watch.2:114
1465 #: build/C/man2/inotify_add_watch.2:118
1467 "The user limit on the total number of inotify watches was reached or the "
1468 "kernel failed to allocate a needed resource."
1470 "inotify 監視対象の総数がユーザが追加できる上限に達していた。 もしくは、必要な"
1471 "資源の割り当てにカーネルが失敗した。"
1474 #: build/C/man2/inotify_add_watch.2:120 build/C/man2/inotify_rm_watch.2:69
1475 msgid "Inotify was merged into the 2.6.13 Linux kernel."
1476 msgstr "inotify は Linux カーネル 2.6.13 に組み込まれた。"
1479 #: build/C/man2/inotify_add_watch.2:122 build/C/man2/inotify_rm_watch.2:71
1480 msgid "This system call is Linux-specific."
1481 msgstr "このシステムコールは Linux 独自である。"
1484 #: build/C/man2/inotify_add_watch.2:126
1485 msgid "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1486 msgstr "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1489 #: build/C/man2/inotify_init.2:29
1491 msgid "INOTIFY_INIT"
1492 msgstr "INOTIFY_INIT"
1495 #: build/C/man2/inotify_init.2:32
1496 msgid "inotify_init, inotify_init1 - initialize an inotify instance"
1497 msgstr "inotify_init, inotify_init1 - inotify インスタンスを初期化する"
1500 #: build/C/man2/inotify_init.2:35
1502 msgid "B<#include E<lt>sys/inotify.hE<gt>>\n"
1503 msgstr "B<#include E<lt>sys/inotify.hE<gt>>\n"
1506 #: build/C/man2/inotify_init.2:38
1509 "B<int inotify_init(void);>\n"
1510 "B<int inotify_init1(int >I<flags>B<);>\n"
1512 "B<int inotify_init(void);>\n"
1513 "B<int inotify_init1(int >I<flags>B<);>\n"
1516 #: build/C/man2/inotify_init.2:42
1517 msgid "For an overview of the inotify API, see B<inotify>(7)."
1518 msgstr "inotify API の概要については B<inotify>(7) を参照。"
1521 #: build/C/man2/inotify_init.2:46
1523 "B<inotify_init>() initializes a new inotify instance and returns a file "
1524 "descriptor associated with a new inotify event queue."
1526 "B<inotify_init>() は、新規の inotify インスタンスを初期化し、作成された "
1527 "inotify イベントキュー に対応するファイルディスクリプタを返す。"
1530 #: build/C/man2/inotify_init.2:56
1532 "If I<flags> is 0, then B<inotify_init1>() is the same as B<inotify_init>"
1533 "(). The following values can be bitwise ORed in I<flags> to obtain "
1534 "different behavior:"
1536 "B<inotify_init1>() は、 I<flags> が 0 の場合、 B<inotify_init>() と同じであ"
1537 "る。 I<flags> に以下の値をビット毎の論理和 (OR) で指定することで、 異なる動作"
1541 #: build/C/man2/inotify_init.2:56
1543 msgid "B<IN_NONBLOCK>"
1544 msgstr "B<IN_NONBLOCK>"
1547 #: build/C/man2/inotify_init.2:64
1549 "Set the B<O_NONBLOCK> file status flag on the new open file description. "
1550 "Using this flag saves extra calls to B<fcntl>(2) to achieve the same result."
1552 "新しく生成されるオープンファイル記述 (open file description) の BR "
1553 "O_NONBLOCK ファイルステータスフラグをセットする。 このフラグを使うことで、 "
1554 "B<O_NONBLOCK> をセットするために B<fcntl>(2) を追加で呼び出す必要がなくな"
1558 #: build/C/man2/inotify_init.2:64
1560 msgid "B<IN_CLOEXEC>"
1561 msgstr "B<IN_CLOEXEC>"
1564 #: build/C/man2/inotify_init.2:74
1566 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See "
1567 "the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this "
1570 "新しいファイル・ディスクリプターに対して close-on-exec (B<FD_CLOEXEC>) フラ"
1571 "グをセットする。 このフラグが役に立つ理由については、 B<open>(2) の "
1572 "B<O_CLOEXEC> フラグの説明を参照のこと。"
1575 #: build/C/man2/inotify_init.2:79
1577 "On success, these system calls return a new file descriptor. On error, -1 "
1578 "is returned, and I<errno> is set to indicate the error."
1580 "成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。 エ"
1581 "ラーの場合、-1 を返し、 I<errno> をエラーを示す値に設定する。"
1584 #: build/C/man2/inotify_init.2:85
1585 msgid "(B<inotify_init1>()) An invalid value was specified in I<flags>."
1586 msgstr "(B<inotify_init1>()) 無効な値が I<flags> に指定された。"
1589 #: build/C/man2/inotify_init.2:85
1595 #: build/C/man2/inotify_init.2:88
1597 "The user limit on the total number of inotify instances has been reached."
1598 msgstr "inotify インスタンスの総数がユーザ単位の上限に達していた。"
1601 #: build/C/man2/inotify_init.2:88
1607 #: build/C/man2/inotify_init.2:91
1609 "The system limit on the total number of file descriptors has been reached."
1610 msgstr "inotify インスタンスの総数がシステムの上限に達していた。"
1613 #: build/C/man2/inotify_init.2:94
1614 msgid "Insufficient kernel memory is available."
1615 msgstr "カーネルメモリが十分になかった。"
1618 #: build/C/man2/inotify_init.2:101
1620 "B<inotify_init>() first appeared in Linux 2.6.13; library support was added "
1621 "to glibc in version 2.4. B<inotify_init1>() was added in Linux 2.6.27; "
1622 "library support was added to glibc in version 2.9."
1624 "B<inotify_init>() は Linux 2.6.13 で初めて登場し、\n"
1625 "ライブラリによるサポートは glibc バージョン 2.4 で追加された。\n"
1626 "B<inotify_init1>() は Linux 2.6.27 で追加され、\n"
1627 "ライブラリによるサポートは glibc バージョン 2.9 で追加された。"
1630 #: build/C/man2/inotify_init.2:103
1631 msgid "These system calls are Linux-specific."
1632 msgstr "これらのシステムコールは Linux 独自である。"
1635 #: build/C/man2/inotify_init.2:107
1636 msgid "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1637 msgstr "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1640 #: build/C/man2/inotify_rm_watch.2:27
1642 msgid "INOTIFY_RM_WATCH"
1643 msgstr "INOTIFY_RM_WATCH"
1646 #: build/C/man2/inotify_rm_watch.2:27
1652 #: build/C/man2/inotify_rm_watch.2:30
1653 msgid "inotify_rm_watch - remove an existing watch from an inotify instance"
1655 "inotify_rm_watch - inotify インスタンスから既存の監視アイテムを削除する"
1657 #. Before glibc 2.10, the second argument was types as uint32_t.
1658 #. http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
1660 #: build/C/man2/inotify_rm_watch.2:36
1661 msgid "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1662 msgstr "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1665 #: build/C/man2/inotify_rm_watch.2:42
1667 "B<inotify_rm_watch>() removes the watch associated with the watch "
1668 "descriptor I<wd> from the inotify instance associated with the file "
1671 "B<inotify_rm_watch>() は、監視対象ディスクリプタ (watch descriptor) I<wd> "
1672 "に対応する監視アイテムを、 ファイルディスクリプタ I<fd> に対応する inotify イ"
1676 #: build/C/man2/inotify_rm_watch.2:48
1678 "Removing a watch causes an B<IN_IGNORED> event to be generated for this "
1679 "watch descriptor. (See B<inotify>(7).)"
1681 "監視対象を削除すると、 この監視対象ディスクリプタに対して B<IN_IGNORED> イベ"
1682 "ントが生成される (B<inotify>(7) 参照)。"
1685 #: build/C/man2/inotify_rm_watch.2:55
1687 "On success, B<inotify_rm_watch>() returns zero. On error, -1 is returned "
1688 "and I<errno> is set to indicate the cause of the error."
1690 "成功すると、B<inotify_rm_watch>() は 0 を返す。 エラーの場合、-1 を返し、 "
1691 "I<errno> をエラーの原因を示す値に設定する。"
1694 #: build/C/man2/inotify_rm_watch.2:60
1695 msgid "I<fd> is not a valid file descriptor."
1696 msgstr "I<fd> が有効なファイルディスクリプタではない。"
1699 #: build/C/man2/inotify_rm_watch.2:67
1701 "The watch descriptor I<wd> is not valid; or I<fd> is not an inotify file "
1704 "監視対象ディスクリプタ I<wd> が有効でない。もしくは、 I<fd> が inotify ファイ"
1708 #: build/C/man2/inotify_rm_watch.2:75
1709 msgid "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1710 msgstr "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1712 #~ msgid "2013-09-16"
1713 #~ msgstr "2013-09-16"
1716 #~ "The following system calls are used with this API: B<inotify_init>(2) "
1717 #~ "(or B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>"
1718 #~ "(2), B<read>(2), and B<close>(2)."
1720 #~ "以下のシステムコールがこの API と共に使用される: B<inotify_init>(2) (や "
1721 #~ "B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>(2), "
1722 #~ "B<read>(2), B<close>(2)."
1724 #~ msgid "File/directory created in watched directory (*)."
1725 #~ msgstr "監視対象ディレクトリ内でファイルやディレクトリが作成された。(*)"
1727 #~ msgid "Watched file/directory was itself deleted."
1728 #~ msgstr "監視対象のディレクトリまたはファイル自身が削除された。"
1730 #~ msgid "File was modified (*)."
1731 #~ msgstr "ファイルが修正された。(*)"
1734 #~ "Two additional convenience macros are B<IN_MOVE>, which equates to "
1735 #~ "IN_MOVED_FROM|IN_MOVED_TO, and B<IN_CLOSE>, which equates to "
1736 #~ "IN_CLOSE_WRITE|IN_CLOSE_NOWRITE."
1738 #~ "さらに 2 つの便利なマクロがある。\n"
1739 #~ "B<IN_MOVE> は IN_MOVED_FROM|IN_MOVED_TO と同じで、\n"
1740 #~ "B<IN_CLOSE> は IN_CLOSE_WRITE|IN_CLOSE_NOWRITE と同じである。"
1742 #~ msgid "Filesystem containing watched object was unmounted."
1743 #~ msgstr "監視対象オブジェクトを含むファイルシステムがアンマウントされた。"
1746 #~ "Note that the event queue can overflow. In this case, events are lost. "
1747 #~ "Robust applications should handle the possibility of lost events "
1750 #~ "イベントキューは溢れる場合があることに注意すること。この場合にはイベント"
1752 #~ "失われてしまう。堅牢性が必要なアプリケーションでは、イベントが失われる可能"
1757 #~ "On success, B<inotify_rm_watch>() returns zero, or -1 if an error "
1758 #~ "occurred (in which case, I<errno> is set appropriately)."
1760 #~ "成功すると、 B<inotify_rm_watch>() は 0 を返す。 エラーの場合、-1 を返"
1761 #~ "し、 I<errno> を適切に設定する。"
1763 #~ msgid "File moved out of watched directory (*)."
1764 #~ msgstr "ファイルが監視対象ディレクトリ外へ移動された。(*)"
1766 #~ msgid "File moved into watched directory (*)."
1767 #~ msgstr "ファイルが監視対象ディレクトリ内へ移動された。(*)"
1770 #~ "The inotify API provides no information about the user or process that "
1771 #~ "triggered the inotify event."
1773 #~ "inotify API では inotify イベントのきっかけとなったユーザやプロセスに関す"