path: root/inotail.h
diff options
Diffstat (limited to 'inotail.h')
1 files changed, 8 insertions, 3 deletions
diff --git a/inotail.h b/inotail.h
index e1590df..4c57867 100644
--- a/inotail.h
+++ b/inotail.h
@@ -18,12 +18,17 @@ struct file_struct {
char *name; /* Name of file (or '-' for stdin) */
int fd; /* File descriptor (or -1 if file is not open */
off_t st_size; /* File size */
- unsigned ignore; /* Wheter to ignore the file in further processing */
+ unsigned ignore; /* Whether to ignore the file in further processing */
int i_watch; /* Inotify watch associated with file_struct */
+#define IS_PIPELIKE(mode) \
+ (S_ISFIFO(mode) || S_ISSOCK(mode))
+/* inotail works on these file types */
+#define IS_TAILABLE(mode) \
+ (S_ISREG(mode) || IS_PIPELIKE(mode) || S_ISCHR(mode))
#ifdef DEBUG
# define dprintf(fmt, args...) fprintf(stderr, fmt, ##args)
'insertions'>+3 2014-12-13syscalls: implement execveat() system callDavid Drysdale1-0/+4 2014-12-10fs/binfmt_misc.c: use GFP_KERNEL instead of GFP_USERAndrew Morton1-2/+2 2014-12-10binfmt_misc: clean up code style a bitMike Frysinger1-148/+145 2014-12-10binfmt_misc: add comments & debug logsMike Frysinger1-15/+121 2014-12-10binfmt_misc: replace get_unused_fd() with get_unused_fd_flags(0)Yann Droneaud1-1/+1 2014-10-14binfmt_misc: work around gcc-4.9 warningArnd Bergmann1-2/+2 2014-10-14binfmt_misc: expand the register format limit to 1920 bytesMike Frysinger1-2/+17 2014-04-03binfmt_misc: add missing 'break' statementLuis Henriques1-0/+1 2013-04-30binfmt_misc: reuse string_unescape_inplace()Andy Shevchenko1-20/+4 2013-03-03fs: Limit sys_mount to only request filesystem modules.Eric W. Biederman1-0/+1 2013-02-22new helper: file_inode(file)Al Viro1-2/+2 2012-12-20exec: do not leave bprm->interp on stackKees Cook1-1/+4 2012-12-17exec: use -ELOOP for max recursion depthKees Cook1-6/+0 2012-11-28get rid of pt_regs argument of ->load_binary()Al Viro1-1/+1 2012-11-28get rid of pt_regs argument of search_binary_handler()Al Viro1-1/+1 2012-05-06vfs: Rename end_writeback() to clear_inode()Jan Kara1-1/+1 2012-03-23magic.h: move some FS magic numbers into magic.hMuthu Kumar1-1/+2 2012-03-20__register_binfmt() made voidAl Viro1-5/+2 2012-01-06vfs: prefer ->dentry->d_sb to ->mnt->mnt_sbAl Viro1-3/+3 2011-11-02filesystems: add missing nlink wrappersMiklos Szeredi1-1/+1 2011-07-20consolidate BINPRM_FLAGS_ENFORCE_NONDUMP handlingAl Viro1-2/+1 2010-10-29convert get_sb_single() usersAl Viro1-4/+4 2010-10-25fs: do not assign default i_ino in new_inodeChristoph Hellwig1-0/+1