diff options
Diffstat (limited to 'usr.bin/tail/extern.h')
-rw-r--r-- | usr.bin/tail/extern.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/tail/extern.h b/usr.bin/tail/extern.h index 8ad21ec..9c45a1b 100644 --- a/usr.bin/tail/extern.h +++ b/usr.bin/tail/extern.h @@ -50,8 +50,17 @@ struct mapinfo { int fd; }; +struct file_info { + FILE *fp; + char *file_name; + struct stat st; +}; + +typedef struct file_info file_info_t; + enum STYLE { NOTSET = 0, FBYTES, FLINES, RBYTES, RLINES, REVERSE }; +void follow(file_info_t *, enum STYLE, off_t); void forward(FILE *, enum STYLE, off_t, struct stat *); void reverse(FILE *, enum STYLE, off_t, struct stat *); @@ -63,5 +72,5 @@ void oerr(void); int mapprint(struct mapinfo *, off_t, off_t); int maparound(struct mapinfo *, off_t); -extern int Fflag, fflag, rflag, rval; +extern int Fflag, fflag, rflag, rval, no_files; extern const char *fname; |