summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-09-07 13:01:09 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-09-07 13:01:09 +0200
commit1f317953f47153b47c0dc16dab42f339c858409a (patch)
tree3708ed27461bc36dac3950794dea7a8e5f692bc9 /inotail.h
parentc93ac5bc511623f1a7b0d8d741bbe2a837d927f7 (diff)
parentfb63f7543d0e5a79bcd9cc1b4650360267314703 (diff)
Merge branch 'master' into pipe
Conflicts: changelog inotail.c inotail.h
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/inotail.h b/inotail.h
index 8e0f30a..dcc948d 100644
--- a/inotail.h
+++ b/inotail.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2005-2006, Tobias Klauser <tklauser@distanz.ch>
+ * Copyright (C) 2005-2007, Tobias Klauser <tklauser@distanz.ch>
*
* Licensed under the terms of the GNU General Public License; version 2 or later.
*/
@@ -7,6 +7,8 @@
#ifndef _INOTAIL_H
#define _INOTAIL_H
+#include <sys/types.h>
+
#define BUFFER_SIZE 4096
#define DEFAULT_N_LINES 10 /* Number of items to tail. */
@@ -17,7 +19,8 @@ enum { M_LINES, M_BYTES };
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 */
+ off_t size; /* File size */
+ blksize_t blksize; /* Blocksize for filesystem I/O */
unsigned ignore; /* Whether to ignore the file in further processing */
int i_watch; /* Inotify watch associated with file_struct */
};