bjh 99/10/19 08:29:04
Modified: src/lib/apr/file_io/os2 fileio.h
Log:
OS/2: First take at adding buffered file I/O support. Only reads tested so
far.
(ooops, forgot the header on previous commit).
Revision Changes Path
1.4 +9 -0 apache-2.0/src/lib/apr/file_io/os2/fileio.h
Index: fileio.h
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/os2/fileio.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- fileio.h 1999/10/18 10:23:20 1.3
+++ fileio.h 1999/10/19 15:29:04 1.4
@@ -63,6 +63,8 @@
#include "apr_file_io.h"
#include "apr_errno.h"
+#define APR_FILE_BUFSIZE 4096
+
struct file_t {
ap_context_t *cntxt;
HFILE filedes;
@@ -72,6 +74,13 @@
FILESTATUS3 status;
int validstatus;
int eof_hit;
+
+ /* Stuff for buffered mode */
+ char *buffer;
+ int bufpos; // Read/Write position in buffer
+ unsigned long dataRead; // amount of valid data read into buffer
+ int direction; // buffer being used for 0 = read, 1 = write
+ unsigned long filePtr; // position in file of handle
};
struct dir_t {