diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-09-18 13:28:59 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-09-18 13:28:59 +0200 |
commit | 8787c5e9f422ae6a9d3e3f5445301f753c3fe02d (patch) | |
tree | 50fca56db6cc694df2522ba17e4024521c218b74 /inotail.h | |
parent | 21fc4aa4615803896f28bfc8e0009504effdd690 (diff) |
inotail.c: Implement tail_pipe_bytes()
For now more or less a copy from coreutils
Diffstat (limited to 'inotail.h')
-rw-r--r-- | inotail.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -32,6 +32,13 @@ struct line_buf { struct line_buf *next; }; +/* struct for linked list of byte buffers in tail_pipe_bytes */ +struct char_buf { + char buf[BUFSIZ]; + size_t n_bytes; + struct char_buf *next; +}; + #define IS_PIPELIKE(mode) \ (S_ISFIFO(mode) || S_ISSOCK(mode)) |