+#: build/C/man7/inotify.7:365
+#, no-wrap
+msgid "Examples"
+msgstr "例"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:373
+msgid ""
+"Suppose an application is watching the directory I<dir> and the file I<dir/"
+"myfile> for all events. The examples below show some events that will be "
+"generated for these two objects."
+msgstr ""
+
+#. type: TP
+#: build/C/man7/inotify.7:374
+#, no-wrap
+msgid "fd = open(\"dir/myfile\", O_RDWR);"
+msgstr "fd = open(\"dir/myfile\", O_RDWR);"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:382
+msgid "Generates B<IN_OPEN> events for both I<dir> and I<dir/myfile>."
+msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_OPEN> イベントが生成される。"
+
+#. type: TP
+#: build/C/man7/inotify.7:382
+#, no-wrap
+msgid "read(fd, buf, count);"
+msgstr "read(fd, buf, count);"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:390
+msgid "Generates B<IN_ACCESS> events for both I<dir> and I<dir/myfile>."
+msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_ACCESS> イベントが生成される"
+
+#. type: TP
+#: build/C/man7/inotify.7:390
+#, no-wrap
+msgid "write(fd, buf, count);"
+msgstr "write(fd, buf, count);"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:398
+msgid "Generates B<IN_MODIFY> events for both I<dir> and I<dir/myfile>."
+msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_MODIFY> イベントが生成される"
+
+#. type: TP
+#: build/C/man7/inotify.7:398
+#, no-wrap
+msgid "fchmod(fd, mode);"
+msgstr "fchmod(fd, mode);"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:406
+msgid "Generates B<IN_ATTRIB> events for both I<dir> and I<dir/myfile>."
+msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_ATTRIB> イベントが生成される"
+
+#. type: TP
+#: build/C/man7/inotify.7:406
+#, no-wrap
+msgid "close(fd);"
+msgstr "close(fd);"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:414
+msgid "Generates B<IN_CLOSE_WRITE> events for both I<dir> and I<dir/myfile>."
+msgstr "I<dir> と I<dir/myfile> の両方に対して B<IN_CLOSE_WRITE> イベントが生成される"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:423
+msgid ""
+"Suppose an application is watching the directories I<dir1> and I<dir>, and "
+"the file I<dir1/myfile>. The following examples show some events that may "
+"be generated."
+msgstr ""
+
+#. type: TP
+#: build/C/man7/inotify.7:424
+#, no-wrap
+msgid "link(\"dir/myfile\", \"dir2/new\");"
+msgstr "link(\"dir/myfile\", \"dir2/new\");"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:434
+msgid ""
+"Generates an B<IN_ATTRIB> event for I<myfile> and an B<IN_CREATE> event for "
+"I<dir2>."
+msgstr "I<myfile> に対して B<IN_ATTRIB> イベントが生成され、 I<dir2> に対して B<IN_CREATE> イベントが生成される。"
+
+#. type: TP
+#: build/C/man7/inotify.7:434
+#, no-wrap
+msgid "rename(\"dir1/myfile\", \"dir2/myfile\");"
+msgstr "rename(\"dir1/myfile\", \"dir2/myfile\");"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:455
+msgid ""
+"Generates an B<IN_MOVED_FROM> event for I<dir1>, an B<IN_MOVED_TO> event for "
+"I<dir2>, and an B<IN_MOVE_SELF> event for I<myfile>. The B<IN_MOVED_FROM> "
+"and B<IN_MOVED_TO> events will have the same I<cookie> value."
+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> 値を持つ。"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:469
+msgid ""
+"Suppose that I<dir1/xx> and I<dir2/yy> are (the only) links to the same "
+"file, and an application is watching I<dir1>, I<dir2>, I<dir1/xx>, and "
+"I<dir2/yy>. Executing the following calls in the order given below will "
+"generate the following events:"
+msgstr ""
+
+#. type: TP
+#: build/C/man7/inotify.7:470
+#, no-wrap
+msgid "unlink(\"dir2/yy\");"
+msgstr "unlink(\"dir2/yy\");"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:481
+msgid ""
+"Generates B<IN_ATTRIB> event for I<xx> (because its link count changes) and "
+"an B<IN_DELETE> event for I<dir2>."
+msgstr ""
+
+#. type: TP
+#: build/C/man7/inotify.7:481
+#, no-wrap
+msgid "unlink(\"dir1/xx\");"
+msgstr "unlink(\"dir1/xx\");"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:494
+msgid ""
+"Generates B<IN_ATTRIB>, B<IN_DELETE_SELF>, and B<IN_IGNORED> events for "
+"I<xx>, and an B<IN_DELETE> for I<dir1>."
+msgstr ""
+
+#. type: Plain text
+#: build/C/man7/inotify.7:501
+msgid ""
+"Suppose an application is watching the directory I<dir> and (the empty) "
+"directory I<dir/subdir>. The following examples show some events that may "
+"be generated."
+msgstr ""
+
+#. type: TP
+#: build/C/man7/inotify.7:502
+#, no-wrap
+msgid "mkdir(\"dir/new\", mode);"
+msgstr "mkdir(\"dir/new\", mode);"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:508
+msgid "Generates an B<IN_CREATE | IN_ISDIR> event for I<dir>."
+msgstr ""
+
+#. type: TP
+#: build/C/man7/inotify.7:508
+#, no-wrap
+msgid "rmdir(\"dir/sub\");"
+msgstr "rmdir(\"dir/sub\");"
+
+#. type: Plain text
+#: build/C/man7/inotify.7:520
+msgid ""
+"Generates B<IN_DELETE_SELF> and B<IN_IGNORED> events for I<subdir>, and an "
+"B<IN_DELETE | IN_ISDIR> event for I<dir>."
+msgstr ""
+
+#. type: SS
+#: build/C/man7/inotify.7:521