summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-09-18 13:28:59 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-09-18 13:28:59 +0200
commit8787c5e9f422ae6a9d3e3f5445301f753c3fe02d (patch)
tree50fca56db6cc694df2522ba17e4024521c218b74 /inotail.h
parent21fc4aa4615803896f28bfc8e0009504effdd690 (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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/inotail.h b/inotail.h
index f9eabba..5029540 100644
--- a/inotail.h
+++ b/inotail.h
@@ -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))