aboutsummaryrefslogtreecommitdiff
path: root/miscutils/inotifyd.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /miscutils/inotifyd.c
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'miscutils/inotifyd.c')
-rw-r--r--miscutils/inotifyd.c27
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