.SS Example output (fanotify_example.c)
.in +4n
.EX
-# ./fanotify_example /home
+# \fB./fanotify_example /home\fP
Press enter key to terminate.
Listening for events.
FAN_OPEN_PERM: File /home/user/temp/notes
.SS Example output (fanotify_fid.c)
.in +4n
.EX
-# ./fanotify_fid /home/user
+# \fB./fanotify_fid /home/user\fP
Listening for events.
FAN_CREATE (file created):
Directory /home/user has been modified.
All events processed successfully. Program exiting.
-$ touch /home/user/testing
+$ \fBtouch /home/user/testing\fP
---
-# ./fanotify_fid /home/user
+# \fB./fanotify_fid /home/user\fP
Listening for events.
FAN_CREATE | FAN_ONDIR (subdirectory created):
Directory /home/user has been modified.
All events processed successfully. Program exiting.
-$ mkdir \-p /home/user/testing
+$ \fBmkdir \-p /home/user/testing\fP
.EE
.in
.SS Program source: fanotify_example.c