diff options
| -rw-r--r-- | man7/fanotify.7 | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/man7/fanotify.7 b/man7/fanotify.7 index c3d40b56d3..0f63d906ae 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -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) { |
