summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-07 10:41:22 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-07 10:41:22 +0000
commit2c5b4f3c3d79190367595ccf84ae90f50666ddbf (patch)
treeb974a9e48124518234246de01a537308ef8c0d61 /queue.h
parentcfbb74e7a59c93c3816b431ffb25adf2032c5ef0 (diff)
downloadrsyslog-2c5b4f3c3d79190367595ccf84ae90f50666ddbf.tar.gz
rsyslog-2c5b4f3c3d79190367595ccf84ae90f50666ddbf.tar.xz
rsyslog-2c5b4f3c3d79190367595ccf84ae90f50666ddbf.zip
implemented buffered read calls for the queue file
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/queue.h b/queue.h
index f0740c44..8459d0f6 100644
--- a/queue.h
+++ b/queue.h
@@ -35,7 +35,11 @@ typedef struct {
int fd; /* the file descriptor, -1 if closed */
int iCurrFileNum;/* current file number (NOT descriptor, but the number in the file name!) */
int iCurrOffs; /* current offset */
+ uchar *pIOBuf; /* io Buffer */
+ int iBufPtrMax; /* current max Ptr in Buffer (if partial read!) */
+ int iBufPtr; /* pointer into current buffer */
} queueFileDescription_t;
+#define qFILE_IOBUF_SIZE 4096 /* size of the IO buffer */
/* queue types */