diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-09-07 13:01:09 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-09-07 13:01:09 +0200 |
commit | 1f317953f47153b47c0dc16dab42f339c858409a (patch) | |
tree | 3708ed27461bc36dac3950794dea7a8e5f692bc9 /inotail.h | |
parent | c93ac5bc511623f1a7b0d8d741bbe2a837d927f7 (diff) | |
parent | fb63f7543d0e5a79bcd9cc1b4650360267314703 (diff) |
Merge branch 'master' into pipe
Conflicts:
changelog
inotail.c
inotail.h
Diffstat (limited to 'inotail.h')
-rw-r--r-- | inotail.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 */ }; |