OSDN Git Service

(split) LDP: Replace NULL ポインタ to ヌルポインタ
[linuxjm/LDP_man-pages.git] / po4a / inotify / po / ja.po
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.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2014-04-24 00:50+0900\n"
10 "PO-Revision-Date: 2014-04-27 06:31+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language: \n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #. type: TH
19 #: build/C/man7/inotify.7:26
20 #, no-wrap
21 msgid "INOTIFY"
22 msgstr "INOTIFY"
23
24 #. type: TH
25 #: build/C/man7/inotify.7:26
26 #, no-wrap
27 msgid "2014-04-01"
28 msgstr "2014-04-01"
29
30 #. type: TH
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
33 #, no-wrap
34 msgid "Linux"
35 msgstr "Linux"
36
37 #. type: TH
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
40 #, no-wrap
41 msgid "Linux Programmer's Manual"
42 msgstr "Linux Programmer's Manual"
43
44 #. type: SH
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
47 #, no-wrap
48 msgid "NAME"
49 msgstr "名前"
50
51 #. type: Plain text
52 #: build/C/man7/inotify.7:29
53 msgid "inotify - monitoring filesystem events"
54 msgstr "inotify - ファイルシステムイベントを監視する"
55
56 #. type: SH
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
59 #, no-wrap
60 msgid "DESCRIPTION"
61 msgstr "説明"
62
63 #. type: Plain text
64 #: build/C/man7/inotify.7:37
65 msgid ""
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."
70 msgstr ""
71 "I<inotify> API はファイルシステムイベントを監視するための機構を提供する。 "
72 "inotify は個々のファイルやディレクトリを監視するのに使える。 ディレクトリを監"
73 "視する場合、inotify はディレクトリ自身と ディレクトリ内のファイルのイベントを"
74 "返す。"
75
76 #. type: Plain text
77 #: build/C/man7/inotify.7:39
78 msgid "The following system calls are used with this API:"
79 msgstr "この API では以下のシステムコールが使用される。"
80
81 #. type: IP
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
85 #, no-wrap
86 msgid "*"
87 msgstr "*"
88
89 #. type: Plain text
90 #: build/C/man7/inotify.7:50
91 msgid ""
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 ""
97 "B<inotify_init>(2)  は inotify インスタンスを作成し、inotify インスタンスを参"
98 "照する ファイルディスクリプタを返す。 もっと新しい B<inotify_init1>(2)  も "
99 "B<inotify_init>(2)  と同様だが、いくつかの追加の機能を利用するための "
100 "I<flags> 引き数を持っている。"
101
102 #. type: Plain text
103 #: build/C/man7/inotify.7:63
104 msgid ""
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."
112 msgstr ""
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)  から返される整数である。"
120
121 #. type: Plain text
122 #: build/C/man7/inotify.7:69
123 msgid ""
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)."
127 msgstr ""
128
129 #. type: Plain text
130 #: build/C/man7/inotify.7:72
131 msgid "B<inotify_rm_watch>(2)  removes an item from an inotify watch list."
132 msgstr ""
133 "B<inotify_rm_watch>(2)  は inotify の監視対象リストからアイテムを削除する。"
134
135 #. type: Plain text
136 #: build/C/man7/inotify.7:79
137 msgid ""
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."
141 msgstr ""
142 "inotify インスタンスを指している 全てのファイルディスクリプタが (B<close>(2) "
143 "を使って) クローズされた場合、 その下層にあるオブジェクトとそのリソースは、 "
144 "カーネルで再利用するために解放される。 関連が切られた監視対象は自動的に解放さ"
145 "れる。"
146
147 #. type: Plain text
148 #: build/C/man7/inotify.7:88
149 msgid ""
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."
156 msgstr ""
157
158 #. type: SS
159 #: build/C/man7/inotify.7:88
160 #, no-wrap
161 msgid "Reading events from an inotify file descriptor"
162 msgstr "inotify ファイルディスクリプタからのイベントの読み出し"
163
164 #. type: Plain text
165 #: build/C/man7/inotify.7:101
166 msgid ""
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))."
172 msgstr ""
173 "どのようなイベントが起こっていたかを知るには、 アプリケーションで inotify "
174 "ファイルディスクリプタを B<read>(2)  すればよい。 これまでに何もイベントが起"
175 "こっていない場合、 停止 (blocking) モードのファイルディスクリプタであれば、 "
176 "少なくとも 1 つのイベントが起こるまで B<read>(2)  は停止する (シグナルにより"
177 "割り込まれなかった場合。 シグナルによる割り込みがあった場合、呼び出しはエ"
178 "ラー B<EINTR> で失敗する。 B<signal>(7)  参照)。"
179
180 #. type: Plain text
181 #: build/C/man7/inotify.7:105
182 msgid ""
183 "Each successful B<read>(2)  returns a buffer containing one or more of the "
184 "following structures:"
185 msgstr ""
186 "B<read>(2)  が成功すると、以下の構造体を 1 つ以上含むバッファが返される:"
187
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
192 #. type: Plain text
193 #: build/C/man7/inotify.7:120
194 #, no-wrap
195 msgid ""
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"
203 "};\n"
204 msgstr ""
205 "struct inotify_event {\n"
206 "    int      wd;       /* 監視対象ディスクリプタ */\n"
207 "    uint32_t mask;     /* イベントのマスク */\n"
208 "    uint32_t cookie;   /* 関連するイベント群を関連づける\n"
209 "                          一意なクッキー (rename(2) 用) */\n"
210 "    uint32_t len;      /* \\(aqname\\(aq フィールドのサイズ */\n"
211 "    char     name[];   /* ヌルで終端された任意の名前 */\n"
212 "};\n"
213
214 #. type: Plain text
215 #: build/C/man7/inotify.7:127
216 msgid ""
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)."
219 msgstr ""
220 "I<wd> はイベント発生の監視対象を指定する。 これは、前もって行われた "
221 "B<inotify_add_watch>(2)  呼び出しで返された監視対象ディスクリプタのうちの 1 "
222 "つである。"
223
224 #. type: Plain text
225 #: build/C/man7/inotify.7:130
226 msgid ""
227 "I<mask> contains bits that describe the event that occurred (see below)."
228 msgstr ""
229 "I<mask> には発生したイベント (下記参照) を記述するためのビットが含まれる。"
230
231 #. type: Plain text
232 #: build/C/man7/inotify.7:142
233 msgid ""
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."
238 msgstr ""
239 "I<cookie> は関連するイベントを関連づけるための一意な整数である。\n"
240 "現在のところ、この値は rename イベントに対してのみ使われており、\n"
241 "結果のペアである B<IN_MOVED_FROM> と B<IN_MOVED_TO> イベントを\n"
242 "アプリケーションで関連づけることができる。\n"
243 "他のイベント種別の場合には、 I<cookie> は 0 に設定する。"
244
245 #. type: Plain text
246 #: build/C/man7/inotify.7:151
247 msgid ""
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 "
252 "address boundary."
253 msgstr ""
254 "I<name> フィールドは監視しているディレクトリ内のファイルに対して イベントが返"
255 "される場合のためにだけ存在する。 監視するディレクトリからのファイルの相対パス"
256 "名を表す。 このパス名はヌルで終端され、 その後の読み込みで適切なアドレス境"
257 "界に調整するために、 さらにヌルバイト (\\(aq\\e0\\(aq) が含まれる場合もあ"
258 "る。"
259
260 #. type: Plain text
261 #: build/C/man7/inotify.7:161
262 msgid ""
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>."
266 msgstr ""
267 "I<len> フィールドはヌルバイトを含む I<name> の全てのバイト数を表す。\n"
268 "よって、 I<inotify_event> 構造体のサイズは \n"
269 "I<sizeof(struct inotify_event)+len> である。"
270
271 #. type: Plain text
272 #: build/C/man7/inotify.7:172
273 msgid ""
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"
278 msgstr ""
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"
283 "バッファサイズとして"
284
285 #. type: Plain text
286 #: build/C/man7/inotify.7:174
287 #, no-wrap
288 msgid "    sizeof(struct inotify_event) + NAME_MAX + 1\n"
289 msgstr "    sizeof(struct inotify_event) + NAME_MAX + 1\n"
290
291 #. type: Plain text
292 #: build/C/man7/inotify.7:176
293 msgid "will be sufficient to read at least one event."
294 msgstr "を指定すれば、少なくとも 1 イベントで読み出しを行うには十分である。"
295
296 #. type: SS
297 #: build/C/man7/inotify.7:176
298 #, no-wrap
299 msgid "inotify events"
300 msgstr "inotify イベント"
301
302 #. type: Plain text
303 #: build/C/man7/inotify.7:196
304 msgid ""
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):"
310 msgstr ""
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> フィールドで返される:"
316
317 #. type: TP
318 #: build/C/man7/inotify.7:197
319 #, no-wrap
320 msgid "B<IN_ACCESS> (*)"
321 msgstr "B<IN_ACCESS> (*)"
322
323 #. type: Plain text
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) などで) ファイルがアクセスされた。"
327
328 #. type: TP
329 #: build/C/man7/inotify.7:202
330 #, no-wrap
331 msgid "B<IN_ATTRIB> (*)"
332 msgstr "B<IN_ATTRIB> (*)"
333
334 #. type: Plain text
335 #: build/C/man7/inotify.7:217
336 msgid ""
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))."
341 msgstr ""
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) など) などである。"
346
347 #. type: TP
348 #: build/C/man7/inotify.7:217
349 #, no-wrap
350 msgid "B<IN_CLOSE_WRITE> (*)"
351 msgstr "B<IN_CLOSE_WRITE> (*)"
352
353 #. type: Plain text
354 #: build/C/man7/inotify.7:220
355 msgid "File opened for writing was closed."
356 msgstr "書き込みのためにオープンされたファイルがクローズされた。"
357
358 #. type: TP
359 #: build/C/man7/inotify.7:220
360 #, no-wrap
361 msgid "B<IN_CLOSE_NOWRITE> (*)"
362 msgstr "B<IN_CLOSE_NOWRITE> (*)"
363
364 #. type: Plain text
365 #: build/C/man7/inotify.7:223
366 msgid "File not opened for writing was closed."
367 msgstr "書き込み以外のためにオープンされたファイルがクローズされた。"
368
369 #. type: TP
370 #: build/C/man7/inotify.7:223
371 #, no-wrap
372 msgid "B<IN_CREATE> (*)"
373 msgstr "B<IN_CREATE> (*)"
374
375 #. type: Plain text
376 #: build/C/man7/inotify.7:233
377 msgid ""
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)."
380 msgstr ""
381 "監視対象ディレクトリ内でファイルやディレクトリが作成された (B<open>(2)  "
382 "B<O_CREAT>, B<mkdir>(2), B<link>(2), B<symlink>(2), UNIX ドメインソケットに対"
383 "する B<bind>(2) など)。"
384
385 #. type: TP
386 #: build/C/man7/inotify.7:233
387 #, no-wrap
388 msgid "B<IN_DELETE> (*)"
389 msgstr "B<IN_DELETE> (*)"
390
391 #. type: Plain text
392 #: build/C/man7/inotify.7:236
393 msgid "File/directory deleted from watched directory."
394 msgstr "監視対象ディレクトリ内でファイルやディレクトリが削除された。"
395
396 #. type: TP
397 #: build/C/man7/inotify.7:236
398 #, no-wrap
399 msgid "B<IN_DELETE_SELF>"
400 msgstr "B<IN_DELETE_SELF>"
401
402 #. type: Plain text
403 #: build/C/man7/inotify.7:247
404 msgid ""
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."
410 msgstr ""
411
412 #. type: TP
413 #: build/C/man7/inotify.7:247
414 #, no-wrap
415 msgid "B<IN_MODIFY> (*)"
416 msgstr "B<IN_MODIFY> (*)"
417
418 #. type: Plain text
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) など)。"
422
423 #. type: TP
424 #: build/C/man7/inotify.7:252
425 #, no-wrap
426 msgid "B<IN_MOVE_SELF>"
427 msgstr "B<IN_MOVE_SELF>"
428
429 #. type: Plain text
430 #: build/C/man7/inotify.7:255
431 msgid "Watched file/directory was itself moved."
432 msgstr "監視対象のディレクトリまたはファイル自身が移動された。"
433
434 #. type: TP
435 #: build/C/man7/inotify.7:255
436 #, no-wrap
437 msgid "B<IN_MOVED_FROM> (*)"
438 msgstr "B<IN_MOVED_FROM> (*)"
439
440 #. type: Plain text
441 #: build/C/man7/inotify.7:259
442 msgid ""
443 "Generated for the directory containing the old filename when a file is "
444 "renamed."
445 msgstr ""
446 "ファイル名の変更を行った際に変更前のファイル名が含まれるディレクトリに対して"
447 "生成される。"
448
449 #. type: TP
450 #: build/C/man7/inotify.7:259
451 #, no-wrap
452 msgid "B<IN_MOVED_TO> (*)"
453 msgstr "B<IN_MOVED_TO> (*)"
454
455 #. type: Plain text
456 #: build/C/man7/inotify.7:263
457 msgid ""
458 "Generated for the directory containing the new filename when a file is "
459 "renamed."
460 msgstr ""
461 "ファイル名の変更を行った際に新しいファイル名が含まれるディレクトリに対して生"
462 "成される。"
463
464 #. type: TP
465 #: build/C/man7/inotify.7:263
466 #, no-wrap
467 msgid "B<IN_OPEN> (*)"
468 msgstr "B<IN_OPEN> (*)"
469
470 #. type: Plain text
471 #: build/C/man7/inotify.7:266
472 msgid "File was opened."
473 msgstr "ファイルがオープンされた。"
474
475 #. type: Plain text
476 #: build/C/man7/inotify.7:275
477 msgid ""
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 "
481 "the directory."
482 msgstr ""
483 "ディレクトリを監視する場合、 上記でアスタリスク (*) を付けたイベントは、 その"
484 "ディレクトリ内のファイルに対して発生する。 このとき I<inotify_event> 構造体で"
485 "返される I<name> フィールドは、ディレクトリ内のファイル名を表す。"
486
487 #. type: Plain text
488 #: build/C/man7/inotify.7:283
489 msgid ""
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)."
493 msgstr ""
494 "B<IN_ALL_EVENTS> マクロは上記のイベント全てのマスクとして定義される。 このマ"
495 "クロは B<inotify_add_watch>(2)  を呼び出すときの I<mask> 引き数として使える。"
496
497 #. type: Plain text
498 #: build/C/man7/inotify.7:285
499 msgid "Two additional convenience macros are defined:"
500 msgstr "以下の 2 つの便利なマクロが定義されている。"
501
502 #. type: TP
503 #: build/C/man7/inotify.7:286
504 #, no-wrap
505 msgid "B<IN_MOVE>"
506 msgstr "B<IN_MOVE>"
507
508 #. type: Plain text
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> と等価。"
512
513 #. type: TP
514 #: build/C/man7/inotify.7:290
515 #, no-wrap
516 msgid "B<IN_CLOSE>"
517 msgstr "B<IN_CLOSE>"
518
519 #. type: Plain text
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> と等価。"
523
524 #. type: Plain text
525 #: build/C/man7/inotify.7:300
526 msgid ""
527 "The following further bits can be specified in I<mask> when calling "
528 "B<inotify_add_watch>(2):"
529 msgstr ""
530 "その他にも以下のビットを B<inotify_add_watch>(2)  を呼ぶときの I<mask> に指定"
531 "できる:"
532
533 #. type: TP
534 #: build/C/man7/inotify.7:301
535 #, no-wrap
536 msgid "B<IN_DONT_FOLLOW> (since Linux 2.6.15)"
537 msgstr "B<IN_DONT_FOLLOW> (Linux 2.6.15 以降)"
538
539 #. type: Plain text
540 #: build/C/man7/inotify.7:306
541 msgid "Don't dereference I<pathname> if it is a symbolic link."
542 msgstr ""
543 "I<pathname> がシンボリックリンクである場合に辿らない。 (Linux 2.6.15 以降)"
544
545 #. type: TP
546 #: build/C/man7/inotify.7:306
547 #, no-wrap
548 msgid "B<IN_EXCL_UNLINK> (since Linux 2.6.36)"
549 msgstr "B<IN_EXCL_UNLINK> (Linux 2.6.36 以降)"
550
551 #.  commit 8c1934c8d70b22ca8333b216aec6c7d09fdbd6a6
552 #. type: Plain text
553 #: build/C/man7/inotify.7:322
554 msgid ""
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 "
562 "directory."
563 msgstr ""
564 "デフォルトでは、あるディレクトリの子ファイルに関するイベントを監視 (watch) し"
565 "た際、ディレクトリからその子ファイルが削除 (unlink) された場合であってもその"
566 "子ファイルに対してイベントが生成される。このことは、アプリケーションによって"
567 "はあまり興味のないイベントが大量に発生することにつながる (例えば、I</tmp> を"
568 "監視している場合、たくさんのアプリケーションが、すぐにその名前が削除される一"
569 "時ファイルをそのディレクトリに作成する)。 B<IN_EXCL_UNLINK> を指定するとこの"
570 "デフォルトの動作を変更でき、監視対象のディレクトリから子ファイルが削除された"
571 "後に子ファイルに関するイベントが生成されなくなる。"
572
573 #. type: TP
574 #: build/C/man7/inotify.7:322
575 #, no-wrap
576 msgid "B<IN_MASK_ADD>"
577 msgstr "B<IN_MASK_ADD>"
578
579 #. type: Plain text
580 #: build/C/man7/inotify.7:326
581 msgid ""
582 "Add (OR) events to watch mask for this pathname if it already exists "
583 "(instead of replacing mask)."
584 msgstr ""
585 "I<pathname> に対する監視マスクが既に存在する場合、 (マスクの置き換えではな"
586 "く) イベントを追加 (OR) する。"
587
588 #. type: TP
589 #: build/C/man7/inotify.7:326
590 #, no-wrap
591 msgid "B<IN_ONESHOT>"
592 msgstr "B<IN_ONESHOT>"
593
594 #. type: Plain text
595 #: build/C/man7/inotify.7:332
596 msgid "Monitor I<pathname> for one event, then remove from watch list."
597 msgstr ""
598 "1 つのイベントについて I<pathname> を監視し、 イベントが発生したら監視対象リ"
599 "ストから削除する。"
600
601 #. type: TP
602 #: build/C/man7/inotify.7:332
603 #, no-wrap
604 msgid "B<IN_ONLYDIR> (since Linux 2.6.15)"
605 msgstr "B<IN_ONLYDIR> (Linux 2.6.15 以降)"
606
607 #. type: Plain text
608 #: build/C/man7/inotify.7:337
609 msgid "Only watch I<pathname> if it is a directory."
610 msgstr "I<pathname> がディレクトリの場合にのみ監視する。"
611
612 #. type: Plain text
613 #: build/C/man7/inotify.7:343
614 msgid ""
615 "The following bits may be set in the I<mask> field returned by B<read>(2):"
616 msgstr "以下のビットが B<read>(2)  で返される I<mask> フィールドに設定される:"
617
618 #. type: TP
619 #: build/C/man7/inotify.7:344
620 #, no-wrap
621 msgid "B<IN_IGNORED>"
622 msgstr "B<IN_IGNORED>"
623
624 #. type: Plain text
625 #: build/C/man7/inotify.7:350
626 msgid ""
627 "Watch was removed explicitly (B<inotify_rm_watch>(2))  or automatically "
628 "(file was deleted, or filesystem was unmounted).  See also BUGS."
629 msgstr ""
630 "監視対象が (B<inotify_rm_watch>(2) により) 明示的に 削除された。もしくは "
631 "(ファイルの削除、またはファイル システムのアンマウントにより) 自動的に削除さ"
632 "れた。「バグ」も参照のこと。"
633
634 #. type: TP
635 #: build/C/man7/inotify.7:350
636 #, no-wrap
637 msgid "B<IN_ISDIR>"
638 msgstr "B<IN_ISDIR>"
639
640 #. type: Plain text
641 #: build/C/man7/inotify.7:353
642 msgid "Subject of this event is a directory."
643 msgstr "このイベントの対象がディレクトリである。"
644
645 #. type: TP
646 #: build/C/man7/inotify.7:353
647 #, no-wrap
648 msgid "B<IN_Q_OVERFLOW>"
649 msgstr "B<IN_Q_OVERFLOW>"
650
651 #. type: Plain text
652 #: build/C/man7/inotify.7:358
653 msgid "Event queue overflowed (I<wd> is -1 for this event)."
654 msgstr "イベントキューが溢れた (このイベントの場合、I<wd> は -1 である)。"
655
656 #. type: TP
657 #: build/C/man7/inotify.7:358
658 #, no-wrap
659 msgid "B<IN_UNMOUNT>"
660 msgstr "B<IN_UNMOUNT>"
661
662 #. type: Plain text
663 #: build/C/man7/inotify.7:364
664 msgid ""
665 "Filesystem containing watched object was unmounted.  In addition, an "
666 "B<IN_IGNORED> event will subsequently be generated for the watch descriptor."
667 msgstr ""
668 "監視対象オブジェクトを含むファイルシステムがアンマウントされた。さらに、この"
669 "監視対象ディスクリプタに対して B<IN_IGNORED> イベントが生成される。"
670
671 #. type: SS
672 #: build/C/man7/inotify.7:365
673 #, no-wrap
674 msgid "Examples"
675 msgstr "例"
676
677 #. type: Plain text
678 #: build/C/man7/inotify.7:373
679 msgid ""
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."
683 msgstr ""
684
685 #. type: TP
686 #: build/C/man7/inotify.7:374
687 #, no-wrap
688 msgid "fd = open(\"dir/myfile\", O_RDWR);"
689 msgstr "fd = open(\"dir/myfile\", O_RDWR);"
690
691 #. type: Plain text
692 #: build/C/man7/inotify.7:382
693 msgid "Generates B<IN_OPEN> events for both I<dir> and I<dir/myfile>."
694 msgstr ""
695 "I<dir> と I<dir/myfile> の両方に対して B<IN_OPEN> イベントが生成される。"
696
697 #. type: TP
698 #: build/C/man7/inotify.7:382
699 #, no-wrap
700 msgid "read(fd, buf, count);"
701 msgstr "read(fd, buf, count);"
702
703 #. type: Plain text
704 #: build/C/man7/inotify.7:390
705 msgid "Generates B<IN_ACCESS> events for both I<dir> and I<dir/myfile>."
706 msgstr ""
707 "I<dir> と I<dir/myfile> の両方に対して B<IN_ACCESS> イベントが生成される"
708
709 #. type: TP
710 #: build/C/man7/inotify.7:390
711 #, no-wrap
712 msgid "write(fd, buf, count);"
713 msgstr "write(fd, buf, count);"
714
715 #. type: Plain text
716 #: build/C/man7/inotify.7:398
717 msgid "Generates B<IN_MODIFY> events for both I<dir> and I<dir/myfile>."
718 msgstr ""
719 "I<dir> と I<dir/myfile> の両方に対して B<IN_MODIFY> イベントが生成される"
720
721 #. type: TP
722 #: build/C/man7/inotify.7:398
723 #, no-wrap
724 msgid "fchmod(fd, mode);"
725 msgstr "fchmod(fd, mode);"
726
727 #. type: Plain text
728 #: build/C/man7/inotify.7:406
729 msgid "Generates B<IN_ATTRIB> events for both I<dir> and I<dir/myfile>."
730 msgstr ""
731 "I<dir> と I<dir/myfile> の両方に対して B<IN_ATTRIB> イベントが生成される"
732
733 #. type: TP
734 #: build/C/man7/inotify.7:406
735 #, no-wrap
736 msgid "close(fd);"
737 msgstr "close(fd);"
738
739 #. type: Plain text
740 #: build/C/man7/inotify.7:414
741 msgid "Generates B<IN_CLOSE_WRITE> events for both I<dir> and I<dir/myfile>."
742 msgstr ""
743 "I<dir> と I<dir/myfile> の両方に対して B<IN_CLOSE_WRITE> イベントが生成される"
744
745 #. type: Plain text
746 #: build/C/man7/inotify.7:423
747 msgid ""
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 "
750 "be generated."
751 msgstr ""
752
753 #. type: TP
754 #: build/C/man7/inotify.7:424
755 #, no-wrap
756 msgid "link(\"dir1/myfile\", \"dir2/new\");"
757 msgstr "link(\"dir1/myfile\", \"dir2/new\");"
758
759 #. type: Plain text
760 #: build/C/man7/inotify.7:434
761 msgid ""
762 "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event for "
763 "I<dir2>."
764 msgstr ""
765 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
766 "B<IN_CREATE> イベントが生成される。"
767
768 #. type: TP
769 #: build/C/man7/inotify.7:434
770 #, no-wrap
771 msgid "rename(\"dir1/myfile\", \"dir2/myfile\");"
772 msgstr "rename(\"dir1/myfile\", \"dir2/myfile\");"
773
774 #. type: Plain text
775 #: build/C/man7/inotify.7:455
776 msgid ""
777 "Generates an B<IN_MOVED_FROM> event for I<dir1>, an B<IN_MOVED_TO> event for "
778 "I<dir2>, and an B<IN_MOVE_SELF> event for I<myfile>.  The B<IN_MOVED_FROM> "
779 "and B<IN_MOVED_TO> events will have the same I<cookie> value."
780 msgstr ""
781 "I<dir1> に対してイベント B<IN_MOVED_FROM> が、 I<dir2> に対してイベント "
782 "B<IN_MOVED_TO> が、 I<myfile> に対してイベント B<IN_MOVE_SELF> が生成される。"
783 "この際 イベント B<IN_MOVED_FROM> と B<IN_MOVED_TO> は同じ I<cookie> 値を持"
784 "つ。"
785
786 #. type: Plain text
787 #: build/C/man7/inotify.7:469
788 msgid ""
789 "Suppose that I<dir1/xx> and I<dir2/yy> are (the only) links to the same "
790 "file, and an application is watching I<dir1>, I<dir2>, I<dir1/xx>, and "
791 "I<dir2/yy>.  Executing the following calls in the order given below will "
792 "generate the following events:"
793 msgstr ""
794
795 #. type: TP
796 #: build/C/man7/inotify.7:470
797 #, no-wrap
798 msgid "unlink(\"dir2/yy\");"
799 msgstr "unlink(\"dir2/yy\");"
800
801 #. type: Plain text
802 #: build/C/man7/inotify.7:481
803 #, fuzzy
804 #| msgid ""
805 #| "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event "
806 #| "for I<dir2>."
807 msgid ""
808 "Generates an B<IN_ATTRIB> event for I<xx> (because its link count changes)  "
809 "and an B<IN_DELETE> event for I<dir2>."
810 msgstr ""
811 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
812 "B<IN_CREATE> イベントが生成される。"
813
814 #. type: TP
815 #: build/C/man7/inotify.7:481
816 #, no-wrap
817 msgid "unlink(\"dir1/xx\");"
818 msgstr "unlink(\"dir1/xx\");"
819
820 #. type: Plain text
821 #: build/C/man7/inotify.7:494
822 #, fuzzy
823 #| msgid ""
824 #| "Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event "
825 #| "for I<dir2>."
826 msgid ""
827 "Generates B<IN_ATTRIB>, B<IN_DELETE_SELF>, and B<IN_IGNORED> events for "
828 "I<xx>, and an B<IN_DELETE> event for I<dir1>."
829 msgstr ""
830 "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して "
831 "B<IN_CREATE> イベントが生成される。"
832
833 #. type: Plain text
834 #: build/C/man7/inotify.7:501
835 msgid ""
836 "Suppose an application is watching the directory I<dir> and (the empty) "
837 "directory I<dir/subdir>.  The following examples show some events that may "
838 "be generated."
839 msgstr ""
840
841 #. type: TP
842 #: build/C/man7/inotify.7:502
843 #, no-wrap
844 msgid "mkdir(\"dir/new\", mode);"
845 msgstr "mkdir(\"dir/new\", mode);"
846
847 #. type: Plain text
848 #: build/C/man7/inotify.7:508
849 msgid "Generates an B<IN_CREATE | IN_ISDIR> event for I<dir>."
850 msgstr ""
851
852 #. type: TP
853 #: build/C/man7/inotify.7:508
854 #, no-wrap
855 msgid "rmdir(\"dir/subdir\");"
856 msgstr "rmdir(\"dir/subdir\");"
857
858 #. type: Plain text
859 #: build/C/man7/inotify.7:520
860 msgid ""
861 "Generates B<IN_DELETE_SELF> and B<IN_IGNORED> events for I<subdir>, and an "
862 "B<IN_DELETE | IN_ISDIR> event for I<dir>."
863 msgstr ""
864
865 #. type: SS
866 #: build/C/man7/inotify.7:521
867 #, no-wrap
868 msgid "/proc interfaces"
869 msgstr "/proc インターフェース"
870
871 #. type: Plain text
872 #: build/C/man7/inotify.7:524
873 msgid ""
874 "The following interfaces can be used to limit the amount of kernel memory "
875 "consumed by inotify:"
876 msgstr ""
877 "以下のインターフェースは、inotify で消費される カーネルメモリの総量を制限する"
878 "のに使用できる:"
879
880 #. type: TP
881 #: build/C/man7/inotify.7:524
882 #, no-wrap
883 msgid "I</proc/sys/fs/inotify/max_queued_events>"
884 msgstr "I</proc/sys/fs/inotify/max_queued_events>"
885
886 #. type: Plain text
887 #: build/C/man7/inotify.7:533
888 msgid ""
889 "The value in this file is used when an application calls B<inotify_init>(2)  "
890 "to set an upper limit on the number of events that can be queued to the "
891 "corresponding inotify instance.  Events in excess of this limit are dropped, "
892 "but an B<IN_Q_OVERFLOW> event is always generated."
893 msgstr ""
894 "このファイルの値は、アプリケーションが B<inotify_init>(2)  を呼び出すときに使"
895 "用され、対応する inotify インスタンスについて キューに入れられるイベントの数"
896 "の上限を設定する。 この制限を超えたイベントは破棄されるが、 B<IN_Q_OVERFLOW> "
897 "イベントが常に生成される。"
898
899 #. type: TP
900 #: build/C/man7/inotify.7:533
901 #, no-wrap
902 msgid "I</proc/sys/fs/inotify/max_user_instances>"
903 msgstr "I</proc/sys/fs/inotify/max_user_instances>"
904
905 #. type: Plain text
906 #: build/C/man7/inotify.7:537
907 msgid ""
908 "This specifies an upper limit on the number of inotify instances that can be "
909 "created per real user ID."
910 msgstr ""
911 "1 つの実ユーザ ID に対して生成できる inotify インスタンスの数の上限を指定す"
912 "る。"
913
914 #. type: TP
915 #: build/C/man7/inotify.7:537
916 #, no-wrap
917 msgid "I</proc/sys/fs/inotify/max_user_watches>"
918 msgstr "I</proc/sys/fs/inotify/max_user_watches>"
919
920 #. type: Plain text
921 #: build/C/man7/inotify.7:541
922 msgid ""
923 "This specifies an upper limit on the number of watches that can be created "
924 "per real user ID."
925 msgstr "作成可能な監視対象の数の実 UID 単位の上限を指定する。"
926
927 #. type: SH
928 #: build/C/man7/inotify.7:541 build/C/man2/inotify_add_watch.2:118
929 #: build/C/man2/inotify_init.2:94 build/C/man2/inotify_rm_watch.2:67
930 #, no-wrap
931 msgid "VERSIONS"
932 msgstr "バージョン"
933
934 #. type: Plain text
935 #: build/C/man7/inotify.7:549
936 msgid ""
937 "Inotify was merged into the 2.6.13 Linux kernel.  The required library "
938 "interfaces were added to glibc in version 2.4.  (B<IN_DONT_FOLLOW>, "
939 "B<IN_MASK_ADD>, and B<IN_ONLYDIR> were added in glibc version 2.5.)"
940 msgstr ""
941 "inotify は 2.6.13 の Linux カーネルに組込まれた。 これに必要なライブラリのイ"
942 "ンターフェースは、 glibc のバージョン 2.4 に追加された (B<IN_DONT_FOLLOW>, "
943 "B<IN_MASK_ADD>, B<IN_ONLYDIR> は glibc バージョン 2.5 で追加された)。"
944
945 #. type: SH
946 #: build/C/man7/inotify.7:549 build/C/man2/inotify_add_watch.2:120
947 #: build/C/man2/inotify_init.2:101 build/C/man2/inotify_rm_watch.2:69
948 #, no-wrap
949 msgid "CONFORMING TO"
950 msgstr "準拠"
951
952 #. type: Plain text
953 #: build/C/man7/inotify.7:551
954 msgid "The inotify API is Linux-specific."
955 msgstr "inotify API は Linux 独自のものである。"
956
957 #. type: SH
958 #: build/C/man7/inotify.7:551
959 #, no-wrap
960 msgid "NOTES"
961 msgstr "注意"
962
963 #. type: Plain text
964 #: build/C/man7/inotify.7:558
965 msgid ""
966 "Inotify file descriptors can be monitored using B<select>(2), B<poll>(2), "
967 "and B<epoll>(7).  When an event is available, the file descriptor indicates "
968 "as readable."
969 msgstr ""
970 "inotify ファイルディスクリプタは B<select>(2), B<poll>(2), B<epoll>(7)  を"
971 "使って監視できる。 イベントがある場合、ファイルディスクリプタは読み込み可能と"
972 "通知する。"
973
974 #. type: Plain text
975 #: build/C/man7/inotify.7:587
976 msgid ""
977 "Since Linux 2.6.25, signal-driven I/O notification is available for inotify "
978 "file descriptors; see the discussion of B<F_SETFL> (for setting the "
979 "B<O_ASYNC> flag), B<F_SETOWN>, and B<F_SETSIG> in B<fcntl>(2).  The "
980 "I<siginfo_t> structure (described in B<sigaction>(2))  that is passed to the "
981 "signal handler has the following fields set: I<si_fd> is set to the inotify "
982 "file descriptor number; I<si_signo> is set to the signal number; I<si_code> "
983 "is set to B<POLL_IN>; and B<POLLIN> is set in I<si_band>."
984 msgstr ""
985 "Linux 2.6.25 以降では、シグナル駆動 (signal-driven) I/O の通知が inotify ファ"
986 "イルディスクリプタについて利用可能である。 B<fcntl>(2)  に書かれている "
987 "(B<O_ASYNC> フラグを設定するための)  B<F_SETFL>, B<F_SETOWN>, B<F_SETSIG> の"
988 "議論を参照のこと。 シグナルハンドラに渡される I<siginfo_t> 構造体は、以下の"
989 "フィールドが設定される (I<siginfo_t> は B<sigaction>(2)  で説明されている)。 "
990 "I<si_fd> には inotify ファイルディスクリプタ番号が、 I<si_signo> にはシグナル"
991 "番号が、 I<si_code> には B<POLL_IN> が、 I<si_band> には B<POLLIN> が設定され"
992 "る。"
993
994 #. type: Plain text
995 #: build/C/man7/inotify.7:600
996 msgid ""
997 "If successive output inotify events produced on the inotify file descriptor "
998 "are identical (same I<wd>, I<mask>, I<cookie>, and I<name>), then they are "
999 "coalesced into a single event if the older event has not yet been read (but "
1000 "see BUGS).  This reduces the amount of kernel memory required for the event "
1001 "queue, but also means that an application can't use inotify to reliably "
1002 "count file events."
1003 msgstr ""
1004 "inotify ファイルディスクリプタに対して 連続して生成される出力 inotify イベン"
1005 "トが同一の場合 (I<wd>, I<mask>, I<cookie>, I<name> が等しい場合)、 前のイベン"
1006 "トがまだ読み込まれていなければ、 連続するイベントが 1 つのイベントにまとめら"
1007 "れる (ただし「バグ」の節も参照のこと)。 これによりイベントキューに必要なカー"
1008 "ネルメモリ量が減るが、 これはまたアプリケーションがファイルイベント数を信頼性"
1009 "を持って数えるのに inotify を使用できないということでもある。"
1010
1011 #. type: Plain text
1012 #: build/C/man7/inotify.7:606
1013 msgid ""
1014 "The events returned by reading from an inotify file descriptor form an "
1015 "ordered queue.  Thus, for example, it is guaranteed that when renaming from "
1016 "one directory to another, events will be produced in the correct order on "
1017 "the inotify file descriptor."
1018 msgstr ""
1019 "inotify ファイルディスクリプタの読み込みで返されるイベントは、 順序付けられた"
1020 "キューになる。 従って、たとえば、あるディレクトリの名前を別の名前に変更した場"
1021 "合、 inotify ファイルディスクリプタについての正しい順番で イベントが生成され"
1022 "ることが保証される。"
1023
1024 #. type: Plain text
1025 #: build/C/man7/inotify.7:612
1026 msgid ""
1027 "The B<FIONREAD> B<ioctl>(2)  returns the number of bytes available to read "
1028 "from an inotify file descriptor."
1029 msgstr ""
1030 "B<FIONREAD> B<ioctl>(2)  は inotify ファイルディスクリプタから何バイト読み込"
1031 "めるかを返す。"
1032
1033 #. type: SS
1034 #: build/C/man7/inotify.7:612
1035 #, no-wrap
1036 msgid "Limitations and caveats"
1037 msgstr "制限と警告"
1038
1039 #. type: Plain text
1040 #: build/C/man7/inotify.7:619
1041 msgid ""
1042 "The inotify API provides no information about the user or process that "
1043 "triggered the inotify event.  In particular, there is no easy way for a "
1044 "process that is monitoring events via inotify to distinguish events that it "
1045 "triggers itself from those that are triggered by other processes."
1046 msgstr ""
1047 "inotify API では、inotify イベントが発生するきっかけとなったユーザやプロセス"
1048 "に関する情報は提供されない。とりわけ、inotify 経由でイベントを監視しているプ"
1049 "ロセスが、自分自身がきっかけとなったイベントと他のプロセスがきっかけとなった"
1050 "イベントを区別する簡単な手段はない。"
1051
1052 #. type: Plain text
1053 #: build/C/man7/inotify.7:632
1054 msgid ""
1055 "Inotify reports only events that a user-space program triggers through the "
1056 "filesystem API.  As a result, it does not catch remote events that occur on "
1057 "network filesystems.  (Applications must fall back to polling the filesystem "
1058 "to catch such events.)  Furthermore, various pseudo-filesystems such as I</"
1059 "proc>, I</sys>, and I</dev/pts> are not monitorable with inotify."
1060 msgstr ""
1061
1062 #. type: Plain text
1063 #: build/C/man7/inotify.7:638
1064 msgid ""
1065 "The inotify API does not report file accesses and modifications that may "
1066 "occur because of B<mmap>(2)  and B<msync>(2)."
1067 msgstr ""
1068
1069 #. type: Plain text
1070 #: build/C/man7/inotify.7:642
1071 msgid ""
1072 "The inotify API identifies affected files by filename.  However, by the time "
1073 "an application processes an inotify event, the filename may already have "
1074 "been deleted or renamed."
1075 msgstr ""
1076 "inotify API では影響が受けるファイルをファイル名で特定する。\n"
1077 "しかしながら、アプリケーションが inotify イベントを処理する時点では、\n"
1078 "そのファイル名がすでに削除されたり変更されたりしている可能性がある。"
1079
1080 #. type: Plain text
1081 #: build/C/man7/inotify.7:647
1082 msgid ""
1083 "The inotify API identifies events via watch descriptors.  It is the "
1084 "application's responsibility to cache a mapping (if one is needed) between "
1085 "watch descriptors and pathnames.  Be aware that directory renamings may "
1086 "affect multiple cached pathnames."
1087 msgstr ""
1088
1089 #. type: Plain text
1090 #: build/C/man7/inotify.7:652
1091 msgid ""
1092 "Inotify monitoring of directories is not recursive: to monitor "
1093 "subdirectories under a directory, additional watches must be created.  This "
1094 "can take a significant amount time for large directory trees."
1095 msgstr ""
1096 "inotify によるディレクトリの監視は再帰的に行われない: あるディレクトリ以下"
1097 "の\n"
1098 "サブディレクトリを監視する場合、 監視対象を追加で作成しなければならない。\n"
1099 "大きなディレクトリツリーの場合には、この作業にかなり時間がかかることがある。"
1100
1101 #. type: Plain text
1102 #: build/C/man7/inotify.7:661
1103 msgid ""
1104 "If monitoring an entire directory subtree, and a new subdirectory is created "
1105 "in that tree or an existing directory is renamed into that tree, be aware "
1106 "that by the time you create a watch for the new subdirectory, new files (and "
1107 "subdirectories) may already exist inside the subdirectory.  Therefore, you "
1108 "may want to scan the contents of the subdirectory immediately after adding "
1109 "the watch (and, if desired, recursively add watches for any subdirectories "
1110 "that it contains)."
1111 msgstr ""
1112 "ディレクトリツリー全体を監視していて、 そのツリー内に新しいサブディレクトリが"
1113 "作成されるか、 既存のディレクトリが名前が変更されそのツリー内に移動した場"
1114 "合、 新しいサブディレクトリに対する watch を作成するまでに、 新しいファイル "
1115 "(やサブディレクトリ) がそのサブディレクトリ内にすでに作成されている場合がある"
1116 "点に注意すること。 したがって、watch を追加した直後にサブディレクトリの内容を"
1117 "スキャンしたいと思う場合もあるだろう (必要ならそのサブディレクトリ内のサブ"
1118 "ディレクトリに対する watch も再帰的に追加することもあるだろう)。"
1119
1120 #. type: Plain text
1121 #: build/C/man7/inotify.7:673
1122 msgid ""
1123 "Note that the event queue can overflow.  In this case, events are lost.  "
1124 "Robust applications should handle the possibility of lost events "
1125 "gracefully.  For example, it may be necessary to rebuild part or all of the "
1126 "application cache.  (One simple, but possibly expensive, approach is to "
1127 "close the inotify file descriptor, empty the cache, create a new inotify "
1128 "file descriptor, and then re-create watches and cache entries for the "
1129 "objects to be monitored.)"
1130 msgstr ""
1131
1132 #. type: SS
1133 #: build/C/man7/inotify.7:673
1134 #, no-wrap
1135 msgid "Dealing with rename() events"
1136 msgstr "rename() イベントの取り扱い"
1137
1138 #. type: Plain text
1139 #: build/C/man7/inotify.7:682
1140 msgid ""
1141 "As noted above, the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair that is "
1142 "generated by B<rename>(2)  can be matched up via their shared cookie value.  "
1143 "However, the task of matching has some challenges."
1144 msgstr ""
1145
1146 #. type: Plain text
1147 #: build/C/man7/inotify.7:693
1148 msgid ""
1149 "These two events are usually consecutive in the event stream available when "
1150 "reading from the inotify file descriptor.  However, this is not guaranteed.  "
1151 "If multiple processes are triggering events for monitored objects, then (on "
1152 "rare occasions) an arbitrary number of other events may appear between the "
1153 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events."
1154 msgstr ""
1155
1156 #. type: Plain text
1157 #: build/C/man7/inotify.7:718
1158 msgid ""
1159 "Matching up the B<IN_MOVED_FROM> and B<IN_MOVED_TO> event pair generated by "
1160 "B<rename>(2)  is thus inherently racy.  (Don't forget that if an object is "
1161 "renamed outside of a monitored directory, there may not even be an "
1162 "B<IN_MOVED_TO> event.)  Heuristic approaches (e.g., assume the events are "
1163 "always consecutive)  can be used to ensure a match in most cases, but will "
1164 "inevitably miss some cases, causing the application to perceive the "
1165 "B<IN_MOVED_FROM> and B<IN_MOVED_TO> events as being unrelated.  If watch "
1166 "descriptors are destroyed and re-created as a result, then those watch "
1167 "descriptors will be inconsistent with the watch descriptors in any pending "
1168 "events.  (Re-creating the inotify file descriptor and rebuilding the cache "
1169 "may be useful to deal with this scenario.)"
1170 msgstr ""
1171
1172 #. type: Plain text
1173 #: build/C/man7/inotify.7:728
1174 msgid ""
1175 "Applications should also allow for the possibility that the B<IN_MOVED_FROM> "
1176 "event was the last event that could fit in the buffer returned by the "
1177 "current call to B<read>(2), and the accompanying B<IN_MOVED_TO> event might "
1178 "be fetched only on the next B<read>(2)."
1179 msgstr ""
1180
1181 #. type: SH
1182 #: build/C/man7/inotify.7:728
1183 #, no-wrap
1184 msgid "BUGS"
1185 msgstr "バグ"
1186
1187 #.  FIXME kernel commit 611da04f7a31b2208e838be55a42c7a1310ae321
1188 #.  implies that unmount events were buggy 2.6.11 to 2.6.36
1189 #. type: Plain text
1190 #: build/C/man7/inotify.7:736
1191 msgid "In kernels before 2.6.16, the B<IN_ONESHOT> I<mask> flag does not work."
1192 msgstr "2.6.16 以前のカーネルでは B<IN_ONESHOT> I<mask> フラグが働かない。"
1193
1194 #. type: Plain text
1195 #: build/C/man7/inotify.7:746
1196 msgid ""
1197 "As originally designed and implemented, the B<IN_ONESHOT> flag did not cause "
1198 "an B<IN_IGNORED> event to be generated when the watch was dropped after one "
1199 "event.  However, as an unintended effect of other changes, since Linux "
1200 "2.6.36, an B<IN_IGNORED> event is generated in this case."
1201 msgstr ""
1202
1203 #.  commit 1c17d18e3775485bf1e0ce79575eb637a94494a2
1204 #. type: Plain text
1205 #: build/C/man7/inotify.7:755
1206 msgid ""
1207 "Before kernel 2.6.25, the kernel code that was intended to coalesce "
1208 "successive identical events (i.e., the two most recent events could "
1209 "potentially be coalesced if the older had not yet been read)  instead "
1210 "checked if the most recent event could be coalesced with the I<oldest> "
1211 "unread event."
1212 msgstr ""
1213 "カーネル 2.6.25 より前では、 連続する同一のイベントを一つにまとめることを意図"
1214 "したコード (古い方のイベントがまだ読み込まれていない場合に、 最新の 2 つのイ"
1215 "ベントを一つにまとめられる可能性がある) が、 最新のイベントが「最も古い」読み"
1216 "込まれていないイベントとまとめられるか をチェックするようになっていた。"
1217
1218 #. type: SH
1219 #: build/C/man7/inotify.7:755 build/C/man2/inotify_add_watch.2:122
1220 #: build/C/man2/inotify_init.2:103 build/C/man2/inotify_rm_watch.2:71
1221 #, no-wrap
1222 msgid "SEE ALSO"
1223 msgstr "関連項目"
1224
1225 #. type: Plain text
1226 #: build/C/man7/inotify.7:764
1227 msgid ""
1228 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1229 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1230 "B<stat>(2)"
1231 msgstr ""
1232 "B<inotifywait>(1), B<inotifywatch>(1), B<inotify_add_watch>(2), "
1233 "B<inotify_init>(2), B<inotify_init1>(2), B<inotify_rm_watch>(2), B<read>(2), "
1234 "B<stat>(2)"
1235
1236 #. type: Plain text
1237 #: build/C/man7/inotify.7:767
1238 msgid ""
1239 "I<Documentation/filesystems/inotify.txt> in the Linux kernel source tree"
1240 msgstr "Linux カーネルソース内の I<Documentation/filesystems/inotify.txt>"
1241
1242 #. type: SH
1243 #: build/C/man7/inotify.7:767 build/C/man2/inotify_add_watch.2:126
1244 #: build/C/man2/inotify_init.2:107 build/C/man2/inotify_rm_watch.2:75
1245 #, no-wrap
1246 msgid "COLOPHON"
1247 msgstr "この文書について"
1248
1249 #. type: Plain text
1250 #: build/C/man7/inotify.7:774 build/C/man2/inotify_add_watch.2:133
1251 #: build/C/man2/inotify_init.2:114 build/C/man2/inotify_rm_watch.2:82
1252 msgid ""
1253 "This page is part of release 3.65 of the Linux I<man-pages> project.  A "
1254 "description of the project, and information about reporting bugs, can be "
1255 "found at \\%http://www.kernel.org/doc/man-pages/."
1256 msgstr ""
1257 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.65 の一部\n"
1258 "である。プロジェクトの説明とバグ報告に関する情報は\n"
1259 "http://www.kernel.org/doc/man-pages/ に書かれている。"
1260
1261 #. type: TH
1262 #: build/C/man2/inotify_add_watch.2:28
1263 #, no-wrap
1264 msgid "INOTIFY_ADD_WATCH"
1265 msgstr "INOTIFY_ADD_WATCH"
1266
1267 #. type: TH
1268 #: build/C/man2/inotify_add_watch.2:28 build/C/man2/inotify_init.2:29
1269 #, no-wrap
1270 msgid "2014-03-28"
1271 msgstr "2014-03-28"
1272
1273 #. type: Plain text
1274 #: build/C/man2/inotify_add_watch.2:31
1275 msgid "inotify_add_watch - add a watch to an initialized inotify instance"
1276 msgstr ""
1277 "inotify_add_watch - 初期化済み inotify インスタンスに監視対象を追加する"
1278
1279 #. type: SH
1280 #: build/C/man2/inotify_add_watch.2:31 build/C/man2/inotify_init.2:32
1281 #: build/C/man2/inotify_rm_watch.2:30
1282 #, no-wrap
1283 msgid "SYNOPSIS"
1284 msgstr "書式"
1285
1286 #. type: Plain text
1287 #: build/C/man2/inotify_add_watch.2:33 build/C/man2/inotify_rm_watch.2:32
1288 msgid "B<#include E<lt>sys/inotify.hE<gt>>"
1289 msgstr "B<#include E<lt>sys/inotify.hE<gt>>"
1290
1291 #. type: Plain text
1292 #: build/C/man2/inotify_add_watch.2:35
1293 msgid ""
1294 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1295 ">I<mask>B<);>"
1296 msgstr ""
1297 "B<int inotify_add_watch(int >I<fd>B<, const char *>I<pathname>B<, uint32_t "
1298 ">I<mask>B<);>"
1299
1300 #. type: Plain text
1301 #: build/C/man2/inotify_add_watch.2:54
1302 msgid ""
1303 "B<inotify_add_watch>()  adds a new watch, or modifies an existing watch, for "
1304 "the file whose location is specified in I<pathname>; the caller must have "
1305 "read permission for this file.  The I<fd> argument is a file descriptor "
1306 "referring to the inotify instance whose watch list is to be modified.  The "
1307 "events to be monitored for I<pathname> are specified in the I<mask> bit-mask "
1308 "argument.  See B<inotify>(7)  for a description of the bits that can be set "
1309 "in I<mask>."
1310 msgstr ""
1311 "B<inotify_add_watch>()  は、 I<pathname> で指定された位置にあるファイルを監視"
1312 "する監視アイテム (watch) の新規追加、 または既存の監視アイテムの変更を行う。 "
1313 "呼び出し元は、監視対象のファイルに対する読み出し許可を 持っていなければならな"
1314 "い。 I<fd> 引き数は、変更を行う監視対象リスト (watch list) を持つ inotify イ"
1315 "ンスタンスを参照するファイルディスクリプタである。 I<pathname> のどのイベント"
1316 "を監視するかは、引き数のビットマスク I<mask> で指定する。 I<mask> に設定でき"
1317 "るビットの説明については B<inotify>(7)  を参照のこと。"
1318
1319 #. type: Plain text
1320 #: build/C/man2/inotify_add_watch.2:68
1321 msgid ""
1322 "A successful call to B<inotify_add_watch>()  returns the unique watch "
1323 "descriptor associated with I<pathname> for this inotify instance.  If "
1324 "I<pathname> was not previously being watched by this inotify instance, then "
1325 "the watch descriptor is newly allocated.  If I<pathname> was already being "
1326 "watched, then the descriptor for the existing watch is returned."
1327 msgstr ""
1328 "B<inotify_add_watch>()  の呼び出しが成功すると、変更対象の inotify インスタン"
1329 "スで I<pathname> に対応付けられる一意な監視対象ディスクリプタ (watch "
1330 "descriptor) を返す。 I<pathname> がその inotify インスタンスに追加されていな"
1331 "ければ、 監視対象ディスクリプタが新規に割り当てられる。 I<pathname> がすでに"
1332 "監視対象になっていれば、既存の監視アイテムに対する ディスクリプタが返される。"
1333
1334 #. type: Plain text
1335 #: build/C/man2/inotify_add_watch.2:79
1336 msgid ""
1337 "The watch descriptor is returned by later B<read>(2)s from the inotify file "
1338 "descriptor.  These reads fetch I<inotify_event> structures (see B<inotify>"
1339 "(7))  indicating filesystem events; the watch descriptor inside this "
1340 "structure identifies the object for which the event occurred."
1341 msgstr ""
1342 "これ以降に inotify ファイルディスクリプタから B<read>(2)  を行うと、監視対象"
1343 "ディスクリプタが返される。 これらの B<read>()  を行うと、ファイルシステムイベ"
1344 "ントを示す I<inotify_event> 構造体が読み出される (B<inotify>(7)  参照)。この"
1345 "構造体内の監視対象ディスクリプタにより、 どのオブジェクトでそのイベントが発生"
1346 "したかを特定できる。"
1347
1348 #. type: SH
1349 #: build/C/man2/inotify_add_watch.2:79 build/C/man2/inotify_init.2:74
1350 #: build/C/man2/inotify_rm_watch.2:48
1351 #, no-wrap
1352 msgid "RETURN VALUE"
1353 msgstr "返り値"
1354
1355 #. type: Plain text
1356 #: build/C/man2/inotify_add_watch.2:86
1357 msgid ""
1358 "On success, B<inotify_add_watch>()  returns a nonnegative watch descriptor.  "
1359 "On error, -1 is returned and I<errno> is set appropriately."
1360 msgstr ""
1361 "成功すると、 B<inotify_add_watch>()  は非負の監視対象ディスクリプタを返す。 "
1362 "エラーの場合、-1 を返し、 I<errno> を適切に設定する。"
1363
1364 #. type: SH
1365 #: build/C/man2/inotify_add_watch.2:86 build/C/man2/inotify_init.2:79
1366 #: build/C/man2/inotify_rm_watch.2:55
1367 #, no-wrap
1368 msgid "ERRORS"
1369 msgstr "エラー"
1370
1371 #. type: TP
1372 #: build/C/man2/inotify_add_watch.2:87
1373 #, no-wrap
1374 msgid "B<EACCES>"
1375 msgstr "B<EACCES>"
1376
1377 #. type: Plain text
1378 #: build/C/man2/inotify_add_watch.2:90
1379 msgid "Read access to the given file is not permitted."
1380 msgstr "指定されたファイルに対する読み出しアクセスが許可されていない。"
1381
1382 #. type: TP
1383 #: build/C/man2/inotify_add_watch.2:90 build/C/man2/inotify_rm_watch.2:56
1384 #, no-wrap
1385 msgid "B<EBADF>"
1386 msgstr "B<EBADF>"
1387
1388 #. type: Plain text
1389 #: build/C/man2/inotify_add_watch.2:93
1390 msgid "The given file descriptor is not valid."
1391 msgstr "指定されたファイルディスクリプタが有効ではない。"
1392
1393 #. type: TP
1394 #: build/C/man2/inotify_add_watch.2:93
1395 #, no-wrap
1396 msgid "B<EFAULT>"
1397 msgstr "B<EFAULT>"
1398
1399 #. type: Plain text
1400 #: build/C/man2/inotify_add_watch.2:97
1401 msgid "I<pathname> points outside of the process's accessible address space."
1402 msgstr ""
1403 "I<pathname> が指すアドレスがプロセスがアクセスできるアドレス空間外である。"
1404
1405 #. type: TP
1406 #: build/C/man2/inotify_add_watch.2:97 build/C/man2/inotify_init.2:80
1407 #: build/C/man2/inotify_rm_watch.2:60
1408 #, no-wrap
1409 msgid "B<EINVAL>"
1410 msgstr "B<EINVAL>"
1411
1412 #. type: Plain text
1413 #: build/C/man2/inotify_add_watch.2:102
1414 msgid ""
1415 "The given event mask contains no valid events; or I<fd> is not an inotify "
1416 "file descriptor."
1417 msgstr ""
1418 "指定されたイベントマスクに有効なイベントが含まれていない。 もしくは I<fd> が "
1419 "inotify ファイルディスクリプタではない。"
1420
1421 #. type: TP
1422 #: build/C/man2/inotify_add_watch.2:102
1423 #, no-wrap
1424 msgid "B<ENAMETOOLONG>"
1425 msgstr "B<ENAMETOOLONG>"
1426
1427 #. type: Plain text
1428 #: build/C/man2/inotify_add_watch.2:106
1429 msgid "I<pathname> is too long."
1430 msgstr "I<pathname> が長過ぎる。"
1431
1432 #. type: TP
1433 #: build/C/man2/inotify_add_watch.2:106
1434 #, no-wrap
1435 msgid "B<ENOENT>"
1436 msgstr "B<ENOENT>"
1437
1438 #. type: Plain text
1439 #: build/C/man2/inotify_add_watch.2:111
1440 msgid ""
1441 "A directory component in I<pathname> does not exist or is a dangling "
1442 "symbolic link."
1443 msgstr ""
1444 "I<pathname> のディレクトリ部分の構成要素が、存在しないか、\n"
1445 "リンク切れのシンボリックリンクである。"
1446
1447 #. type: TP
1448 #: build/C/man2/inotify_add_watch.2:111 build/C/man2/inotify_init.2:91
1449 #, no-wrap
1450 msgid "B<ENOMEM>"
1451 msgstr "B<ENOMEM>"
1452
1453 #. type: Plain text
1454 #: build/C/man2/inotify_add_watch.2:114
1455 msgid "Insufficient kernel memory was available."
1456 msgstr "カーネルメモリが十分になかった。"
1457
1458 #. type: TP
1459 #: build/C/man2/inotify_add_watch.2:114
1460 #, no-wrap
1461 msgid "B<ENOSPC>"
1462 msgstr "B<ENOSPC>"
1463
1464 #. type: Plain text
1465 #: build/C/man2/inotify_add_watch.2:118
1466 msgid ""
1467 "The user limit on the total number of inotify watches was reached or the "
1468 "kernel failed to allocate a needed resource."
1469 msgstr ""
1470 "inotify 監視対象の総数がユーザが追加できる上限に達していた。 もしくは、必要な"
1471 "資源の割り当てにカーネルが失敗した。"
1472
1473 #. type: Plain text
1474 #: build/C/man2/inotify_add_watch.2:120 build/C/man2/inotify_rm_watch.2:69
1475 msgid "Inotify was merged into the 2.6.13 Linux kernel."
1476 msgstr "inotify は Linux カーネル 2.6.13 に組み込まれた。"
1477
1478 #. type: Plain text
1479 #: build/C/man2/inotify_add_watch.2:122 build/C/man2/inotify_rm_watch.2:71
1480 msgid "This system call is Linux-specific."
1481 msgstr "このシステムコールは Linux 独自である。"
1482
1483 #. type: Plain text
1484 #: build/C/man2/inotify_add_watch.2:126
1485 msgid "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1486 msgstr "B<inotify_init>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1487
1488 #. type: TH
1489 #: build/C/man2/inotify_init.2:29
1490 #, no-wrap
1491 msgid "INOTIFY_INIT"
1492 msgstr "INOTIFY_INIT"
1493
1494 #. type: Plain text
1495 #: build/C/man2/inotify_init.2:32
1496 msgid "inotify_init, inotify_init1 - initialize an inotify instance"
1497 msgstr "inotify_init, inotify_init1 - inotify インスタンスを初期化する"
1498
1499 #. type: Plain text
1500 #: build/C/man2/inotify_init.2:35
1501 #, no-wrap
1502 msgid "B<#include E<lt>sys/inotify.hE<gt>>\n"
1503 msgstr "B<#include E<lt>sys/inotify.hE<gt>>\n"
1504
1505 #. type: Plain text
1506 #: build/C/man2/inotify_init.2:38
1507 #, no-wrap
1508 msgid ""
1509 "B<int inotify_init(void);>\n"
1510 "B<int inotify_init1(int >I<flags>B<);>\n"
1511 msgstr ""
1512 "B<int inotify_init(void);>\n"
1513 "B<int inotify_init1(int >I<flags>B<);>\n"
1514
1515 #. type: Plain text
1516 #: build/C/man2/inotify_init.2:42
1517 msgid "For an overview of the inotify API, see B<inotify>(7)."
1518 msgstr "inotify API の概要については B<inotify>(7) を参照。"
1519
1520 #. type: Plain text
1521 #: build/C/man2/inotify_init.2:46
1522 msgid ""
1523 "B<inotify_init>()  initializes a new inotify instance and returns a file "
1524 "descriptor associated with a new inotify event queue."
1525 msgstr ""
1526 "B<inotify_init>()  は、新規の inotify インスタンスを初期化し、作成された "
1527 "inotify イベントキュー に対応するファイルディスクリプタを返す。"
1528
1529 #. type: Plain text
1530 #: build/C/man2/inotify_init.2:56
1531 msgid ""
1532 "If I<flags> is 0, then B<inotify_init1>()  is the same as B<inotify_init>"
1533 "().  The following values can be bitwise ORed in I<flags> to obtain "
1534 "different behavior:"
1535 msgstr ""
1536 "B<inotify_init1>()  は、 I<flags> が 0 の場合、 B<inotify_init>()  と同じであ"
1537 "る。 I<flags> に以下の値をビット毎の論理和 (OR) で指定することで、 異なる動作"
1538 "をさせることができる。"
1539
1540 #. type: TP
1541 #: build/C/man2/inotify_init.2:56
1542 #, no-wrap
1543 msgid "B<IN_NONBLOCK>"
1544 msgstr "B<IN_NONBLOCK>"
1545
1546 #. type: Plain text
1547 #: build/C/man2/inotify_init.2:64
1548 msgid ""
1549 "Set the B<O_NONBLOCK> file status flag on the new open file description.  "
1550 "Using this flag saves extra calls to B<fcntl>(2)  to achieve the same result."
1551 msgstr ""
1552 "新しく生成されるオープンファイル記述 (open file description) の BR "
1553 "O_NONBLOCK ファイルステータスフラグをセットする。 このフラグを使うことで、 "
1554 "B<O_NONBLOCK> をセットするために B<fcntl>(2)  を追加で呼び出す必要がなくな"
1555 "る。"
1556
1557 #. type: TP
1558 #: build/C/man2/inotify_init.2:64
1559 #, no-wrap
1560 msgid "B<IN_CLOEXEC>"
1561 msgstr "B<IN_CLOEXEC>"
1562
1563 #. type: Plain text
1564 #: build/C/man2/inotify_init.2:74
1565 msgid ""
1566 "Set the close-on-exec (B<FD_CLOEXEC>)  flag on the new file descriptor.  See "
1567 "the description of the B<O_CLOEXEC> flag in B<open>(2)  for reasons why this "
1568 "may be useful."
1569 msgstr ""
1570 "新しいファイル・ディスクリプターに対して close-on-exec (B<FD_CLOEXEC>)  フラ"
1571 "グをセットする。 このフラグが役に立つ理由については、 B<open>(2)  の "
1572 "B<O_CLOEXEC> フラグの説明を参照のこと。"
1573
1574 #. type: Plain text
1575 #: build/C/man2/inotify_init.2:79
1576 msgid ""
1577 "On success, these system calls return a new file descriptor.  On error, -1 "
1578 "is returned, and I<errno> is set to indicate the error."
1579 msgstr ""
1580 "成功すると、これらのシステムコールは新しいファイルディスクリプタを返す。 エ"
1581 "ラーの場合、-1 を返し、 I<errno> をエラーを示す値に設定する。"
1582
1583 #. type: Plain text
1584 #: build/C/man2/inotify_init.2:85
1585 msgid "(B<inotify_init1>())  An invalid value was specified in I<flags>."
1586 msgstr "(B<inotify_init1>())  無効な値が I<flags> に指定された。"
1587
1588 #. type: TP
1589 #: build/C/man2/inotify_init.2:85
1590 #, no-wrap
1591 msgid "B<EMFILE>"
1592 msgstr "B<EMFILE>"
1593
1594 #. type: Plain text
1595 #: build/C/man2/inotify_init.2:88
1596 msgid ""
1597 "The user limit on the total number of inotify instances has been reached."
1598 msgstr "inotify インスタンスの総数がユーザ単位の上限に達していた。"
1599
1600 #. type: TP
1601 #: build/C/man2/inotify_init.2:88
1602 #, no-wrap
1603 msgid "B<ENFILE>"
1604 msgstr "B<ENFILE>"
1605
1606 #. type: Plain text
1607 #: build/C/man2/inotify_init.2:91
1608 msgid ""
1609 "The system limit on the total number of file descriptors has been reached."
1610 msgstr "inotify インスタンスの総数がシステムの上限に達していた。"
1611
1612 #. type: Plain text
1613 #: build/C/man2/inotify_init.2:94
1614 msgid "Insufficient kernel memory is available."
1615 msgstr "カーネルメモリが十分になかった。"
1616
1617 #. type: Plain text
1618 #: build/C/man2/inotify_init.2:101
1619 msgid ""
1620 "B<inotify_init>()  first appeared in Linux 2.6.13; library support was added "
1621 "to glibc in version 2.4.  B<inotify_init1>()  was added in Linux 2.6.27; "
1622 "library support was added to glibc in version 2.9."
1623 msgstr ""
1624 "B<inotify_init>()  は Linux 2.6.13 で初めて登場し、\n"
1625 "ライブラリによるサポートは glibc バージョン 2.4 で追加された。\n"
1626 "B<inotify_init1>()  は Linux 2.6.27 で追加され、\n"
1627 "ライブラリによるサポートは glibc バージョン 2.9 で追加された。"
1628
1629 #. type: Plain text
1630 #: build/C/man2/inotify_init.2:103
1631 msgid "These system calls are Linux-specific."
1632 msgstr "これらのシステムコールは Linux 独自である。"
1633
1634 #. type: Plain text
1635 #: build/C/man2/inotify_init.2:107
1636 msgid "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1637 msgstr "B<inotify_add_watch>(2), B<inotify_rm_watch>(2), B<inotify>(7)"
1638
1639 #. type: TH
1640 #: build/C/man2/inotify_rm_watch.2:27
1641 #, no-wrap
1642 msgid "INOTIFY_RM_WATCH"
1643 msgstr "INOTIFY_RM_WATCH"
1644
1645 #. type: TH
1646 #: build/C/man2/inotify_rm_watch.2:27
1647 #, no-wrap
1648 msgid "2010-10-15"
1649 msgstr "2010-10-15"
1650
1651 #. type: Plain text
1652 #: build/C/man2/inotify_rm_watch.2:30
1653 msgid "inotify_rm_watch - remove an existing watch from an inotify instance"
1654 msgstr ""
1655 "inotify_rm_watch - inotify インスタンスから既存の監視アイテムを削除する"
1656
1657 #.  Before glibc 2.10, the second argument was types as uint32_t.
1658 #.  http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
1659 #. type: Plain text
1660 #: build/C/man2/inotify_rm_watch.2:36
1661 msgid "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1662 msgstr "B<int inotify_rm_watch(int >I<fd>B<, int >I<wd>B<);>"
1663
1664 #. type: Plain text
1665 #: build/C/man2/inotify_rm_watch.2:42
1666 msgid ""
1667 "B<inotify_rm_watch>()  removes the watch associated with the watch "
1668 "descriptor I<wd> from the inotify instance associated with the file "
1669 "descriptor I<fd>."
1670 msgstr ""
1671 "B<inotify_rm_watch>()  は、監視対象ディスクリプタ (watch descriptor)  I<wd> "
1672 "に対応する監視アイテムを、 ファイルディスクリプタ I<fd> に対応する inotify イ"
1673 "ンスタンスから削除する。"
1674
1675 #. type: Plain text
1676 #: build/C/man2/inotify_rm_watch.2:48
1677 msgid ""
1678 "Removing a watch causes an B<IN_IGNORED> event to be generated for this "
1679 "watch descriptor.  (See B<inotify>(7).)"
1680 msgstr ""
1681 "監視対象を削除すると、 この監視対象ディスクリプタに対して B<IN_IGNORED> イベ"
1682 "ントが生成される (B<inotify>(7)  参照)。"
1683
1684 #. type: Plain text
1685 #: build/C/man2/inotify_rm_watch.2:55
1686 msgid ""
1687 "On success, B<inotify_rm_watch>()  returns zero.  On error, -1 is returned "
1688 "and I<errno> is set to indicate the cause of the error."
1689 msgstr ""
1690 "成功すると、B<inotify_rm_watch>() は 0 を返す。 エラーの場合、-1 を返し、 "
1691 "I<errno> をエラーの原因を示す値に設定する。"
1692
1693 #. type: Plain text
1694 #: build/C/man2/inotify_rm_watch.2:60
1695 msgid "I<fd> is not a valid file descriptor."
1696 msgstr "I<fd> が有効なファイルディスクリプタではない。"
1697
1698 #. type: Plain text
1699 #: build/C/man2/inotify_rm_watch.2:67
1700 msgid ""
1701 "The watch descriptor I<wd> is not valid; or I<fd> is not an inotify file "
1702 "descriptor."
1703 msgstr ""
1704 "監視対象ディスクリプタ I<wd> が有効でない。もしくは、 I<fd> が inotify ファイ"
1705 "ルディスクリプタではない。"
1706
1707 #. type: Plain text
1708 #: build/C/man2/inotify_rm_watch.2:75
1709 msgid "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1710 msgstr "B<inotify_add_watch>(2), B<inotify_init>(2), B<inotify>(7)"
1711
1712 #~ msgid "2013-09-16"
1713 #~ msgstr "2013-09-16"
1714
1715 #~ msgid ""
1716 #~ "The following system calls are used with this API: B<inotify_init>(2)  "
1717 #~ "(or B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>"
1718 #~ "(2), B<read>(2), and B<close>(2)."
1719 #~ msgstr ""
1720 #~ "以下のシステムコールがこの API と共に使用される: B<inotify_init>(2)  (や "
1721 #~ "B<inotify_init1>(2)), B<inotify_add_watch>(2), B<inotify_rm_watch>(2), "
1722 #~ "B<read>(2), B<close>(2)."
1723
1724 #~ msgid "File/directory created in watched directory (*)."
1725 #~ msgstr "監視対象ディレクトリ内でファイルやディレクトリが作成された。(*)"
1726
1727 #~ msgid "Watched file/directory was itself deleted."
1728 #~ msgstr "監視対象のディレクトリまたはファイル自身が削除された。"
1729
1730 #~ msgid "File was modified (*)."
1731 #~ msgstr "ファイルが修正された。(*)"
1732
1733 #~ msgid ""
1734 #~ "Two additional convenience macros are B<IN_MOVE>, which equates to "
1735 #~ "IN_MOVED_FROM|IN_MOVED_TO, and B<IN_CLOSE>, which equates to "
1736 #~ "IN_CLOSE_WRITE|IN_CLOSE_NOWRITE."
1737 #~ msgstr ""
1738 #~ "さらに 2 つの便利なマクロがある。\n"
1739 #~ "B<IN_MOVE> は IN_MOVED_FROM|IN_MOVED_TO と同じで、\n"
1740 #~ "B<IN_CLOSE> は IN_CLOSE_WRITE|IN_CLOSE_NOWRITE と同じである。"
1741
1742 #~ msgid "Filesystem containing watched object was unmounted."
1743 #~ msgstr "監視対象オブジェクトを含むファイルシステムがアンマウントされた。"
1744
1745 #~ msgid ""
1746 #~ "Note that the event queue can overflow.  In this case, events are lost.  "
1747 #~ "Robust applications should handle the possibility of lost events "
1748 #~ "gracefully."
1749 #~ msgstr ""
1750 #~ "イベントキューは溢れる場合があることに注意すること。この場合にはイベント"
1751 #~ "は\n"
1752 #~ "失われてしまう。堅牢性が必要なアプリケーションでは、イベントが失われる可能"
1753 #~ "性\n"
1754 #~ "を適切に扱う必要がある。"
1755
1756 #~ msgid ""
1757 #~ "On success, B<inotify_rm_watch>()  returns zero, or -1 if an error "
1758 #~ "occurred (in which case, I<errno> is set appropriately)."
1759 #~ msgstr ""
1760 #~ "成功すると、 B<inotify_rm_watch>()  は 0 を返す。 エラーの場合、-1 を返"
1761 #~ "し、 I<errno> を適切に設定する。"
1762
1763 #~ msgid "File moved out of watched directory (*)."
1764 #~ msgstr "ファイルが監視対象ディレクトリ外へ移動された。(*)"
1765
1766 #~ msgid "File moved into watched directory (*)."
1767 #~ msgstr "ファイルが監視対象ディレクトリ内へ移動された。(*)"
1768
1769 #~ msgid ""
1770 #~ "The inotify API provides no information about the user or process that "
1771 #~ "triggered the inotify event."
1772 #~ msgstr ""
1773 #~ "inotify API では inotify イベントのきっかけとなったユーザやプロセスに関す"
1774 #~ "る\n"
1775 #~ "情報が提供されない。"