diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-07 10:41:22 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-07 10:41:22 +0000 |
commit | 2c5b4f3c3d79190367595ccf84ae90f50666ddbf (patch) | |
tree | b974a9e48124518234246de01a537308ef8c0d61 /queue.h | |
parent | cfbb74e7a59c93c3816b431ffb25adf2032c5ef0 (diff) | |
download | rsyslog-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |