summaryrefslogtreecommitdiff
path: root/include/arch/netware/apr_arch_file_io.h
diff options
context:
space:
mode:
authorcolm <colm@13f79535-47bb-0310-9956-ffa450edef68>2005-10-18 15:14:44 +0000
committercolm <colm@13f79535-47bb-0310-9956-ffa450edef68>2005-10-18 15:14:44 +0000
commit61cffc10456975f5523bafbe4f095ba9db9a0ff3 (patch)
tree664766291a9b344f434ecdf5977d79e80233a24b /include/arch/netware/apr_arch_file_io.h
parentde1ca04ddd35f34642b1005b8fba13bd6c8c62c7 (diff)
downloadlibapr-61cffc10456975f5523bafbe4f095ba9db9a0ff3.tar.gz
Initial implementation of variable file-io buffer sizes on the Netware
platform; partially guesswork based - untested. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@326119 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/netware/apr_arch_file_io.h')
-rw-r--r--include/arch/netware/apr_arch_file_io.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/arch/netware/apr_arch_file_io.h b/include/arch/netware/apr_arch_file_io.h
index bcef9add9..1d2b0a0e3 100644
--- a/include/arch/netware/apr_arch_file_io.h
+++ b/include/arch/netware/apr_arch_file_io.h
@@ -69,7 +69,9 @@
/* End System headers */
-#define APR_FILE_BUFSIZE 4096
+#define APR_FILE_DEFAULT_BUFSIZE 4096
+/* For backwards compat */
+#define APR_FILE_BUFSIZE APR_FILE_DEFAULT_BUFSIZE
#if APR_HAS_LARGE_FILES
#define lseek(f,o,w) lseek64(f,o,w)
@@ -95,7 +97,8 @@ struct apr_file_t {
/* Stuff for buffered mode */
char *buffer;
- int bufpos; /* Read/Write position in buffer */
+ apr_size_t bufpos; /* Read/Write position in buffer */
+ apr_size_t bufsize; /* The buffer size */
apr_off_t dataRead; /* amount of valid data read into buffer */
int direction; /* buffer being used for 0 = read, 1 = write */
apr_off_t filePtr; /* position in file of handle */