summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/inotail.h b/inotail.h
index 5b0ef0c..3320c3d 100644
--- a/inotail.h
+++ b/inotail.h
@@ -10,10 +10,13 @@
#include <sys/types.h>
#include <sys/inotify.h>
-#define DEFAULT_N_LINES 10 /* Number of items to tail. */
-
+/* Number of items to tail. */
+#define DEFAULT_N_LINES 10
/* inotify event buffer length for one file */
-#define INOTIFY_BUFLEN (4 * sizeof(struct inotify_event))
+#define INOTIFY_BUFLEN (4 * sizeof(struct inotify_event))
+/* inotify events to watch for on tailed files */
+#define INOTAIL_WATCH_MASK \
+ (IN_MODIFY|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_CREATE)
/* tail modes */
enum tail_mode { M_LINES, M_BYTES };