apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r375869 - /apr/apr/trunk/include/arch/unix/apr_arch_file_io.h
Date Wed, 08 Feb 2006 06:16:51 GMT
Author: rooneg
Date: Tue Feb  7 22:16:48 2006
New Revision: 375869

URL: http://svn.apache.org/viewcvs?rev=375869&view=rev
Log:
Make apr_file_t::filePtr an apr_off_t on unix so that we avoid truncating
the offset into the file when working with files over 2 gigabytes in size.

* include/arch/unix/apr_arch_file_io.h
  (apr_file_t::filePtr): Make this an apr_off_t, since we really need the
   full 64 bits in many cases.

Modified:
    apr/apr/trunk/include/arch/unix/apr_arch_file_io.h

Modified: apr/apr/trunk/include/arch/unix/apr_arch_file_io.h
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/include/arch/unix/apr_arch_file_io.h?rev=375869&r1=375868&r2=375869&view=diff
==============================================================================
--- apr/apr/trunk/include/arch/unix/apr_arch_file_io.h (original)
+++ apr/apr/trunk/include/arch/unix/apr_arch_file_io.h Tue Feb  7 22:16:48 2006
@@ -107,7 +107,7 @@
     apr_size_t bufsize;       /* The size of the 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 */
+    apr_off_t filePtr;        /* position in file of handle */
 #if APR_HAS_THREADS
     struct apr_thread_mutex_t *thlock;
 #endif



Mime
View raw message