]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man7/inotify.7
signal.7: Some reworking of Michal Sekletar's text
[thirdparty/man-pages.git] / man7 / inotify.7
index 4d77ce09be0c4b12f0d065a1a87d4ca1f29a121c..032d78d25123a3148dbdf0509b8befb441eaa81b 100644 (file)
@@ -24,7 +24,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH INOTIFY 7 2017-09-15 "Linux" "Linux Programmer's Manual"
+.TH INOTIFY 7 2019-03-06 "Linux" "Linux Programmer's Manual"
 .SH NAME
 inotify \- monitoring filesystem events
 .SH DESCRIPTION
@@ -147,7 +147,7 @@ field is present only when an event is returned
 for a file inside a watched directory;
 it identifies the filename within to the watched directory.
 This filename is null-terminated,
-and may include further null bytes (\(aq\\0\(aq) to align subsequent reads to a
+and may include further null bytes (\(aq\e0\(aq) to align subsequent reads to a
 suitable address boundary.
 .PP
 The
@@ -998,9 +998,9 @@ handle_events(int fd, int *wd, int argc, char* argv[])
             /* Print type of filesystem object */
 
             if (event\->mask & IN_ISDIR)
-                printf(" [directory]\\n");
+                printf(" [directory]\en");
             else
-                printf(" [file]\\n");
+                printf(" [file]\en");
         }
     }
 }
@@ -1015,11 +1015,11 @@ main(int argc, char* argv[])
     struct pollfd fds[2];
 
     if (argc < 2) {
-        printf("Usage: %s PATH [PATH ...]\\n", argv[0]);
+        printf("Usage: %s PATH [PATH ...]\en", argv[0]);
         exit(EXIT_FAILURE);
     }
 
-    printf("Press ENTER key to terminate.\\n");
+    printf("Press ENTER key to terminate.\en");
 
     /* Create the file descriptor for accessing the inotify API */
 
@@ -1045,7 +1045,7 @@ main(int argc, char* argv[])
         wd[i] = inotify_add_watch(fd, argv[i],
                                   IN_OPEN | IN_CLOSE);
         if (wd[i] == \-1) {
-            fprintf(stderr, "Cannot watch '%s'\\n", argv[i]);
+            fprintf(stderr, "Cannot watch '%s'\en", argv[i]);
             perror("inotify_add_watch");
             exit(EXIT_FAILURE);
         }
@@ -1067,7 +1067,7 @@ main(int argc, char* argv[])
 
     /* Wait for events and/or terminal input */
 
-    printf("Listening for events.\\n");
+    printf("Listening for events.\en");
     while (1) {
         poll_num = poll(fds, nfds, \-1);
         if (poll_num == \-1) {
@@ -1083,7 +1083,7 @@ main(int argc, char* argv[])
 
                 /* Console input is available. Empty stdin and quit */
 
-                while (read(STDIN_FILENO, &buf, 1) > 0 && buf != '\\n')
+                while (read(STDIN_FILENO, &buf, 1) > 0 && buf != '\en')
                     continue;
                 break;
             }
@@ -1097,7 +1097,7 @@ main(int argc, char* argv[])
         }
     }
 
-    printf("Listening for events stopped.\\n");
+    printf("Listening for events stopped.\en");
 
     /* Close inotify file descriptor */