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-21 02:20+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[]; /* NULL で終端された任意の名前 */\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 "名を表す。 このパス名は NULL で終端され、 その後の読み込みで適切なアドレス境"
257 "界に調整するために、 さらに NULL バイト (\\(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> フィールドは NULL バイトを含む 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(\"dir/myfile\", \"dir2/new\");"
757 msgid "link(\"dir1/myfile\", \"dir2/new\");"
758 msgstr "link(\"dir/myfile\", \"dir2/new\");"
761 #: build/C/man7/inotify.7:434
763 "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event for "
766 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
767 "B<IN_CREATE> イベントが生成される。"
770 #: build/C/man7/inotify.7:434
772 msgid "rename(\"dir1/myfile\", \"dir2/myfile\");"
773 msgstr "rename(\"dir1/myfile\", \"dir2/myfile\");"
776 #: build/C/man7/inotify.7:455
778 "Generates an B<IN_MOVED_FROM> event for I<dir1>, an B<IN_MOVED_TO> event for "
779 "I<dir2>, and an B<IN_MOVE_SELF> event for I<myfile>. The B<IN_MOVED_FROM> "
780 "and B<IN_MOVED_TO> events will have the same I<cookie> value."
782 "I<dir1> に対してイベント B<IN_MOVED_FROM> が、 I<dir2> に対してイベント "
783 "B<IN_MOVED_TO> が、 I<myfile> に対してイベント B<IN_MOVE_SELF> が生成される。"
784 "この際 イベント B<IN_MOVED_FROM> と B<IN_MOVED_TO> は同じ I<cookie> 値を持"
788 #: build/C/man7/inotify.7:469
790 "Suppose that I<dir1/xx> and I<dir2/yy> are (the only) links to the same "
791 "file, and an application is watching I<dir1>, I<dir2>, I<dir1/xx>, and "
792 "I<dir2/yy>. Executing the following calls in the order given below will "
793 "generate the following events:"
797 #: build/C/man7/inotify.7:470
799 msgid "unlink(\"dir2/yy\");"
800 msgstr "unlink(\"dir2/yy\");"
803 #: build/C/man7/inotify.7:481
806 #| "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event "
809 "Generates an B<IN_ATTRIB> event for I<xx> (because its link count changes) "
810 "and an B<IN_DELETE> event for I<dir2>."
812 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
813 "B<IN_CREATE> イベントが生成される。"
816 #: build/C/man7/inotify.7:481
818 msgid "unlink(\"dir1/xx\");"
819 msgstr "unlink(\"dir1/xx\");"
822 #: build/C/man7/inotify.7:494
825 #| "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event "
828 "Generates B<IN_ATTRIB>, B<IN_DELETE_SELF>, and B<IN_IGNORED> events for "
829 "I<xx>, and an B<IN_DELETE> event for I<dir1>."
831 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
832 "B<IN_CREATE> イベントが生成される。"
835 #: build/C/man7/inotify.7:501
837 "Suppose an application is watching the directory I<dir> and (the empty) "
838 "directory I<dir/subdir>. The following examples show some events that may "
843 #: build/C/man7/inotify.7:502
845 msgid "mkdir(\"dir/new\", mode);"
846 msgstr "mkdir(\"dir/new\", mode);"
849 #: build/C/man7/inotify.7:508
850 msgid "Generates an B<IN_CREATE | IN_ISDIR> event for I<dir>."
854 #: build/C/man7/inotify.7:508
856 #| msgid "rmdir(\"dir/sub\");"
857 msgid "rmdir(\"dir/subdir\");"
858 msgstr "rmdir(\"dir/sub\");"
861 #: build/C/man7/inotify.7:520
863 "Generates B<IN_DELETE_SELF> and B<IN_IGNORED> events for I<subdir>, and an "
864 "B<IN_DELETE | IN_ISDIR> event for I<dir>."
868 #: build/C/man7/inotify.7:521
870 msgid "/proc interfaces"
871 msgstr "/proc インターフェース"
874 #: build/C/man7/inotify.7:524
876 "The following interfaces can be used to limit the amount of kernel memory "
877 "consumed by inotify:"
879 "以下のインターフェースは、inotify で消費される カーネルメモリの総量を制限する"
883 #: build/C/man7/inotify.7:524
885 msgid "I</proc/sys/fs/inotify/max_queued_events>"
886 msgstr "I</proc/sys/fs/inotify/max_queued_events>"
889 #: build/C/man7/inotify.7:533
891 "The value in this file is used when an application calls B<inotify_init>(2) "
892 "to set an upper limit on the number of events that can be queued to the "
893 "corresponding inotify instance. Events in excess of this limit are dropped, "
894 "but an B<IN_Q_OVERFLOW> event is always generated."
896 "このファイルの値は、アプリケーションが B<inotify_init>(2) を呼び出すときに使"
897 "用され、対応する inotify インスタンスについて キューに入れられるイベントの数"
898 "の上限を設定する。 この制限を超えたイベントは破棄されるが、 B<IN_Q_OVERFLOW> "
902 #: build/C/man7/inotify.7:533
904 msgid "I</proc/sys/fs/inotify/max_user_instances>"
905 msgstr "I</proc/sys/fs/inotify/max_user_instances>"
908 #: build/C/man7/inotify.7:537
910 "This specifies an upper limit on the number of inotify instances that can be "
911 "created per real user ID."
913 "1 つの実ユーザ ID に対して生成できる inotify インスタンスの数の上限を指定す"
917 #: build/C/man7/inotify.7:537
919 msgid "I</proc/sys/fs/inotify/max_user_watches>"
920 msgstr "I</proc/sys/fs/inotify/max_user_watches>"
923 #: build/C/man7/inotify.7:541
925 "This specifies an upper limit on the number of watches that can be created "
927 msgstr "作成可能な監視対象の数の実 UID 単位の上限を指定する。"
930 #: build/C/man7/inotify.7:541 build/C/man2/inotify_add_watch.2:118
931 #: build/C/man2/inotify_init.2:94 build/C/man2/inotify_rm_watch.2:67
937 #: build/C/man7/inotify.7:549
939 "Inotify was merged into the 2.6.13 Linux kernel. The required library "
940 "interfaces were added to glibc in version 2.4. (B<IN_DONT_FOLLOW>, "
941 "B<IN_MASK_ADD>, and B<IN_ONLYDIR> were added in glibc version 2.5.)"
943 "inotify は 2.6.13 の Linux カーネルに組込まれた。 これに必要なライブラリのイ"
944 "ンターフェースは、 glibc のバージョン 2.4 に追加された (B<IN_DONT_FOLLOW>, "
945 "B<IN_MASK_ADD>, B<IN_ONLYDIR> は glibc バージョン 2.5 で追加された)。"
948 #: build/C/man7/inotify.7:549 build/C/man2/inotify_add_watch.2:120
949 #: build/C/man2/inotify_init.2:101 build/C/man2/inotify_rm_watch.2:69
951 msgid "CONFORMING TO"
955 #: build/C/man7/inotify.7:551
956 msgid "The inotify API is Linux-specific."
957 msgstr "inotify API は Linux 独自のものである。"
960 #: build/C/man7/inotify.7:551
966 #: build/C/man7/inotify.7:558
968 "Inotify file descriptors can be monitored using B<select>(2), B<poll>(2), "
969 "and B<epoll>(7). When an event is available, the file descriptor indicates "
972 "inotify ファイルディスクリプタは B<select>(2), B<poll>(2), B<epoll>(7) を"
973 "使って監視できる。 イベントがある場合、ファイルディスクリプタは読み込み可能と"
977 #: build/C/man7/inotify.7:587
979 "Since Linux 2.6.25, signal-driven I/O notification is available for inotify "
980 "file descriptors; see the discussion of B<F_SETFL> (for setting the "
981 "B<O_ASYNC> flag), B<F_SETOWN>, and B<F_SETSIG> in B<fcntl>(2). The "
982 "I<siginfo_t> structure (described in B<sigaction>(2)) that is passed to the "
983 "signal handler has the following fields set: I<si_fd> is set to the inotify "
984 "file descriptor number; I<si_signo> is set to the signal number; I<si_code> "
985 "is set to B<POLL_IN>; and B<POLLIN> is set in I<si_band>."
987 "Linux 2.6.25 以降では、シグナル駆動 (signal-driven) I/O の通知が inotify ファ"
988 "イルディスクリプタについて利用可能である。 B<fcntl>(2) に書かれている "
989 "(B<O_ASYNC> フラグを設定するための) B<F_SETFL>, B<F_SETOWN>, B<F_SETSIG> の"
990 "議論を参照のこと。 シグナルハンドラに渡される I<siginfo_t> 構造体は、以下の"
991 "フィールドが設定される (I<siginfo_t> は B<sigaction>(2) で説明されている)。 "
992 "I<si_fd> には inotify ファイルディスクリプタ番号が、 I<si_signo> にはシグナル"
993 "番号が、 I<si_code> には B<POLL_IN> が、 I<si_band> には B<POLLIN> が設定され"
997 #: build/C/man7/inotify.7:600
999 "If successive output inotify events produced on the inotify file descriptor "
1000 "are identical (same I<wd>, I<mask>, I<cookie>, and I<name>), then they are "
1001 "coalesced into a single event if the older event has not yet been read (but "
1002 "see BUGS). This reduces the amount of kernel memory required for the event "
1003 "queue, but also means that an application can't use inotify to reliably "
1004 "count file events."
1006 "inotify ファイルディスクリプタに対して 連続して生成される出力 inotify イベン"
1007 "トが同一の場合 (I<wd>, I<mask>, I<cookie>, I<name> が等しい場合)、 前のイベン"
1008 "トがまだ読み込まれていなければ、 連続するイベントが 1 つのイベントにまとめら"
1009 "れる (ただし「バグ」の節も参照のこと)。 これによりイベントキューに必要なカー"
1010 "ネルメモリ量が減るが、 これはまたアプリケーションがファイルイベント数を信頼性"
1011 "を持って数えるのに inotify を使用できないということでもある。"
1014 #: build/C/man7/inotify.7:606
1016 "The events returned by reading from an inotify file descriptor form an "
1017 "ordered queue. Thus, for example, it is guaranteed that when renaming from "
1018 "one directory to another, events will be produced in the correct order on "
1019 "the inotify file descriptor."
1021 "inotify ファイルディスクリプタの読み込みで返されるイベントは、 順序付けられた"
1022 "キューになる。 従って、たとえば、あるディレクトリの名前を別の名前に変更した場"
1023 "合、 inotify ファイルディスクリプタについての正しい順番で イベントが生成され"
1027 #: build/C/man7/inotify.7:612
1029 "The B<FIONREAD> B<ioctl>(2) returns the number of bytes available to read "
1030 "from an inotify file descriptor."
1032 "B<FIONREAD> B<ioctl>(2) は inotify ファイルディスクリプタから何バイト読み込"
1036 #: build/C/man7/inotify.7:612
1038 msgid "Limitations and caveats"
1042 #: build/C/man7/inotify.7:619
1044 "The inotify API provides no information about the user or process that "
1045 "triggered the inotify event. In particular, there is no easy way for a "
1046 "process that is monitoring events via inotify to distinguish events that it "
1047 "triggers itself from those that are triggered by other processes."
1049 "inotify API では、inotify イベントが発生するきっかけとなったユーザやプロセス"
1050 "に関する情報は提供されない。とりわけ、inotify 経由でイベントを監視しているプ"
1051 "ロセスが、自分自身がきっかけとなったイベントと他のプロセスがきっかけとなった"
1052 "イベントを区別する簡単な手段はない。"
1055 #: build/C/man7/inotify.7:632
1057 "Inotify reports only events that a user-space program triggers through the "
1058 "filesystem API. As a result, it does not catch remote events that occur on "
1059 "network filesystems. (Applications must fall back to polling the filesystem "
1060 "to catch such events.) Furthermore, various pseudo-filesystems such as I</"
1061 "proc>, I</sys>, and I</dev/pts> are not monitorable with inotify."
1065 #: build/C/man7/inotify.7:638
1067 "The inotify API does not report file accesses and modifications that may "
1068 "occur because of B<mmap>(2) and B<msync>(2)."
1072 #: build/C/man7/inotify.7:642
1074 "The inotify API identifies affected files by filename. However, by the time "
1075 "an application processes an inotify event, the filename may already have "
1076 "been deleted or renamed."
1078 "inotify API では影響が受けるファイルをファイル名で特定する。\n"
1079 "しかしながら、アプリケーションが inotify イベントを処理する時点では、\n"
1080 "そのファイル名がすでに削除されたり変更されたりしている可能性がある。"
1083 #: build/C/man7/inotify.7:647
1085 "The inotify API identifies events via watch descriptors. It is the "
1086 "application's responsibility to cache a mapping (if one is needed) between "
1087 "watch descriptors and pathnames. Be aware that directory renamings may "
1088 "affect multiple cached pathnames."
1092 #: build/C/man7/inotify.7:652
1094 "Inotify monitoring of directories is not recursive: to monitor "
1095 "subdirectories under a directory, additional watches must be created. This "
1096 "can take a significant amount time for large directory trees."
1098 "inotify によるディレクトリの監視は再帰的に行われない: あるディレクトリ以下"
1100 "サブディレクトリを監視する場合、 監視対象を追加で作成しなければならない。\n"
1101 "大きなディレクトリツリーの場合には、この作業にかなり時間がかかることがある。"
1104 #: build/C/man7/inotify.7:661
1106 "If monitoring an entire directory subtree, and a new subdirectory is created "
1107 "in that tree or an existing directory is renamed into that tree, be aware "
1108 "that by the time you create a watch for the new subdirectory, new files (and "
1109 "subdirectories) may already exist inside the subdirectory. Therefore, you "
1110 "may want to scan the contents of the subdirectory immediately after adding "
1111 "the watch (and, if desired, recursively add watches for any subdirectories "
1112 "that it contains)."
1114 "ディレクトリツリー全体を監視していて、 そのツリー内に新しいサブディレクトリが"
1115 "作成されるか、 既存のディレクトリが名前が変更されそのツリー内に移動した場"
1116 "合、 新しいサブディレクトリに対する watch を作成するまでに、 新しいファイル "
1117 "(やサブディレクトリ) がそのサブディレクトリ内にすでに作成されている場合がある"
1118 "点に注意すること。 したがって、watch を追加した直後にサブディレクトリの内容を"
1119 "スキャンしたいと思う場合もあるだろう (必要ならそのサブディレクトリ内のサブ"
1120 "ディレクトリに対する watch も再帰的に追加することもあるだろう)。"
1123 #: build/C/man7/inotify.7:673
1125 "Note that the event queue can overflow. In this case, events are lost. "
1126 "Robust applications should handle the possibility of lost events "
1127 "gracefully. For example, it may be necessary to rebuild part or all of the "
1128 "application cache. (One simple, but possibly expensive, approach is to "
1129 "close the inotify file descriptor, empty the cache, create a new inotify "
1130 "file descriptor, and then re-create watches and cache entries for the "
1131 "objects to be monitored.)"
1135 #: build/C/man7/inotify.7:673
1137 msgid "Dealing with rename() events"
1138 msgstr "rename() イベントの取り扱い"
1141 #: build/C/man7/inotify.7:682
1143 "As noted above, the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair that is "
1144 "generated by B<rename>(2) can be matched up via their shared cookie value. "
1145 "However, the task of matching has some challenges."
1149 #: build/C/man7/inotify.7:693
1151 "These two events are usually consecutive in the event stream available when "
1152 "reading from the inotify file descriptor. However, this is not guaranteed. "
1153 "If multiple processes are triggering events for monitored objects, then (on "
1154 "rare occasions) an arbitrary number of other events may appear between the "
1155 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events."
1159 #: build/C/man7/inotify.7:718
1161 "Matching up the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair generated by "
1162 "B<rename>(2) is thus inherently racy. (Don't forget that if an object is "
1163 "renamed outside of a monitored directory, there may not even be an "
1164 "B<IN_MOVED_TO> event.) Heuristic approaches (e.g., assume the events are "
1165 "always consecutive) can be used to ensure a match in most cases, but will "
1166 "inevitably miss some cases, causing the application to perceive the "
1167 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events as being unrelated. If watch "
1168 "descriptors are destroyed and re-created as a result, then those watch "
1169 "descriptors will be inconsistent with the watch descriptors in any pending "
1170 "events. (Re-creating the inotify file descriptor and rebuilding the cache "
1171 "may be useful to deal with this scenario.)"
1175 #: build/C/man7/inotify.7:728
1177 "Applications should also allow for the possibility that the B<IN_MOVED_FROM> "
1178 "event was the last event that could fit in the buffer returned by the "
1179 "current call to B<read>(2), and the accompanying B<IN_MOVED_TO> event might "
1180 "be fetched only on the next B<read>(2)."
1184 #: build/C/man7/inotify.7:728
1189 #. FIXME kernel commit 611da04f7a31b2208e838be55a42c7a1310ae321
1190 #. implies that unmount events were buggy 2.6.11 to 2.6.36
1192 #: build/C/man7/inotify.7:736
1193 msgid "In kernels before 2.6.16, the B<IN_ONESHOT> I<mask> flag does not work."
1194 msgstr "2.6.16 以前のカーネルでは B<IN_ONESHOT> I<mask> フラグが働かない。"
1197 #: build/C/man7/inotify.7:746
1199 "As originally designed and implemented, the B<IN_ONESHOT> flag did not cause "
1200 "an B<IN_IGNORED> event to be generated when the watch was dropped after one "
1201 "event. However, as an unintended effect of other changes, since Linux "
1202 "2.6.36, an B<IN_IGNORED> event is generated in this case."
1205 #. commit 1c17d18e3775485bf1e0ce79575eb637a94494a2
1207 #: build/C/man7/inotify.7:755
1209 "Before kernel 2.6.25, the kernel code that was intended to coalesce "
1210 "successive identical events (i.e., the two most recent events could "
1211 "potentially be coalesced if the older had not yet been read) instead "
1212 "checked if the most recent event could be coalesced with the I<oldest> "
1215 "カーネル 2.6.25 より前では、 連続する同一のイベントを一つにまとめることを意図"
1216 "したコード (古い方のイベントがまだ読み込まれていない場合に、 最新の 2 つのイ"
1217 "ベントを一つにまとめられる可能性がある) が、 最新のイベントが「最も古い」読み"
1218 "込まれていないイベントとまとめられるか をチェックするようになっていた。"
1221 #: build/C/man7/inotify.7:755 build/C/man2/inotify_add_watch.2:122
1222 #: build/C/man2/inotify_init.2:103 build/C/man2/inotify_rm_watch.2:71
1228 #: build/C/man7/inotify.7:764
1230 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1231 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1234 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1235 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1239 #: build/C/man7/inotify.7:767
1241 "I<Documentation/filesystems/inotify.txt> in the Linux kernel source tree"
1242 msgstr "Linux カーネルソース内の I<Documentation/filesystems/inotify.txt>"
1245 #: build/C/man7/inotify.7:767 build/C/man2/inotify_add_watch.2:126
1246 #: build/C/man2/inotify_init.2:107 build/C/man2/inotify_rm_watch.2:75
1252 #: build/C/man7/inotify.7:774 build/C/man2/inotify_add_watch.2:133
1253 #: build/C/man2/inotify_init.2:114 build/C/man2/inotify_rm_watch.2:82
1256 #| "This page is part of release 3.64 of the Linux I<man-pages> project. A "
1257 #| "description of the project, and information about reporting bugs, can be "
1258 #| "found at \\%http://www.kernel.org/doc/man-pages/."
1260 "This page is part of release 3.65 of the Linux I<man-pages> project. A "
1261 "description of the project, and information about reporting bugs, can be "
1262 "found at \\%http://www.kernel.org/doc/man-pages/."
1264 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.64 の一部\n"
1265 "である。プロジェクトの説明とバグ報告に関する情報は\n"
1266 "http://www.kernel.org/doc/man-pages/ に書かれている。"
1269 #: build/C/man2/inotify_add_watch.2:28
1271 msgid "INOTIFY_ADD_WATCH"
1272 msgstr "INOTIFY_ADD_WATCH"
1275 #: build/C/man2/inotify_add_watch.2:28 build/C/man2/inotify_init.2:29
1281 #: build/C/man2/inotify_add_watch.2:31
1282 msgid "inotify_add_watch - add a watch to an initialized inotify instance"
1284 "inotify_add_watch - 初期化済み inotify インスタンスに監視対象を追加する"
1287 #: build/C/man2/inotify_add_watch.2:31 build/C/man2/inotify_init.2:32
1288 #: build/C/man2/inotify_rm_watch.2:30
1294 #: build/C/man2/inotify_add_watch.2:33 build/C/man2/inotify_rm_watch.2:32
1295 msgid "B<#include E<lt>sys/inotify.hE<gt>>"
1296 msgstr "B<#include E<lt>sys/inotify.hE<gt>>"
1299 #: build/C/man2/inotify_add_watch.2:35
1301 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1304 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1308 #: build/C/man2/inotify_add_watch.2:54
1310 "B<inotify_add_watch>() adds a new watch, or modifies an existing watch, for "
1311 "the file whose location is specified in I<pathname>; the caller must have "
1312 "read permission for this file. The I<fd> argument is a file descriptor "
1313 "referring to the inotify instance whose watch list is to be modified. The "
1314 "events to be monitored for I<pathname> are specified in the I<mask> bit-mask "
1315 "argument. See B<inotify>(7) for a description of the bits that can be set "
1318 "B<inotify_add_watch>() は、 I<pathname> で指定された位置にあるファイルを監視"
1319 "する監視アイテム (watch) の新規追加、 または既存の監視アイテムの変更を行う。 "
1320 "呼び出し元は、監視対象のファイルに対する読み出し許可を 持っていなければならな"
1321 "い。 I<fd> 引き数は、変更を行う監視対象リスト (watch list) を持つ inotify イ"
1322 "ンスタンスを参照するファイルディスクリプタである。 I<pathname> のどのイベント"
1323 "を監視するかは、引き数のビットマスク I<mask> で指定する。 I<mask> に設定でき"
1324 "るビットの説明については B<inotify>(7) を参照のこと。"
1327 #: build/C/man2/inotify_add_watch.2:68
1329 "A successful call to B<inotify_add_watch>() returns the unique watch "
1330 "descriptor associated with I<pathname> for this inotify instance. If "
1331 "I<pathname> was not previously being watched by this inotify instance, then "
1332 "the watch descriptor is newly allocated. If I<pathname> was already being "
1333 "watched, then the descriptor for the existing watch is returned."
1335 "B<inotify_add_watch>() の呼び出しが成功すると、変更対象の inotify インスタン"
1336 "スで I<pathname> に対応付けられる一意な監視対象ディスクリプタ (watch "
1337 "descriptor) を返す。 I<pathname> がその inotify インスタンスに追加されていな"
1338 "ければ、 監視対象ディスクリプタが新規に割り当てられる。 I<pathname> がすでに"
1339 "監視対象になっていれば、既存の監視アイテムに対する ディスクリプタが返される。"
1342 #: build/C/man2/inotify_add_watch.2:79
1344 "The watch descriptor is returned by later B<read>(2)s from the inotify file "
1345 "descriptor. These reads fetch I<inotify_event> structures (see B<inotify>"
1346 "(7)) indicating filesystem events; the watch descriptor inside this "
1347 "structure identifies the object for which the event occurred."
1349 "これ以降に inotify ファイルディスクリプタから B<read>(2) を行うと、監視対象"
1350 "ディスクリプタが返される。 これらの B<read>() を行うと、ファイルシステムイベ"
1351 "ントを示す I<inotify_event> 構造体が読み出される (B<inotify>(7) 参照)。この"
1352 "構造体内の監視対象ディスクリプタにより、 どのオブジェクトでそのイベントが発生"
1356 #: build/C/man2/inotify_add_watch.2:79 build/C/man2/inotify_init.2:74
1357 #: build/C/man2/inotify_rm_watch.2:48
1359 msgid "RETURN VALUE"
1363 #: build/C/man2/inotify_add_watch.2:86
1365 "On success, B<inotify_add_watch>() returns a nonnegative watch descriptor. "
1366 "On error, -1 is returned and I<errno> is set appropriately."
1368 "成功すると、 B<inotify_add_watch>() は非負の監視対象ディスクリプタを返す。 "
1369 "エラーの場合、-1 を返し、 I<errno> を適切に設定する。"
1372 #: build/C/man2/inotify_add_watch.2:86 build/C/man2/inotify_init.2:79
1373 #: build/C/man2/inotify_rm_watch.2:55
1379 #: build/C/man2/inotify_add_watch.2:87
1385 #: build/C/man2/inotify_add_watch.2:90
1386 msgid "Read access to the given file is not permitted."
1387 msgstr "指定されたファイルに対する読み出しアクセスが許可されていない。"
1390 #: build/C/man2/inotify_add_watch.2:90 build/C/man2/inotify_rm_watch.2:56
1396 #: build/C/man2/inotify_add_watch.2:93
1397 msgid "The given file descriptor is not valid."
1398 msgstr "指定されたファイルディスクリプタが有効ではない。"
1401 #: build/C/man2/inotify_add_watch.2:93
1407 #: build/C/man2/inotify_add_watch.2:97
1408 msgid "I<pathname> points outside of the process's accessible address space."
1410 "I<pathname> が指すアドレスがプロセスがアクセスできるアドレス空間外である。"
1413 #: build/C/man2/inotify_add_watch.2:97 build/C/man2/inotify_init.2:80
1414 #: build/C/man2/inotify_rm_watch.2:60
1420 #: build/C/man2/inotify_add_watch.2:102
1422 "The given event mask contains no valid events; or I<fd> is not an inotify "
1425 "指定されたイベントマスクに有効なイベントが含まれていない。 もしくは I<fd> が "
1426 "inotify ファイルディスクリプタではない。"
1429 #: build/C/man2/inotify_add_watch.2:102
1431 msgid "B<ENAMETOOLONG>"
1432 msgstr "B<ENAMETOOLONG>"
1435 #: build/C/man2/inotify_add_watch.2:106
1436 msgid "I<pathname> is too long."
1437 msgstr "I<pathname> が長過ぎる。"
1440 #: build/C/man2/inotify_add_watch.2:106
1446 #: build/C/man2/inotify_add_watch.2:111
1448 "A directory component in I<pathname> does not exist or is a dangling "
1451 "I<pathname> のディレクトリ部分の構成要素が、存在しないか、\n"
1452 "リンク切れのシンボリックリンクである。"
1455 #: build/C/man2/inotify_add_watch.2:111 build/C/man2/inotify_init.2:91
1461 #: build/C/man2/inotify_add_watch.2:114
1462 msgid "Insufficient kernel memory was available."
1463 msgstr "カーネルメモリが十分になかった。"
1466 #: build/C/man2/inotify_add_watch.2:114
1472 #: build/C/man2/inotify_add_watch.2:118
1474 "The user limit on the total number of inotify watches was reached or the "
1475 "kernel failed to allocate a needed resource."
1477 "inotify 監視対象の総数がユーザが追加できる上限に達していた。 もしくは、必要な"
1478 "資源の割り当てにカーネルが失敗した。"
1481 #: build/C/man2/inotify_add_watch.2:120 build/C/man2/inotify_rm_watch.2:69
1482 msgid "Inotify was merged into the 2.6.13 Linux kernel."
1483 msgstr "inotify は Linux カーネル 2.6.13 に組み込まれた。"
1486 #: build/C/man2/inotify_add_watch.2:122 build/C/man2/inotify_rm_watch.2:71
1487 msgid "This system call is Linux-specific."
1488 msgstr "このシステムコールは Linux 独自である。"
1491 #: build/C/man2/inotify_add_watch.2:126
1492 msgid "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1493 msgstr "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1496 #: build/C/man2/inotify_init.2:29
1498 msgid "INOTIFY_INIT"
1499 msgstr "INOTIFY_INIT"
1502 #: build/C/man2/inotify_init.2:32
1503 msgid "inotify_init, inotify_init1 - initialize an inotify instance"
1504 msgstr "inotify_init, inotify_init1 - inotify インスタンスを初期化する"
1507 #: build/C/man2/inotify_init.2:35
1509 msgid "B<#include E<lt>sys/inotify.hE<gt>>\n"
1510 msgstr "B<#include E<lt>sys/inotify.hE<gt>>\n"
1513 #: build/C/man2/inotify_init.2:38
1516 "B<int inotify_init(void);>\n"
1517 "B<int inotify_init1(int >I<flags>B<);>\n"
1519 "B<int inotify_init(void);>\n"
1520 "B<int inotify_init1(int >I<flags>B<);>\n"
1523 #: build/C/man2/inotify_init.2:42
1524 msgid "For an overview of the inotify API, see B<inotify>(7)."
1525 msgstr "inotify API の概要については B<inotify>(7) を参照。"
1528 #: build/C/man2/inotify_init.2:46
1530 "B<inotify_init>() initializes a new inotify instance and returns a file "
1531 "descriptor associated with a new inotify event queue."
1533 "B<inotify_init>() は、新規の inotify インスタンスを初期化し、作成された "
1534 "inotify イベントキュー に対応するファイルディスクリプタを返す。"
1537 #: build/C/man2/inotify_init.2:56
1539 "If I<flags> is 0, then B<inotify_init1>() is the same as B<inotify_init>"
1540 "(). The following values can be bitwise ORed in I<flags> to obtain "
1541 "different behavior:"
1543 "B<inotify_init1>() は、 I<flags> が 0 の場合、 B<inotify_init>() と同じであ"
1544 "る。 I<flags> に以下の値をビット毎の論理和 (OR) で指定することで、 異なる動作"
1548 #: build/C/man2/inotify_init.2:56
1550 msgid "B<IN_NONBLOCK>"
1551 msgstr "B<IN_NONBLOCK>"
1554 #: build/C/man2/inotify_init.2:64
1556 "Set the B<O_NONBLOCK> file status flag on the new open file description. "
1557 "Using this flag saves extra calls to B<fcntl>(2) to achieve the same result."
1559 "新しく生成されるオープンファイル記述 (open file description) の BR "
1560 "O_NONBLOCK ファイルステータスフラグをセットする。 このフラグを使うことで、 "
1561 "B<O_NONBLOCK> をセットするために B<fcntl>(2) を追加で呼び出す必要がなくな"
1565 #: build/C/man2/inotify_init.2:64
1567 msgid "B<IN_CLOEXEC>"
1568 msgstr "B<IN_CLOEXEC>"
1571 #: build/C/man2/inotify_init.2:74
1573 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See "
1574 "the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this "
1577 "新しいファイル・ディスクリプターに対して close-on-exec (B<FD_CLOEXEC>) フラ"
1578 "グをセットする。 このフラグが役に立つ理由については、 B<open>(2) の "
1579 "B<O_CLOEXEC> フラグの説明を参照のこと。"
1582 #: build/C/man2/inotify_init.2:79
1584 "On success, these system calls return a new file descriptor. On error, -1 "
1585 "is returned, and I<errno> is set to indicate the error."
1587 "成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。 エ"
1588 "ラーの場合、-1 を返し、 I<errno> をエラーを示す値に設定する。"
1591 #: build/C/man2/inotify_init.2:85
1592 msgid "(B<inotify_init1>()) An invalid value was specified in I<flags>."
1593 msgstr "(B<inotify_init1>()) 無効な値が I<flags> に指定された。"
1596 #: build/C/man2/inotify_init.2:85
1602 #: build/C/man2/inotify_init.2:88
1604 "The user limit on the total number of inotify instances has been reached."
1605 msgstr "inotify インスタンスの総数がユーザ単位の上限に達していた。"
1608 #: build/C/man2/inotify_init.2:88
1614 #: build/C/man2/inotify_init.2:91
1616 "The system limit on the total number of file descriptors has been reached."
1617 msgstr "inotify インスタンスの総数がシステムの上限に達していた。"
1620 #: build/C/man2/inotify_init.2:94
1621 msgid "Insufficient kernel memory is available."
1622 msgstr "カーネルメモリが十分になかった。"
1625 #: build/C/man2/inotify_init.2:101
1627 "B<inotify_init>() first appeared in Linux 2.6.13; library support was added "
1628 "to glibc in version 2.4. B<inotify_init1>() was added in Linux 2.6.27; "
1629 "library support was added to glibc in version 2.9."
1631 "B<inotify_init>() は Linux 2.6.13 で初めて登場し、\n"
1632 "ライブラリによるサポートは glibc バージョン 2.4 で追加された。\n"
1633 "B<inotify_init1>() は Linux 2.6.27 で追加され、\n"
1634 "ライブラリによるサポートは glibc バージョン 2.9 で追加された。"
1637 #: build/C/man2/inotify_init.2:103
1638 msgid "These system calls are Linux-specific."
1639 msgstr "これらのシステムコールは Linux 独自である。"
1642 #: build/C/man2/inotify_init.2:107
1643 msgid "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1644 msgstr "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1647 #: build/C/man2/inotify_rm_watch.2:27
1649 msgid "INOTIFY_RM_WATCH"
1650 msgstr "INOTIFY_RM_WATCH"
1653 #: build/C/man2/inotify_rm_watch.2:27
1659 #: build/C/man2/inotify_rm_watch.2:30
1660 msgid "inotify_rm_watch - remove an existing watch from an inotify instance"
1662 "inotify_rm_watch - inotify インスタンスから既存の監視アイテムを削除する"
1664 #. Before glibc 2.10, the second argument was types as uint32_t.
1665 #. http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
1667 #: build/C/man2/inotify_rm_watch.2:36
1668 msgid "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1669 msgstr "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1672 #: build/C/man2/inotify_rm_watch.2:42
1674 "B<inotify_rm_watch>() removes the watch associated with the watch "
1675 "descriptor I<wd> from the inotify instance associated with the file "
1678 "B<inotify_rm_watch>() は、監視対象ディスクリプタ (watch descriptor) I<wd> "
1679 "に対応する監視アイテムを、 ファイルディスクリプタ I<fd> に対応する inotify イ"
1683 #: build/C/man2/inotify_rm_watch.2:48
1685 "Removing a watch causes an B<IN_IGNORED> event to be generated for this "
1686 "watch descriptor. (See B<inotify>(7).)"
1688 "監視対象を削除すると、 この監視対象ディスクリプタに対して B<IN_IGNORED> イベ"
1689 "ントが生成される (B<inotify>(7) 参照)。"
1692 #: build/C/man2/inotify_rm_watch.2:55
1694 "On success, B<inotify_rm_watch>() returns zero. On error, -1 is returned "
1695 "and I<errno> is set to indicate the cause of the error."
1697 "成功すると、B<inotify_rm_watch>() は 0 を返す。 エラーの場合、-1 を返し、 "
1698 "I<errno> をエラーの原因を示す値に設定する。"
1701 #: build/C/man2/inotify_rm_watch.2:60
1702 msgid "I<fd> is not a valid file descriptor."
1703 msgstr "I<fd> が有効なファイルディスクリプタではない。"
1706 #: build/C/man2/inotify_rm_watch.2:67
1708 "The watch descriptor I<wd> is not valid; or I<fd> is not an inotify file "
1711 "監視対象ディスクリプタ I<wd> が有効でない。もしくは、 I<fd> が inotify ファイ"
1715 #: build/C/man2/inotify_rm_watch.2:75
1716 msgid "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1717 msgstr "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1719 #~ msgid "2013-09-16"
1720 #~ msgstr "2013-09-16"
1723 #~ "The following system calls are used with this API: B<inotify_init>(2) "
1724 #~ "(or B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>"
1725 #~ "(2), B<read>(2), and B<close>(2)."
1727 #~ "以下のシステムコールがこの API と共に使用される: B<inotify_init>(2) (や "
1728 #~ "B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>(2), "
1729 #~ "B<read>(2), B<close>(2)."
1731 #~ msgid "File/directory created in watched directory (*)."
1732 #~ msgstr "監視対象ディレクトリ内でファイルやディレクトリが作成された。(*)"
1734 #~ msgid "Watched file/directory was itself deleted."
1735 #~ msgstr "監視対象のディレクトリまたはファイル自身が削除された。"
1737 #~ msgid "File was modified (*)."
1738 #~ msgstr "ファイルが修正された。(*)"
1741 #~ "Two additional convenience macros are B<IN_MOVE>, which equates to "
1742 #~ "IN_MOVED_FROM|IN_MOVED_TO, and B<IN_CLOSE>, which equates to "
1743 #~ "IN_CLOSE_WRITE|IN_CLOSE_NOWRITE."
1745 #~ "さらに 2 つの便利なマクロがある。\n"
1746 #~ "B<IN_MOVE> は IN_MOVED_FROM|IN_MOVED_TO と同じで、\n"
1747 #~ "B<IN_CLOSE> は IN_CLOSE_WRITE|IN_CLOSE_NOWRITE と同じである。"
1749 #~ msgid "Filesystem containing watched object was unmounted."
1750 #~ msgstr "監視対象オブジェクトを含むファイルシステムがアンマウントされた。"
1753 #~ "Note that the event queue can overflow. In this case, events are lost. "
1754 #~ "Robust applications should handle the possibility of lost events "
1757 #~ "イベントキューは溢れる場合があることに注意すること。この場合にはイベント"
1759 #~ "失われてしまう。堅牢性が必要なアプリケーションでは、イベントが失われる可能"
1764 #~ "On success, B<inotify_rm_watch>() returns zero, or -1 if an error "
1765 #~ "occurred (in which case, I<errno> is set appropriately)."
1767 #~ "成功すると、 B<inotify_rm_watch>() は 0 を返す。 エラーの場合、-1 を返"
1768 #~ "し、 I<errno> を適切に設定する。"
1770 #~ msgid "File moved out of watched directory (*)."
1771 #~ msgstr "ファイルが監視対象ディレクトリ外へ移動された。(*)"
1773 #~ msgid "File moved into watched directory (*)."
1774 #~ msgstr "ファイルが監視対象ディレクトリ内へ移動された。(*)"
1777 #~ "The inotify API provides no information about the user or process that "
1778 #~ "triggered the inotify event."
1780 #~ "inotify API では inotify イベントのきっかけとなったユーザやプロセスに関す"