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-17 13:13+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."
96 msgstr "B<inotify_init>(2) は inotify インスタンスを作成し、inotify インスタンスを参照する ファイルディスクリプタを返す。 もっと新しい B<inotify_init1>(2) も B<inotify_init>(2) と同様だが、いくつかの追加の機能を利用するための I<flags> 引き数を持っている。"
99 #: build/C/man7/inotify.7:63
101 "B<inotify_add_watch>(2) manipulates the \"watch list\" associated with an "
102 "inotify instance. Each item (\"watch\") in the watch list specifies the "
103 "pathname of a file or directory, along with some set of events that the "
104 "kernel should monitor for the file referred to by that pathname. "
105 "B<inotify_add_watch>(2) either creates a new watch item, or modifies an "
106 "existing watch. Each watch has a unique \"watch descriptor\", an integer "
107 "returned by B<inotify_add_watch>(2) when the watch is created."
109 "B<inotify_add_watch>(2) は inotify インスタンスに関連づけられた「監視対象 "
110 "(watch) リスト」を操作する。 監視対象リストの各アイテム (\"watch\") は、 ファ"
111 "イルまたはディレクトリのパス名と、 そのパス名で参照されるファイルに対して "
112 "カーネルが監視する複数のイベントの集合を指定する。 B<inotify_add_watch>(2) "
113 "は新しい監視アイテムの作成や既存の監視対象の変更ができる。 各監視対象は一意の"
114 "「監視対象ディスクリプタ」を持つ。 これは監視対象を作成したときに "
115 "B<inotify_add_watch>(2) から返される整数である。"
118 #: build/C/man7/inotify.7:69
120 "When events occur for monitored files and directories, those events are made "
121 "available to the application as structured data that can be read from the "
122 "inotify file descriptor using B<read>(2) (see below)."
126 #: build/C/man7/inotify.7:72
127 msgid "B<inotify_rm_watch>(2) removes an item from an inotify watch list."
129 "B<inotify_rm_watch>(2) は inotify の監視対象リストからアイテムを削除する。"
132 #: build/C/man7/inotify.7:79
134 "When all file descriptors referring to an inotify instance have been closed "
135 "(using B<close>(2)), the underlying object and its resources are freed for "
136 "reuse by the kernel; all associated watches are automatically freed."
137 msgstr "inotify インスタンスを指している 全てのファイルディスクリプタが (B<close>(2) を使って) クローズされた場合、 その下層にあるオブジェクトとそのリソースは、 カーネルで再利用するために解放される。 関連が切られた監視対象は自動的に解放される。"
140 #: build/C/man7/inotify.7:88
142 "With careful programming, an application can use inotify to efficiently "
143 "monitor and cache the state of a set of filesystem objects. However, robust "
144 "applications should allow for the fact that bugs in the monitoring logic or "
145 "races of the kind described below may leave the cache inconsistent with the "
146 "filesystem state. It is probably wise to to do some consistency checking, "
147 "and rebuild the cache when inconsistencies are detected."
151 #: build/C/man7/inotify.7:88
153 msgid "Reading events from an inotify file descriptor"
154 msgstr "inotify ファイルディスクリプタからのイベントの読み出し"
157 #: build/C/man7/inotify.7:101
159 "To determine what events have occurred, an application B<read>(2)s from the "
160 "inotify file descriptor. If no events have so far occurred, then, assuming "
161 "a blocking file descriptor, B<read>(2) will block until at least one event "
162 "occurs (unless interrupted by a signal, in which case the call fails with "
163 "the error B<EINTR>; see B<signal>(7))."
165 "どのようなイベントが起こっていたかを知るには、 アプリケーションで inotify "
166 "ファイルディスクリプタを B<read>(2) すればよい。 これまでに何もイベントが起"
167 "こっていない場合、 停止 (blocking) モードのファイルディスクリプタであれば、 "
168 "少なくとも 1 つのイベントが起こるまで B<read>(2) は停止する (シグナルにより"
169 "割り込まれなかった場合。 シグナルによる割り込みがあった場合、呼び出しはエ"
170 "ラー B<EINTR> で失敗する。 B<signal>(7) 参照)。"
173 #: build/C/man7/inotify.7:105
175 "Each successful B<read>(2) returns a buffer containing one or more of the "
176 "following structures:"
178 "B<read>(2) が成功すると、以下の構造体を 1 つ以上含むバッファが返される:"
180 #. FIXME . The type of the 'wd' field should probably be "int32_t".
181 #. I submitted a patch to fix this. See the LKML thread
182 #. "[patch] Fix type errors in inotify interfaces", 18 Nov 2008
183 #. Glibc bug filed: http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
185 #: build/C/man7/inotify.7:120
188 "struct inotify_event {\n"
189 " int wd; /* Watch descriptor */\n"
190 " uint32_t mask; /* Mask of events */\n"
191 " uint32_t cookie; /* Unique cookie associating related\n"
192 " events (for rename(2)) */\n"
193 " uint32_t len; /* Size of I<name> field */\n"
194 " char name[]; /* Optional null-terminated name */\n"
197 "struct inotify_event {\n"
198 " int wd; /* 監視対象ディスクリプタ */\n"
199 " uint32_t mask; /* イベントのマスク */\n"
200 " uint32_t cookie; /* 関連するイベント群を関連づける\n"
201 " 一意なクッキー (rename(2) 用) */\n"
202 " uint32_t len; /* \\(aqname\\(aq フィールドのサイズ */\n"
203 " char name[]; /* NULL で終端された任意の名前 */\n"
207 #: build/C/man7/inotify.7:127
209 "I<wd> identifies the watch for which this event occurs. It is one of the "
210 "watch descriptors returned by a previous call to B<inotify_add_watch>(2)."
212 "I<wd> はイベント発生の監視対象を指定する。 これは、前もって行われた "
213 "B<inotify_add_watch>(2) 呼び出しで返された監視対象ディスクリプタのうちの 1 "
217 #: build/C/man7/inotify.7:130
219 "I<mask> contains bits that describe the event that occurred (see below)."
221 "I<mask> には発生したイベント (下記参照) を記述するためのビットが含まれる。"
224 #: build/C/man7/inotify.7:142
226 "I<cookie> is a unique integer that connects related events. Currently this "
227 "is used only for rename events, and allows the resulting pair of "
228 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events to be connected by the "
229 "application. For all other event types, I<cookie> is set to 0."
231 "I<cookie> は関連するイベントを関連づけるための一意な整数である。\n"
232 "現在のところ、この値は rename イベントに対してのみ使われており、\n"
233 "結果のペアである B<IN_MOVED_FROM> と B<IN_MOVED_TO> イベントを\n"
234 "アプリケーションで関連づけることができる。\n"
235 "他のイベント種別の場合には、 I<cookie> は 0 に設定する。"
238 #: build/C/man7/inotify.7:151
240 "The I<name> field is present only when an event is returned for a file "
241 "inside a watched directory; it identifies the file pathname relative to the "
242 "watched directory. This pathname is null-terminated, and may include "
243 "further null bytes (\\(aq\\e0\\(aq) to align subsequent reads to a suitable "
246 "I<name> フィールドは監視しているディレクトリ内のファイルに対して イベントが返"
247 "される場合のためにだけ存在する。 監視するディレクトリからのファイルの相対パス"
248 "名を表す。 このパス名は NULL で終端され、 その後の読み込みで適切なアドレス境"
249 "界に調整するために、 さらに NULL バイト (\\(aq\\e0\\(aq) が含まれる場合もあ"
253 #: build/C/man7/inotify.7:161
255 "The I<len> field counts all of the bytes in I<name>, including the null "
256 "bytes; the length of each I<inotify_event> structure is thus I<sizeof(struct "
257 "inotify_event)+len>."
259 "I<len> フィールドは NULL バイトを含む I<name> の全てのバイト数を表す。\n"
260 "よって、 I<inotify_event> 構造体のサイズは \n"
261 "I<sizeof(struct inotify_event)+len> である。"
264 #: build/C/man7/inotify.7:172
266 "The behavior when the buffer given to B<read>(2) is too small to return "
267 "information about the next event depends on the kernel version: in kernels "
268 "before 2.6.21, B<read>(2) returns 0; since kernel 2.6.21, B<read>(2) fails "
269 "with the error B<EINVAL>. Specifying a buffer of size"
271 "B<read>(2) に渡されたバッファが小さすぎて次のイベントに関する情報を返せ\n"
272 "ない場合の動作はカーネルのバージョンにより異なる。 2.6.21 より前のカー\n"
273 "ネルでは、 B<read>(2) は 0 を返す。 2.6.21 以降のカーネルでは、\n"
274 "B<read>(2) はエラー B<EINVAL> で失敗する。\n"
278 #: build/C/man7/inotify.7:174
280 msgid " sizeof(struct inotify_event) + NAME_MAX + 1\n"
281 msgstr " sizeof(struct inotify_event) + NAME_MAX + 1\n"
284 #: build/C/man7/inotify.7:176
285 msgid "will be sufficient to read at least one event."
286 msgstr "を指定すれば、少なくとも 1 イベントで読み出しを行うには十分である。"
289 #: build/C/man7/inotify.7:176
291 msgid "inotify events"
292 msgstr "inotify イベント"
295 #: build/C/man7/inotify.7:196
297 "The B<inotify_add_watch>(2) I<mask> argument and the I<mask> field of the "
298 "I<inotify_event> structure returned when B<read>(2)ing an inotify file "
299 "descriptor are both bit masks identifying inotify events. The following "
300 "bits can be specified in I<mask> when calling B<inotify_add_watch>(2) and "
301 "may be returned in the I<mask> field returned by B<read>(2):"
303 "B<inotify_add_watch>(2) の I<mask> 引き数と、inotify ファイル構造体を "
304 "B<read>(2) したときに返される I<inotify_event> 構造体の I<mask> フィールド"
305 "は、ともに inotify イベントを識別するための ビットマスクである。 以下のビット"
306 "が B<inotify_add_watch>(2) を呼ぶときの I<mask> に指定可能であり、 B<read>"
307 "(2) で返される I<mask> フィールドで返される:"
310 #: build/C/man7/inotify.7:197
312 msgid "B<IN_ACCESS> (*)"
313 msgstr "B<IN_ACCESS> (*)"
316 #: build/C/man7/inotify.7:202
317 msgid "File was accessed (e.g., B<read>(2), B<execve>(2))."
318 msgstr "(B<read>(2), B<execve>(2) などで) ファイルがアクセスされた。"
321 #: build/C/man7/inotify.7:202
323 msgid "B<IN_ATTRIB> (*)"
324 msgstr "B<IN_ATTRIB> (*)"
327 #: build/C/man7/inotify.7:217
329 "Metadata changed\\(emfor example, permissions (e.g., B<chmod>(2)), "
330 "timestamps (e.g., B<utimensat>(2)), extended attributes (B<setxattr>(2)), "
331 "link count (since Linux 2.6.25; e.g., for the target of B<link>(2) and for "
332 "B<unlink>(2)), and user/group ID (e.g., B<chown>(2))."
333 msgstr "メタデータが変更された。 メタデータとは、例えば、アクセス許可 (B<chmod>(2))、タイムスタンプ (B<utimensat>(2) など)、拡張属性 (B<setxattr>(2))、 リンクカウント (Linux 2.6.25 以降; B<link>(2) のリンク先や B<unlink>(2) など)、ユーザー/グループ ID (B<chown>(2) など) などである。"
336 #: build/C/man7/inotify.7:217
338 msgid "B<IN_CLOSE_WRITE> (*)"
339 msgstr "B<IN_CLOSE_WRITE> (*)"
342 #: build/C/man7/inotify.7:220
343 msgid "File opened for writing was closed."
344 msgstr "書き込みのためにオープンされたファイルがクローズされた。"
347 #: build/C/man7/inotify.7:220
349 msgid "B<IN_CLOSE_NOWRITE> (*)"
350 msgstr "B<IN_CLOSE_NOWRITE> (*)"
353 #: build/C/man7/inotify.7:223
354 msgid "File not opened for writing was closed."
355 msgstr "書き込み以外のためにオープンされたファイルがクローズされた。"
358 #: build/C/man7/inotify.7:223
360 msgid "B<IN_CREATE> (*)"
361 msgstr "B<IN_CREATE> (*)"
364 #: build/C/man7/inotify.7:233
366 "File/directory created in watched directory (e.g., B<open>(2) B<O_CREAT>, "
367 "B<mkdir>(2), B<link>(2), B<symlink>(2), B<bind>(2) on a UNIX domain socket)."
368 msgstr "監視対象ディレクトリ内でファイルやディレクトリが作成された (B<open>(2) B<O_CREAT>, B<mkdir>(2), B<link>(2), B<symlink>(2), UNIX ドメインソケットに対する B<bind>(2) など)。"
371 #: build/C/man7/inotify.7:233
373 msgid "B<IN_DELETE> (*)"
374 msgstr "B<IN_DELETE> (*)"
377 #: build/C/man7/inotify.7:236
378 msgid "File/directory deleted from watched directory."
379 msgstr "監視対象ディレクトリ内でファイルやディレクトリが削除された。"
382 #: build/C/man7/inotify.7:236
384 msgid "B<IN_DELETE_SELF>"
385 msgstr "B<IN_DELETE_SELF>"
388 #: build/C/man7/inotify.7:247
390 "Watched file/directory was itself deleted. (This event also occurs if an "
391 "object is moved to another filesystem, since B<mv>(1) in effect copies the "
392 "file to the other filesystem and then deletes it from the original "
393 "filesystem.) In addition, an B<IN_IGNORED> event will subsequently be "
394 "generated for the watch descriptor."
398 #: build/C/man7/inotify.7:247
400 msgid "B<IN_MODIFY> (*)"
401 msgstr "B<IN_MODIFY> (*)"
404 #: build/C/man7/inotify.7:252
405 msgid "File was modified (e.g., B<write>(2), B<truncate>(2))."
406 msgstr "ファイルが変更された (B<write>(2), B<truncate>(2) など)。"
409 #: build/C/man7/inotify.7:252
411 msgid "B<IN_MOVE_SELF>"
412 msgstr "B<IN_MOVE_SELF>"
415 #: build/C/man7/inotify.7:255
416 msgid "Watched file/directory was itself moved."
417 msgstr "監視対象のディレクトリまたはファイル自身が移動された。"
420 #: build/C/man7/inotify.7:255
422 msgid "B<IN_MOVED_FROM> (*)"
423 msgstr "B<IN_MOVED_FROM> (*)"
426 #: build/C/man7/inotify.7:259
428 "Generated for the directory containing the old filename when a file is "
430 msgstr "ファイル名の変更を行った際に変更前のファイル名が含まれるディレクトリに対して生成される。"
433 #: build/C/man7/inotify.7:259
435 msgid "B<IN_MOVED_TO> (*)"
436 msgstr "B<IN_MOVED_TO> (*)"
439 #: build/C/man7/inotify.7:263
441 "Generated for the directory containing the new filename when a file is "
443 msgstr "ファイル名の変更を行った際に新しいファイル名が含まれるディレクトリに対して生成される。"
446 #: build/C/man7/inotify.7:263
448 msgid "B<IN_OPEN> (*)"
449 msgstr "B<IN_OPEN> (*)"
452 #: build/C/man7/inotify.7:266
453 msgid "File was opened."
454 msgstr "ファイルがオープンされた。"
457 #: build/C/man7/inotify.7:275
459 "When monitoring a directory, the events marked with an asterisk (*) above "
460 "can occur for files in the directory, in which case the I<name> field in the "
461 "returned I<inotify_event> structure identifies the name of the file within "
464 "ディレクトリを監視する場合、 上記でアスタリスク (*) を付けたイベントは、 その"
465 "ディレクトリ内のファイルに対して発生する。 このとき I<inotify_event> 構造体で"
466 "返される I<name> フィールドは、ディレクトリ内のファイル名を表す。"
469 #: build/C/man7/inotify.7:283
471 "The B<IN_ALL_EVENTS> macro is defined as a bit mask of all of the above "
472 "events. This macro can be used as the I<mask> argument when calling "
473 "B<inotify_add_watch>(2)."
475 "B<IN_ALL_EVENTS> マクロは上記のイベント全てのマスクとして定義される。 このマ"
476 "クロは B<inotify_add_watch>(2) を呼び出すときの I<mask> 引き数として使える。"
479 #: build/C/man7/inotify.7:285
480 msgid "Two additional convenience macros are defined:"
481 msgstr "以下の 2 つの便利なマクロが定義されている。"
484 #: build/C/man7/inotify.7:286
490 #: build/C/man7/inotify.7:290
491 msgid "Equates to B<IN_MOVED_FROM | IN_MOVED_TO>."
492 msgstr "B<IN_MOVED_FROM | IN_MOVED_TO> と等価。"
495 #: build/C/man7/inotify.7:290
501 #: build/C/man7/inotify.7:294
502 msgid "Equates to B<IN_CLOSE_WRITE | IN_CLOSE_NOWRITE>."
503 msgstr "B<IN_CLOSE_WRITE | IN_CLOSE_NOWRITE> と等価。"
506 #: build/C/man7/inotify.7:300
508 "The following further bits can be specified in I<mask> when calling "
509 "B<inotify_add_watch>(2):"
511 "その他にも以下のビットを B<inotify_add_watch>(2) を呼ぶときの I<mask> に指定"
515 #: build/C/man7/inotify.7:301
517 msgid "B<IN_DONT_FOLLOW> (since Linux 2.6.15)"
518 msgstr "B<IN_DONT_FOLLOW> (Linux 2.6.15 以降)"
521 #: build/C/man7/inotify.7:306
522 msgid "Don't dereference I<pathname> if it is a symbolic link."
524 "I<pathname> がシンボリックリンクである場合に辿らない。 (Linux 2.6.15 以降)"
527 #: build/C/man7/inotify.7:306
529 msgid "B<IN_EXCL_UNLINK> (since Linux 2.6.36)"
530 msgstr "B<IN_EXCL_UNLINK> (Linux 2.6.36 以降)"
532 #. commit 8c1934c8d70b22ca8333b216aec6c7d09fdbd6a6
534 #: build/C/man7/inotify.7:322
536 "By default, when watching events on the children of a directory, events are "
537 "generated for children even after they have been unlinked from the "
538 "directory. This can result in large numbers of uninteresting events for "
539 "some applications (e.g., if watching I</tmp>, in which many applications "
540 "create temporary files whose names are immediately unlinked). Specifying "
541 "B<IN_EXCL_UNLINK> changes the default behavior, so that events are not "
542 "generated for children after they have been unlinked from the watched "
545 "デフォルトでは、あるディレクトリの子ファイルに関するイベントを監視 (watch) し"
546 "た際、ディレクトリからその子ファイルが削除 (unlink) された場合であってもその"
547 "子ファイルに対してイベントが生成される。このことは、アプリケーションによって"
548 "はあまり興味のないイベントが大量に発生することにつながる (例えば、I</tmp> を"
549 "監視している場合、たくさんのアプリケーションが、すぐにその名前が削除される一"
550 "時ファイルをそのディレクトリに作成する)。 B<IN_EXCL_UNLINK> を指定するとこの"
551 "デフォルトの動作を変更でき、監視対象のディレクトリから子ファイルが削除された"
552 "後に子ファイルに関するイベントが生成されなくなる。"
555 #: build/C/man7/inotify.7:322
557 msgid "B<IN_MASK_ADD>"
558 msgstr "B<IN_MASK_ADD>"
561 #: build/C/man7/inotify.7:326
563 "Add (OR) events to watch mask for this pathname if it already exists "
564 "(instead of replacing mask)."
566 "I<pathname> に対する監視マスクが既に存在する場合、 (マスクの置き換えではな"
567 "く) イベントを追加 (OR) する。"
570 #: build/C/man7/inotify.7:326
572 msgid "B<IN_ONESHOT>"
573 msgstr "B<IN_ONESHOT>"
576 #: build/C/man7/inotify.7:332
577 msgid "Monitor I<pathname> for one event, then remove from watch list."
579 "1 つのイベントについて I<pathname> を監視し、 イベントが発生したら監視対象リ"
583 #: build/C/man7/inotify.7:332
585 msgid "B<IN_ONLYDIR> (since Linux 2.6.15)"
586 msgstr "B<IN_ONLYDIR> (Linux 2.6.15 以降)"
589 #: build/C/man7/inotify.7:337
590 msgid "Only watch I<pathname> if it is a directory."
591 msgstr "I<pathname> がディレクトリの場合にのみ監視する。"
594 #: build/C/man7/inotify.7:343
596 "The following bits may be set in the I<mask> field returned by B<read>(2):"
597 msgstr "以下のビットが B<read>(2) で返される I<mask> フィールドに設定される:"
600 #: build/C/man7/inotify.7:344
602 msgid "B<IN_IGNORED>"
603 msgstr "B<IN_IGNORED>"
606 #: build/C/man7/inotify.7:350
608 "Watch was removed explicitly (B<inotify_rm_watch>(2)) or automatically "
609 "(file was deleted, or filesystem was unmounted). See also BUGS."
610 msgstr "監視対象が (B<inotify_rm_watch>(2) により) 明示的に 削除された。もしくは (ファイルの削除、またはファイル システムのアンマウントにより) 自動的に削除された。「バグ」も参照のこと。"
613 #: build/C/man7/inotify.7:350
619 #: build/C/man7/inotify.7:353
620 msgid "Subject of this event is a directory."
621 msgstr "このイベントの対象がディレクトリである。"
624 #: build/C/man7/inotify.7:353
626 msgid "B<IN_Q_OVERFLOW>"
627 msgstr "B<IN_Q_OVERFLOW>"
630 #: build/C/man7/inotify.7:358
631 msgid "Event queue overflowed (I<wd> is -1 for this event)."
632 msgstr "イベントキューが溢れた (このイベントの場合、I<wd> は -1 である)。"
635 #: build/C/man7/inotify.7:358
637 msgid "B<IN_UNMOUNT>"
638 msgstr "B<IN_UNMOUNT>"
641 #: build/C/man7/inotify.7:364
643 "Filesystem containing watched object was unmounted. In addition, an "
644 "B<IN_IGNORED> event will subsequently be generated for the watch descriptor."
645 msgstr "監視対象オブジェクトを含むファイルシステムがアンマウントされた。さらに、この監視対象ディスクリプタに対して B<IN_IGNORED> イベントが生成される。"
648 #: build/C/man7/inotify.7:365
654 #: build/C/man7/inotify.7:373
656 "Suppose an application is watching the directory I<dir> and the file I<dir/"
657 "myfile> for all events. The examples below show some events that will be "
658 "generated for these two objects."
662 #: build/C/man7/inotify.7:374
664 msgid "fd = open(\"dir/myfile\", O_RDWR);"
665 msgstr "fd = open(\"dir/myfile\", O_RDWR);"
668 #: build/C/man7/inotify.7:382
669 msgid "Generates B<IN_OPEN> events for both I<dir> and I<dir/myfile>."
670 msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_OPEN> イベントが生成される。"
673 #: build/C/man7/inotify.7:382
675 msgid "read(fd, buf, count);"
676 msgstr "read(fd, buf, count);"
679 #: build/C/man7/inotify.7:390
680 msgid "Generates B<IN_ACCESS> events for both I<dir> and I<dir/myfile>."
681 msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_ACCESS> イベントが生成される"
684 #: build/C/man7/inotify.7:390
686 msgid "write(fd, buf, count);"
687 msgstr "write(fd, buf, count);"
690 #: build/C/man7/inotify.7:398
691 msgid "Generates B<IN_MODIFY> events for both I<dir> and I<dir/myfile>."
692 msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_MODIFY> イベントが生成される"
695 #: build/C/man7/inotify.7:398
697 msgid "fchmod(fd, mode);"
698 msgstr "fchmod(fd, mode);"
701 #: build/C/man7/inotify.7:406
702 msgid "Generates B<IN_ATTRIB> events for both I<dir> and I<dir/myfile>."
703 msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_ATTRIB> イベントが生成される"
706 #: build/C/man7/inotify.7:406
712 #: build/C/man7/inotify.7:414
713 msgid "Generates B<IN_CLOSE_WRITE> events for both I<dir> and I<dir/myfile>."
714 msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_CLOSE_WRITE> イベントが生成される"
717 #: build/C/man7/inotify.7:423
719 "Suppose an application is watching the directories I<dir1> and I<dir>, and "
720 "the file I<dir1/myfile>. The following examples show some events that may "
725 #: build/C/man7/inotify.7:424
727 msgid "link(\"dir/myfile\", \"dir2/new\");"
728 msgstr "link(\"dir/myfile\", \"dir2/new\");"
731 #: build/C/man7/inotify.7:434
733 "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event for "
735 msgstr "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して B<IN_CREATE> イベントが生成される。"
738 #: build/C/man7/inotify.7:434
740 msgid "rename(\"dir1/myfile\", \"dir2/myfile\");"
741 msgstr "rename(\"dir1/myfile\", \"dir2/myfile\");"
744 #: build/C/man7/inotify.7:455
746 "Generates an B<IN_MOVED_FROM> event for I<dir1>, an B<IN_MOVED_TO> event for "
747 "I<dir2>, and an B<IN_MOVE_SELF> event for I<myfile>. The B<IN_MOVED_FROM> "
748 "and B<IN_MOVED_TO> events will have the same I<cookie> value."
749 msgstr "I<dir1> に対してイベント B<IN_MOVED_FROM> が、 I<dir2> に対してイベント B<IN_MOVED_TO> が、 I<myfile> に対してイベント B<IN_MOVE_SELF> が生成される。この際 イベント B<IN_MOVED_FROM> と B<IN_MOVED_TO> は同じ I<cookie> 値を持つ。"
752 #: build/C/man7/inotify.7:469
754 "Suppose that I<dir1/xx> and I<dir2/yy> are (the only) links to the same "
755 "file, and an application is watching I<dir1>, I<dir2>, I<dir1/xx>, and "
756 "I<dir2/yy>. Executing the following calls in the order given below will "
757 "generate the following events:"
761 #: build/C/man7/inotify.7:470
763 msgid "unlink(\"dir2/yy\");"
764 msgstr "unlink(\"dir2/yy\");"
767 #: build/C/man7/inotify.7:481
769 "Generates B<IN_ATTRIB> event for I<xx> (because its link count changes) and "
770 "an B<IN_DELETE> event for I<dir2>."
774 #: build/C/man7/inotify.7:481
776 msgid "unlink(\"dir1/xx\");"
777 msgstr "unlink(\"dir1/xx\");"
780 #: build/C/man7/inotify.7:494
782 "Generates B<IN_ATTRIB>, B<IN_DELETE_SELF>, and B<IN_IGNORED> events for "
783 "I<xx>, and an B<IN_DELETE> for I<dir1>."
787 #: build/C/man7/inotify.7:501
789 "Suppose an application is watching the directory I<dir> and (the empty) "
790 "directory I<dir/subdir>. The following examples show some events that may "
795 #: build/C/man7/inotify.7:502
797 msgid "mkdir(\"dir/new\", mode);"
798 msgstr "mkdir(\"dir/new\", mode);"
801 #: build/C/man7/inotify.7:508
802 msgid "Generates an B<IN_CREATE | IN_ISDIR> event for I<dir>."
806 #: build/C/man7/inotify.7:508
808 msgid "rmdir(\"dir/sub\");"
809 msgstr "rmdir(\"dir/sub\");"
812 #: build/C/man7/inotify.7:520
814 "Generates B<IN_DELETE_SELF> and B<IN_IGNORED> events for I<subdir>, and an "
815 "B<IN_DELETE | IN_ISDIR> event for I<dir>."
819 #: build/C/man7/inotify.7:521
821 msgid "/proc interfaces"
822 msgstr "/proc インターフェース"
825 #: build/C/man7/inotify.7:524
827 "The following interfaces can be used to limit the amount of kernel memory "
828 "consumed by inotify:"
830 "以下のインターフェースは、inotify で消費される カーネルメモリの総量を制限する"
834 #: build/C/man7/inotify.7:524
836 msgid "I</proc/sys/fs/inotify/max_queued_events>"
837 msgstr "I</proc/sys/fs/inotify/max_queued_events>"
840 #: build/C/man7/inotify.7:533
842 "The value in this file is used when an application calls B<inotify_init>(2) "
843 "to set an upper limit on the number of events that can be queued to the "
844 "corresponding inotify instance. Events in excess of this limit are dropped, "
845 "but an B<IN_Q_OVERFLOW> event is always generated."
847 "このファイルの値は、アプリケーションが B<inotify_init>(2) を呼び出すときに使"
848 "用され、対応する inotify インスタンスについて キューに入れられるイベントの数"
849 "の上限を設定する。 この制限を超えたイベントは破棄されるが、 B<IN_Q_OVERFLOW> "
853 #: build/C/man7/inotify.7:533
855 msgid "I</proc/sys/fs/inotify/max_user_instances>"
856 msgstr "I</proc/sys/fs/inotify/max_user_instances>"
859 #: build/C/man7/inotify.7:537
861 "This specifies an upper limit on the number of inotify instances that can be "
862 "created per real user ID."
864 "1 つの実ユーザ ID に対して生成できる inotify インスタンスの数の上限を指定す"
868 #: build/C/man7/inotify.7:537
870 msgid "I</proc/sys/fs/inotify/max_user_watches>"
871 msgstr "I</proc/sys/fs/inotify/max_user_watches>"
874 #: build/C/man7/inotify.7:541
876 "This specifies an upper limit on the number of watches that can be created "
878 msgstr "作成可能な監視対象の数の実 UID 単位の上限を指定する。"
881 #: build/C/man7/inotify.7:541 build/C/man2/inotify_add_watch.2:118
882 #: build/C/man2/inotify_init.2:94 build/C/man2/inotify_rm_watch.2:67
888 #: build/C/man7/inotify.7:549
890 "Inotify was merged into the 2.6.13 Linux kernel. The required library "
891 "interfaces were added to glibc in version 2.4. (B<IN_DONT_FOLLOW>, "
892 "B<IN_MASK_ADD>, and B<IN_ONLYDIR> were added in glibc version 2.5.)"
893 msgstr "inotify は 2.6.13 の Linux カーネルに組込まれた。 これに必要なライブラリのインターフェースは、 glibc のバージョン 2.4 に追加された (B<IN_DONT_FOLLOW>, B<IN_MASK_ADD>, B<IN_ONLYDIR> は glibc バージョン 2.5 で追加された)。"
896 #: build/C/man7/inotify.7:549 build/C/man2/inotify_add_watch.2:120
897 #: build/C/man2/inotify_init.2:101 build/C/man2/inotify_rm_watch.2:69
899 msgid "CONFORMING TO"
903 #: build/C/man7/inotify.7:551
904 msgid "The inotify API is Linux-specific."
905 msgstr "inotify API は Linux 独自のものである。"
908 #: build/C/man7/inotify.7:551
914 #: build/C/man7/inotify.7:558
916 "Inotify file descriptors can be monitored using B<select>(2), B<poll>(2), "
917 "and B<epoll>(7). When an event is available, the file descriptor indicates "
920 "inotify ファイルディスクリプタは B<select>(2), B<poll>(2), B<epoll>(7) を"
921 "使って監視できる。 イベントがある場合、ファイルディスクリプタは読み込み可能と"
925 #: build/C/man7/inotify.7:587
927 "Since Linux 2.6.25, signal-driven I/O notification is available for inotify "
928 "file descriptors; see the discussion of B<F_SETFL> (for setting the "
929 "B<O_ASYNC> flag), B<F_SETOWN>, and B<F_SETSIG> in B<fcntl>(2). The "
930 "I<siginfo_t> structure (described in B<sigaction>(2)) that is passed to the "
931 "signal handler has the following fields set: I<si_fd> is set to the inotify "
932 "file descriptor number; I<si_signo> is set to the signal number; I<si_code> "
933 "is set to B<POLL_IN>; and B<POLLIN> is set in I<si_band>."
935 "Linux 2.6.25 以降では、シグナル駆動 (signal-driven) I/O の通知が inotify ファ"
936 "イルディスクリプタについて利用可能である。 B<fcntl>(2) に書かれている "
937 "(B<O_ASYNC> フラグを設定するための) B<F_SETFL>, B<F_SETOWN>, B<F_SETSIG> の"
938 "議論を参照のこと。 シグナルハンドラに渡される I<siginfo_t> 構造体は、以下の"
939 "フィールドが設定される (I<siginfo_t> は B<sigaction>(2) で説明されている)。 "
940 "I<si_fd> には inotify ファイルディスクリプタ番号が、 I<si_signo> にはシグナル"
941 "番号が、 I<si_code> には B<POLL_IN> が、 I<si_band> には B<POLLIN> が設定され"
945 #: build/C/man7/inotify.7:600
947 "If successive output inotify events produced on the inotify file descriptor "
948 "are identical (same I<wd>, I<mask>, I<cookie>, and I<name>), then they are "
949 "coalesced into a single event if the older event has not yet been read (but "
950 "see BUGS). This reduces the amount of kernel memory required for the event "
951 "queue, but also means that an application can't use inotify to reliably "
953 msgstr "inotify ファイルディスクリプタに対して 連続して生成される出力 inotify イベントが同一の場合 (I<wd>, I<mask>, I<cookie>, I<name> が等しい場合)、 前のイベントがまだ読み込まれていなければ、 連続するイベントが 1 つのイベントにまとめられる (ただし「バグ」の節も参照のこと)。 これによりイベントキューに必要なカーネルメモリ量が減るが、 これはまたアプリケーションがファイルイベント数を信頼性を持って数えるのに inotify を使用できないということでもある。"
956 #: build/C/man7/inotify.7:606
958 "The events returned by reading from an inotify file descriptor form an "
959 "ordered queue. Thus, for example, it is guaranteed that when renaming from "
960 "one directory to another, events will be produced in the correct order on "
961 "the inotify file descriptor."
963 "inotify ファイルディスクリプタの読み込みで返されるイベントは、 順序付けられた"
964 "キューになる。 従って、たとえば、あるディレクトリの名前を別の名前に変更した場"
965 "合、 inotify ファイルディスクリプタについての正しい順番で イベントが生成され"
969 #: build/C/man7/inotify.7:612
971 "The B<FIONREAD> B<ioctl>(2) returns the number of bytes available to read "
972 "from an inotify file descriptor."
974 "B<FIONREAD> B<ioctl>(2) は inotify ファイルディスクリプタから何バイト読み込"
978 #: build/C/man7/inotify.7:612
980 msgid "Limitations and caveats"
984 #: build/C/man7/inotify.7:619
986 "The inotify API provides no information about the user or process that "
987 "triggered the inotify event. In particular, there is no easy way for a "
988 "process that is monitoring events via inotify to distinguish events that it "
989 "triggers itself from those that are triggered by other processes."
991 "inotify API では、inotify イベントが発生するきっかけとなったユーザやプロセス"
992 "に関する情報は提供されない。とりわけ、inotify 経由でイベントを監視しているプ"
993 "ロセスが、自分自身がきっかけとなったイベントと他のプロセスがきっかけとなった"
997 #: build/C/man7/inotify.7:632
999 "Inotify reports only events that a user-space program triggers through the "
1000 "filesystem API. As a result, it does not catch remote events that occur on "
1001 "network filesystems. (Applications must fall back to polling the filesystem "
1002 "to catch such events.) Furthermore, various pseudo-filesystems such as I</"
1003 "proc>, I</sys>, and I</dev/pts> are not monitorable with inotify."
1007 #: build/C/man7/inotify.7:638
1009 "The inotify API does not report file accesses and modifications that may "
1010 "occur because of B<mmap>(2) and B<msync>(2)."
1014 #: build/C/man7/inotify.7:642
1016 "The inotify API identifies affected files by filename. However, by the time "
1017 "an application processes an inotify event, the filename may already have "
1018 "been deleted or renamed."
1020 "inotify API では影響が受けるファイルをファイル名で特定する。\n"
1021 "しかしながら、アプリケーションが inotify イベントを処理する時点では、\n"
1022 "そのファイル名がすでに削除されたり変更されたりしている可能性がある。"
1025 #: build/C/man7/inotify.7:647
1027 "The inotify API identifies events via watch descriptors. It is the "
1028 "application's responsibility to cache a mapping (if one is needed) between "
1029 "watch descriptors and pathnames. Be aware that directory renamings may "
1030 "affect multiple cached pathnames."
1034 #: build/C/man7/inotify.7:652
1036 "Inotify monitoring of directories is not recursive: to monitor "
1037 "subdirectories under a directory, additional watches must be created. This "
1038 "can take a significant amount time for large directory trees."
1040 "inotify によるディレクトリの監視は再帰的に行われない: あるディレクトリ以下"
1042 "サブディレクトリを監視する場合、 監視対象を追加で作成しなければならない。\n"
1043 "大きなディレクトリツリーの場合には、この作業にかなり時間がかかることがある。"
1046 #: build/C/man7/inotify.7:661
1048 "If monitoring an entire directory subtree, and a new subdirectory is created "
1049 "in that tree or an existing directory is renamed into that tree, be aware "
1050 "that by the time you create a watch for the new subdirectory, new files (and "
1051 "subdirectories) may already exist inside the subdirectory. Therefore, you "
1052 "may want to scan the contents of the subdirectory immediately after adding "
1053 "the watch (and, if desired, recursively add watches for any subdirectories "
1054 "that it contains)."
1055 msgstr "ディレクトリツリー全体を監視していて、 そのツリー内に新しいサブディレクトリが作成されるか、 既存のディレクトリが名前が変更されそのツリー内に移動した場合、 新しいサブディレクトリに対する watch を作成するまでに、 新しいファイル (やサブディレクトリ) がそのサブディレクトリ内にすでに作成されている場合がある点に注意すること。 したがって、watch を追加した直後にサブディレクトリの内容をスキャンしたいと思う場合もあるだろう (必要ならそのサブディレクトリ内のサブディレクトリに対する watch も再帰的に追加することもあるだろう)。"
1058 #: build/C/man7/inotify.7:673
1060 "Note that the event queue can overflow. In this case, events are lost. "
1061 "Robust applications should handle the possibility of lost events "
1062 "gracefully. For example, it may be necessary to rebuild part or all of the "
1063 "application cache. (One simple, but possibly expensive, approach is to "
1064 "close the inotify file descriptor, empty the cache, create a new inotify "
1065 "file descriptor, and then re-create watches and cache entries for the "
1066 "objects to be monitored.)"
1070 #: build/C/man7/inotify.7:673
1072 msgid "Dealing with rename() events"
1073 msgstr "rename() イベントの取り扱い"
1076 #: build/C/man7/inotify.7:682
1078 "As noted above, the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair that is "
1079 "generated by B<rename>(2) can be matched up via their shared cookie value. "
1080 "However, the task of matching has some challenges."
1084 #: build/C/man7/inotify.7:693
1086 "These two events are usually consecutive in the event stream available when "
1087 "reading from the inotify file descriptor. However, this is not guaranteed. "
1088 "If multiple processes are triggering events for monitored objects, then (on "
1089 "rare occasions) an arbitrary number of other events may appear between the "
1090 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events."
1094 #: build/C/man7/inotify.7:718
1096 "Matching up the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair generated by "
1097 "B<rename>(2) is thus inherently racy. (Don't forget that if an object is "
1098 "renamed outside of a monitored directory, there may not even be an "
1099 "B<IN_MOVED_TO> event.) Heuristic approaches (e.g., assume the events are "
1100 "always consecutive) can be used to ensure a match in most cases, but will "
1101 "inevitably miss some cases, causing the application to perceive the "
1102 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events as being unrelated. If watch "
1103 "descriptors are destroyed and re-created as a result, then those watch "
1104 "descriptors will be inconsistent with the watch descriptors in any pending "
1105 "events. (Re-creating the inotify file descriptor and rebuilding the cache "
1106 "may be useful to deal with this scenario.)"
1110 #: build/C/man7/inotify.7:728
1112 "Applications should also allow for the possibility that the B<IN_MOVED_FROM> "
1113 "event was the last event that could fit in the buffer returned by the "
1114 "current call to B<read>(2), and the accompanying B<IN_MOVED_TO> event might "
1115 "be fetched only on the next B<read>(2)."
1119 #: build/C/man7/inotify.7:728
1124 #. FIXME kernel commit 611da04f7a31b2208e838be55a42c7a1310ae321
1125 #. implies that unmount events were buggy 2.6.11 to 2.6.36
1127 #: build/C/man7/inotify.7:736
1128 msgid "In kernels before 2.6.16, the B<IN_ONESHOT> I<mask> flag does not work."
1129 msgstr "2.6.16 以前のカーネルでは B<IN_ONESHOT> I<mask> フラグが働かない。"
1132 #: build/C/man7/inotify.7:746
1134 "As originally designed and implemented, the B<IN_ONESHOT> flag did not cause "
1135 "an B<IN_IGNORED> event to be generated when the watch was dropped after one "
1136 "event. However, as an unintended effect of other changes, since Linux "
1137 "2.6.36, an B<IN_IGNORED> event is generated in this case."
1140 #. commit 1c17d18e3775485bf1e0ce79575eb637a94494a2
1142 #: build/C/man7/inotify.7:755
1144 "Before kernel 2.6.25, the kernel code that was intended to coalesce "
1145 "successive identical events (i.e., the two most recent events could "
1146 "potentially be coalesced if the older had not yet been read) instead "
1147 "checked if the most recent event could be coalesced with the I<oldest> "
1150 "カーネル 2.6.25 より前では、 連続する同一のイベントを一つにまとめることを意図"
1151 "したコード (古い方のイベントがまだ読み込まれていない場合に、 最新の 2 つのイ"
1152 "ベントを一つにまとめられる可能性がある) が、 最新のイベントが「最も古い」読み"
1153 "込まれていないイベントとまとめられるか をチェックするようになっていた。"
1156 #: build/C/man7/inotify.7:755 build/C/man2/inotify_add_watch.2:122
1157 #: build/C/man2/inotify_init.2:103 build/C/man2/inotify_rm_watch.2:71
1163 #: build/C/man7/inotify.7:764
1165 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1166 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1169 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1170 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1174 #: build/C/man7/inotify.7:767
1176 "I<Documentation/filesystems/inotify.txt> in the Linux kernel source tree"
1177 msgstr "Linux カーネルソース内の I<Documentation/filesystems/inotify.txt>"
1180 #: build/C/man7/inotify.7:767 build/C/man2/inotify_add_watch.2:126
1181 #: build/C/man2/inotify_init.2:107 build/C/man2/inotify_rm_watch.2:75
1187 #: build/C/man7/inotify.7:774 build/C/man2/inotify_add_watch.2:133
1188 #: build/C/man2/inotify_init.2:114 build/C/man2/inotify_rm_watch.2:82
1190 "This page is part of release 3.64 of the Linux I<man-pages> project. A "
1191 "description of the project, and information about reporting bugs, can be "
1192 "found at \\%http://www.kernel.org/doc/man-pages/."
1194 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.64 の一部\n"
1195 "である。プロジェクトの説明とバグ報告に関する情報は\n"
1196 "http://www.kernel.org/doc/man-pages/ に書かれている。"
1199 #: build/C/man2/inotify_add_watch.2:28
1201 msgid "INOTIFY_ADD_WATCH"
1202 msgstr "INOTIFY_ADD_WATCH"
1205 #: build/C/man2/inotify_add_watch.2:28 build/C/man2/inotify_init.2:29
1211 #: build/C/man2/inotify_add_watch.2:31
1212 msgid "inotify_add_watch - add a watch to an initialized inotify instance"
1214 "inotify_add_watch - 初期化済み inotify インスタンスに監視対象を追加する"
1217 #: build/C/man2/inotify_add_watch.2:31 build/C/man2/inotify_init.2:32
1218 #: build/C/man2/inotify_rm_watch.2:30
1224 #: build/C/man2/inotify_add_watch.2:33 build/C/man2/inotify_rm_watch.2:32
1225 msgid "B<#include E<lt>sys/inotify.hE<gt>>"
1226 msgstr "B<#include E<lt>sys/inotify.hE<gt>>"
1229 #: build/C/man2/inotify_add_watch.2:35
1231 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1234 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1238 #: build/C/man2/inotify_add_watch.2:54
1240 "B<inotify_add_watch>() adds a new watch, or modifies an existing watch, for "
1241 "the file whose location is specified in I<pathname>; the caller must have "
1242 "read permission for this file. The I<fd> argument is a file descriptor "
1243 "referring to the inotify instance whose watch list is to be modified. The "
1244 "events to be monitored for I<pathname> are specified in the I<mask> bit-mask "
1245 "argument. See B<inotify>(7) for a description of the bits that can be set "
1248 "B<inotify_add_watch>() は、 I<pathname> で指定された位置にあるファイルを監視"
1249 "する監視アイテム (watch) の新規追加、 または既存の監視アイテムの変更を行う。 "
1250 "呼び出し元は、監視対象のファイルに対する読み出し許可を 持っていなければならな"
1251 "い。 I<fd> 引き数は、変更を行う監視対象リスト (watch list) を持つ inotify イ"
1252 "ンスタンスを参照するファイルディスクリプタである。 I<pathname> のどのイベント"
1253 "を監視するかは、引き数のビットマスク I<mask> で指定する。 I<mask> に設定でき"
1254 "るビットの説明については B<inotify>(7) を参照のこと。"
1257 #: build/C/man2/inotify_add_watch.2:68
1259 "A successful call to B<inotify_add_watch>() returns the unique watch "
1260 "descriptor associated with I<pathname> for this inotify instance. If "
1261 "I<pathname> was not previously being watched by this inotify instance, then "
1262 "the watch descriptor is newly allocated. If I<pathname> was already being "
1263 "watched, then the descriptor for the existing watch is returned."
1265 "B<inotify_add_watch>() の呼び出しが成功すると、変更対象の inotify インスタン"
1266 "スで I<pathname> に対応付けられる一意な監視対象ディスクリプタ (watch "
1267 "descriptor) を返す。 I<pathname> がその inotify インスタンスに追加されていな"
1268 "ければ、 監視対象ディスクリプタが新規に割り当てられる。 I<pathname> がすでに"
1269 "監視対象になっていれば、既存の監視アイテムに対する ディスクリプタが返される。"
1272 #: build/C/man2/inotify_add_watch.2:79
1274 "The watch descriptor is returned by later B<read>(2)s from the inotify file "
1275 "descriptor. These reads fetch I<inotify_event> structures (see B<inotify>"
1276 "(7)) indicating filesystem events; the watch descriptor inside this "
1277 "structure identifies the object for which the event occurred."
1279 "これ以降に inotify ファイルディスクリプタから B<read>(2) を行うと、監視対象"
1280 "ディスクリプタが返される。 これらの B<read>() を行うと、ファイルシステムイベ"
1281 "ントを示す I<inotify_event> 構造体が読み出される (B<inotify>(7) 参照)。この"
1282 "構造体内の監視対象ディスクリプタにより、 どのオブジェクトでそのイベントが発生"
1286 #: build/C/man2/inotify_add_watch.2:79 build/C/man2/inotify_init.2:74
1287 #: build/C/man2/inotify_rm_watch.2:48
1289 msgid "RETURN VALUE"
1293 #: build/C/man2/inotify_add_watch.2:86
1295 "On success, B<inotify_add_watch>() returns a nonnegative watch descriptor. "
1296 "On error, -1 is returned and I<errno> is set appropriately."
1298 "成功すると、 B<inotify_add_watch>() は非負の監視対象ディスクリプタを返す。 "
1299 "エラーの場合、-1 を返し、 I<errno> を適切に設定する。"
1302 #: build/C/man2/inotify_add_watch.2:86 build/C/man2/inotify_init.2:79
1303 #: build/C/man2/inotify_rm_watch.2:55
1309 #: build/C/man2/inotify_add_watch.2:87
1315 #: build/C/man2/inotify_add_watch.2:90
1316 msgid "Read access to the given file is not permitted."
1317 msgstr "指定されたファイルに対する読み出しアクセスが許可されていない。"
1320 #: build/C/man2/inotify_add_watch.2:90 build/C/man2/inotify_rm_watch.2:56
1326 #: build/C/man2/inotify_add_watch.2:93
1327 msgid "The given file descriptor is not valid."
1328 msgstr "指定されたファイルディスクリプタが有効ではない。"
1331 #: build/C/man2/inotify_add_watch.2:93
1337 #: build/C/man2/inotify_add_watch.2:97
1338 msgid "I<pathname> points outside of the process's accessible address space."
1340 "I<pathname> が指すアドレスがプロセスがアクセスできるアドレス空間外である。"
1343 #: build/C/man2/inotify_add_watch.2:97 build/C/man2/inotify_init.2:80
1344 #: build/C/man2/inotify_rm_watch.2:60
1350 #: build/C/man2/inotify_add_watch.2:102
1352 "The given event mask contains no valid events; or I<fd> is not an inotify "
1355 "指定されたイベントマスクに有効なイベントが含まれていない。 もしくは I<fd> が "
1356 "inotify ファイルディスクリプタではない。"
1359 #: build/C/man2/inotify_add_watch.2:102
1361 msgid "B<ENAMETOOLONG>"
1362 msgstr "B<ENAMETOOLONG>"
1365 #: build/C/man2/inotify_add_watch.2:106
1366 msgid "I<pathname> is too long."
1367 msgstr "I<pathname> が長過ぎる。"
1370 #: build/C/man2/inotify_add_watch.2:106
1376 #: build/C/man2/inotify_add_watch.2:111
1378 "A directory component in I<pathname> does not exist or is a dangling "
1381 "I<pathname> のディレクトリ部分の構成要素が、存在しないか、\n"
1382 "リンク切れのシンボリックリンクである。"
1385 #: build/C/man2/inotify_add_watch.2:111 build/C/man2/inotify_init.2:91
1391 #: build/C/man2/inotify_add_watch.2:114
1392 msgid "Insufficient kernel memory was available."
1393 msgstr "カーネルメモリが十分になかった。"
1396 #: build/C/man2/inotify_add_watch.2:114
1402 #: build/C/man2/inotify_add_watch.2:118
1404 "The user limit on the total number of inotify watches was reached or the "
1405 "kernel failed to allocate a needed resource."
1407 "inotify 監視対象の総数がユーザが追加できる上限に達していた。 もしくは、必要な"
1408 "資源の割り当てにカーネルが失敗した。"
1411 #: build/C/man2/inotify_add_watch.2:120 build/C/man2/inotify_rm_watch.2:69
1412 msgid "Inotify was merged into the 2.6.13 Linux kernel."
1413 msgstr "inotify は Linux カーネル 2.6.13 に組み込まれた。"
1416 #: build/C/man2/inotify_add_watch.2:122 build/C/man2/inotify_rm_watch.2:71
1417 msgid "This system call is Linux-specific."
1418 msgstr "このシステムコールは Linux 独自である。"
1421 #: build/C/man2/inotify_add_watch.2:126
1422 msgid "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1423 msgstr "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1426 #: build/C/man2/inotify_init.2:29
1428 msgid "INOTIFY_INIT"
1429 msgstr "INOTIFY_INIT"
1432 #: build/C/man2/inotify_init.2:32
1433 msgid "inotify_init, inotify_init1 - initialize an inotify instance"
1434 msgstr "inotify_init, inotify_init1 - inotify インスタンスを初期化する"
1437 #: build/C/man2/inotify_init.2:35
1439 msgid "B<#include E<lt>sys/inotify.hE<gt>>\n"
1440 msgstr "B<#include E<lt>sys/inotify.hE<gt>>\n"
1443 #: build/C/man2/inotify_init.2:38
1446 "B<int inotify_init(void);>\n"
1447 "B<int inotify_init1(int >I<flags>B<);>\n"
1449 "B<int inotify_init(void);>\n"
1450 "B<int inotify_init1(int >I<flags>B<);>\n"
1453 #: build/C/man2/inotify_init.2:42
1454 msgid "For an overview of the inotify API, see B<inotify>(7)."
1455 msgstr "inotify API の概要については B<inotify>(7) を参照。"
1458 #: build/C/man2/inotify_init.2:46
1460 "B<inotify_init>() initializes a new inotify instance and returns a file "
1461 "descriptor associated with a new inotify event queue."
1463 "B<inotify_init>() は、新規の inotify インスタンスを初期化し、作成された "
1464 "inotify イベントキュー に対応するファイルディスクリプタを返す。"
1467 #: build/C/man2/inotify_init.2:56
1469 "If I<flags> is 0, then B<inotify_init1>() is the same as B<inotify_init>"
1470 "(). The following values can be bitwise ORed in I<flags> to obtain "
1471 "different behavior:"
1473 "B<inotify_init1>() は、 I<flags> が 0 の場合、 B<inotify_init>() と同じであ"
1474 "る。 I<flags> に以下の値をビット毎の論理和 (OR) で指定することで、 異なる動作"
1478 #: build/C/man2/inotify_init.2:56
1480 msgid "B<IN_NONBLOCK>"
1481 msgstr "B<IN_NONBLOCK>"
1484 #: build/C/man2/inotify_init.2:64
1486 "Set the B<O_NONBLOCK> file status flag on the new open file description. "
1487 "Using this flag saves extra calls to B<fcntl>(2) to achieve the same result."
1489 "新しく生成されるオープンファイル記述 (open file description) の BR "
1490 "O_NONBLOCK ファイルステータスフラグをセットする。 このフラグを使うことで、 "
1491 "B<O_NONBLOCK> をセットするために B<fcntl>(2) を追加で呼び出す必要がなくな"
1495 #: build/C/man2/inotify_init.2:64
1497 msgid "B<IN_CLOEXEC>"
1498 msgstr "B<IN_CLOEXEC>"
1501 #: build/C/man2/inotify_init.2:74
1503 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See "
1504 "the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this "
1507 "新しいファイル・ディスクリプターに対して close-on-exec (B<FD_CLOEXEC>) フラ"
1508 "グをセットする。 このフラグが役に立つ理由については、 B<open>(2) の "
1509 "B<O_CLOEXEC> フラグの説明を参照のこと。"
1512 #: build/C/man2/inotify_init.2:79
1514 "On success, these system calls return a new file descriptor. On error, -1 "
1515 "is returned, and I<errno> is set to indicate the error."
1517 "成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。 エ"
1518 "ラーの場合、-1 を返し、 I<errno> をエラーを示す値に設定する。"
1521 #: build/C/man2/inotify_init.2:85
1522 msgid "(B<inotify_init1>()) An invalid value was specified in I<flags>."
1523 msgstr "(B<inotify_init1>()) 無効な値が I<flags> に指定された。"
1526 #: build/C/man2/inotify_init.2:85
1532 #: build/C/man2/inotify_init.2:88
1534 "The user limit on the total number of inotify instances has been reached."
1535 msgstr "inotify インスタンスの総数がユーザ単位の上限に達していた。"
1538 #: build/C/man2/inotify_init.2:88
1544 #: build/C/man2/inotify_init.2:91
1546 "The system limit on the total number of file descriptors has been reached."
1547 msgstr "inotify インスタンスの総数がシステムの上限に達していた。"
1550 #: build/C/man2/inotify_init.2:94
1551 msgid "Insufficient kernel memory is available."
1552 msgstr "カーネルメモリが十分になかった。"
1555 #: build/C/man2/inotify_init.2:101
1557 "B<inotify_init>() first appeared in Linux 2.6.13; library support was added "
1558 "to glibc in version 2.4. B<inotify_init1>() was added in Linux 2.6.27; "
1559 "library support was added to glibc in version 2.9."
1561 "B<inotify_init>() は Linux 2.6.13 で初めて登場し、\n"
1562 "ライブラリによるサポートは glibc バージョン 2.4 で追加された。\n"
1563 "B<inotify_init1>() は Linux 2.6.27 で追加され、\n"
1564 "ライブラリによるサポートは glibc バージョン 2.9 で追加された。"
1567 #: build/C/man2/inotify_init.2:103
1568 msgid "These system calls are Linux-specific."
1569 msgstr "これらのシステムコールは Linux 独自である。"
1572 #: build/C/man2/inotify_init.2:107
1573 msgid "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1574 msgstr "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1577 #: build/C/man2/inotify_rm_watch.2:27
1579 msgid "INOTIFY_RM_WATCH"
1580 msgstr "INOTIFY_RM_WATCH"
1583 #: build/C/man2/inotify_rm_watch.2:27
1589 #: build/C/man2/inotify_rm_watch.2:30
1590 msgid "inotify_rm_watch - remove an existing watch from an inotify instance"
1592 "inotify_rm_watch - inotify インスタンスから既存の監視アイテムを削除する"
1594 #. Before glibc 2.10, the second argument was types as uint32_t.
1595 #. http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
1597 #: build/C/man2/inotify_rm_watch.2:36
1598 msgid "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1599 msgstr "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1602 #: build/C/man2/inotify_rm_watch.2:42
1604 "B<inotify_rm_watch>() removes the watch associated with the watch "
1605 "descriptor I<wd> from the inotify instance associated with the file "
1608 "B<inotify_rm_watch>() は、監視対象ディスクリプタ (watch descriptor) I<wd> "
1609 "に対応する監視アイテムを、 ファイルディスクリプタ I<fd> に対応する inotify イ"
1613 #: build/C/man2/inotify_rm_watch.2:48
1615 "Removing a watch causes an B<IN_IGNORED> event to be generated for this "
1616 "watch descriptor. (See B<inotify>(7).)"
1618 "監視対象を削除すると、 この監視対象ディスクリプタに対して B<IN_IGNORED> イベ"
1619 "ントが生成される (B<inotify>(7) 参照)。"
1622 #: build/C/man2/inotify_rm_watch.2:55
1624 "On success, B<inotify_rm_watch>() returns zero. On error, -1 is returned "
1625 "and I<errno> is set to indicate the cause of the error."
1626 msgstr "成功すると、B<inotify_rm_watch>() は 0 を返す。 エラーの場合、-1 を返し、 I<errno> をエラーの原因を示す値に設定する。"
1629 #: build/C/man2/inotify_rm_watch.2:60
1630 msgid "I<fd> is not a valid file descriptor."
1631 msgstr "I<fd> が有効なファイルディスクリプタではない。"
1634 #: build/C/man2/inotify_rm_watch.2:67
1636 "The watch descriptor I<wd> is not valid; or I<fd> is not an inotify file "
1639 "監視対象ディスクリプタ I<wd> が有効でない。もしくは、 I<fd> が inotify ファイ"
1643 #: build/C/man2/inotify_rm_watch.2:75
1644 msgid "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1645 msgstr "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1647 #~ msgid "2013-09-16"
1648 #~ msgstr "2013-09-16"
1651 #~ "The following system calls are used with this API: B<inotify_init>(2) "
1652 #~ "(or B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>"
1653 #~ "(2), B<read>(2), and B<close>(2)."
1655 #~ "以下のシステムコールがこの API と共に使用される: B<inotify_init>(2) (や "
1656 #~ "B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>(2), "
1657 #~ "B<read>(2), B<close>(2)."
1659 #~ msgid "File/directory created in watched directory (*)."
1660 #~ msgstr "監視対象ディレクトリ内でファイルやディレクトリが作成された。(*)"
1662 #~ msgid "Watched file/directory was itself deleted."
1663 #~ msgstr "監視対象のディレクトリまたはファイル自身が削除された。"
1665 #~ msgid "File was modified (*)."
1666 #~ msgstr "ファイルが修正された。(*)"
1669 #~ "Two additional convenience macros are B<IN_MOVE>, which equates to "
1670 #~ "IN_MOVED_FROM|IN_MOVED_TO, and B<IN_CLOSE>, which equates to "
1671 #~ "IN_CLOSE_WRITE|IN_CLOSE_NOWRITE."
1673 #~ "さらに 2 つの便利なマクロがある。\n"
1674 #~ "B<IN_MOVE> は IN_MOVED_FROM|IN_MOVED_TO と同じで、\n"
1675 #~ "B<IN_CLOSE> は IN_CLOSE_WRITE|IN_CLOSE_NOWRITE と同じである。"
1677 #~ msgid "Filesystem containing watched object was unmounted."
1678 #~ msgstr "監視対象オブジェクトを含むファイルシステムがアンマウントされた。"
1681 #~ "Note that the event queue can overflow. In this case, events are lost. "
1682 #~ "Robust applications should handle the possibility of lost events "
1685 #~ "イベントキューは溢れる場合があることに注意すること。この場合にはイベント"
1687 #~ "失われてしまう。堅牢性が必要なアプリケーションでは、イベントが失われる可能"
1692 #~ "On success, B<inotify_rm_watch>() returns zero, or -1 if an error "
1693 #~ "occurred (in which case, I<errno> is set appropriately)."
1695 #~ "成功すると、 B<inotify_rm_watch>() は 0 を返す。 エラーの場合、-1 を返"
1696 #~ "し、 I<errno> を適切に設定する。"
1698 #~ msgid "File moved out of watched directory (*)."
1699 #~ msgstr "ファイルが監視対象ディレクトリ外へ移動された。(*)"
1701 #~ msgid "File moved into watched directory (*)."
1702 #~ msgstr "ファイルが監視対象ディレクトリ内へ移動された。(*)"
1705 #~ "The inotify API provides no information about the user or process that "
1706 #~ "triggered the inotify event."
1708 #~ "inotify API では inotify イベントのきっかけとなったユーザやプロセスに関す"