mirror of https://github.com/mkerrisk/man-pages
fanotify.7: Reformat program output to fit in 80 columns
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
2d26ddfa55
commit
525b88e128
|
@ -759,7 +759,8 @@ Listening for events stopped.
|
|||
.EX
|
||||
# ./fanotify_fid /home/user
|
||||
Listening for events.
|
||||
FAN_CREATE (file created): Directory /home/user has been modified.
|
||||
FAN_CREATE (file created):
|
||||
Directory /home/user has been modified.
|
||||
All events processed successfully. Program exiting.
|
||||
|
||||
$ touch /home/user/testing
|
||||
|
@ -768,7 +769,8 @@ $ touch /home/user/testing
|
|||
|
||||
# ./fanotify_fid /home/user
|
||||
Listening for events.
|
||||
FAN_CREATE | FAN_ONDIR (subdirectory created): Directory /home/user has been modified.
|
||||
FAN_CREATE | FAN_ONDIR (subdirectory created):
|
||||
Directory /home/user has been modified.
|
||||
All events processed successfully. Program exiting.
|
||||
|
||||
$ mkdir \-p /home/user/testing
|
||||
|
@ -1051,10 +1053,10 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (metadata->mask == FAN_CREATE)
|
||||
printf("FAN_CREATE (file created): ");
|
||||
printf("FAN_CREATE (file created):");
|
||||
|
||||
if (metadata->mask == FAN_CREATE | FAN_ONDIR)
|
||||
printf("FAN_CREATE | FAN_ONDIR (subdirectory created): ");
|
||||
printf("FAN_CREATE | FAN_ONDIR (subdirectory created):");
|
||||
|
||||
/* metadata->fd is set to FAN_NOFD when FAN_REPORT_FID is enabled.
|
||||
To obtain a file descriptor for the file object corresponding to
|
||||
|
@ -1088,7 +1090,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
path[path_len] = \(aq\e\0\(aq;
|
||||
printf("Directory \(aq%s\(aq has been modified.\e\n", path);
|
||||
printf("\etDirectory \(aq%s\(aq has been modified.\e\n", path);
|
||||
|
||||
/* Close associated file descriptor for this event */
|
||||
|
||||
|
|
Loading…
Reference in New Issue