diff options
Diffstat (limited to 'miscutils/inotifyd.c')
-rw-r--r-- | miscutils/inotifyd.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c index fe429b636..b64e0abb9 100644 --- a/miscutils/inotifyd.c +++ b/miscutils/inotifyd.c | |||
@@ -27,6 +27,33 @@ | |||
27 | * See below for mask names explanation. | 27 | * See below for mask names explanation. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | //usage:#define inotifyd_trivial_usage | ||
31 | //usage: "PROG FILE1[:MASK]..." | ||
32 | //usage:#define inotifyd_full_usage "\n\n" | ||
33 | //usage: "Run PROG on filesystem changes." | ||
34 | //usage: "\nWhen a filesystem event matching MASK occurs on FILEn," | ||
35 | //usage: "\nPROG ACTUAL_EVENTS FILEn [SUBFILE] is run." | ||
36 | //usage: "\nEvents:" | ||
37 | //usage: "\n a File is accessed" | ||
38 | //usage: "\n c File is modified" | ||
39 | //usage: "\n e Metadata changed" | ||
40 | //usage: "\n w Writable file is closed" | ||
41 | //usage: "\n 0 Unwritable file is closed" | ||
42 | //usage: "\n r File is opened" | ||
43 | //usage: "\n D File is deleted" | ||
44 | //usage: "\n M File is moved" | ||
45 | //usage: "\n u Backing fs is unmounted" | ||
46 | //usage: "\n o Event queue overflowed" | ||
47 | //usage: "\n x File can't be watched anymore" | ||
48 | //usage: "\nIf watching a directory:" | ||
49 | //usage: "\n m Subfile is moved into dir" | ||
50 | //usage: "\n y Subfile is moved out of dir" | ||
51 | //usage: "\n n Subfile is created" | ||
52 | //usage: "\n d Subfile is deleted" | ||
53 | //usage: "\n" | ||
54 | //usage: "\ninotifyd waits for PROG to exit." | ||
55 | //usage: "\nWhen x event happens for all FILEs, inotifyd exits." | ||
56 | |||
30 | #include "libbb.h" | 57 | #include "libbb.h" |
31 | #include <sys/inotify.h> | 58 | #include <sys/inotify.h> |
32 | 59 | ||