]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
fanotify.7: ffix
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 15 Sep 2020 05:38:52 +0000 (07:38 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 15 Sep 2020 05:39:27 +0000 (07:39 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man7/fanotify.7

index c3d40b56d39deb06e1e51b18e94e84a8f9c2e52c..0f63d906ae31d9f191da209b013c36f1e710be5f 100644 (file)
@@ -1088,8 +1088,9 @@ main(int argc, char **argv)
     }
 
 
-    /* Create an fanotify file descriptor with FAN_REPORT_DFID_NAME as a flag
-       so that program can receive fid events with directory entry name. */
+    /* Create an fanotify file descriptor with FAN_REPORT_DFID_NAME as
+       a flag so that program can receive fid events with directory
+       entry name. */
 
     fd = fanotify_init(FAN_CLASS_NOTIF | FAN_REPORT_DFID_NAME, 0);
     if (fd == \-1) {
@@ -1144,14 +1145,14 @@ main(int argc, char **argv)
         if (metadata\->mask == (FAN_CREATE | FAN_ONDIR))
             printf("FAN_CREATE | FAN_ONDIR (subdirectory created):\en");
 
-        /* metadata\->fd is set to FAN_NOFD when the group identifies objects
-           by file handles.  To obtain a file descriptor for the file object
-           corresponding to an event you can use the struct file_handle
-           that\(aqs provided within the fanotify_event_info_fid in
-           conjunction with the open_by_handle_at(2) system call.
-           A check for ESTALE is done to accommodate for the situation
-           where the file handle for the object was deleted prior to
-           this system call. */
+       /* metadata\->fd is set to FAN_NOFD when the group identifies
+          objects by file handles.  To obtain a file descriptor for
+          the file object corresponding to an event you can use the
+          struct file_handle that\(aqs provided within the
+          fanotify_event_info_fid in conjunction with the
+          open_by_handle_at(2) system call.  A check for ESTALE is
+          done to accommodate for the situation where the file handle
+          for the object was deleted prior to this system call. */
 
         event_fd = open_by_handle_at(mount_fd, file_handle, O_RDONLY);
         if (event_fd == \-1) {