apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <madhusudan_mathiha...@hp.com>
Subject [PATCH] Support for opening large files
Date Tue, 11 Feb 2003 01:26:36 GMT
Hi,
	I was wondering if this makes sense (I'm not aware if it was already
discussed earlier)

-Madhu

Index: file_io/unix/open.c
===================================================================
RCS file: /home/cvspublic/apr/file_io/unix/open.c,v
retrieving revision 1.109
diff -u -r1.109 open.c
--- file_io/unix/open.c 14 Jan 2003 00:51:35 -0000      1.109
+++ file_io/unix/open.c 11 Feb 2003 01:24:37 -0000
@@ -139,6 +139,11 @@
         oflags |= O_BINARY;
     }
 #endif
+#if APR_HAS_LARGE_FILES
+    if (flag & APR_LARGEFILE) {
+        oflags |= O_LARGEFILE;
+    }
+#endif
     
 #if APR_HAS_THREADS
     if ((flag & APR_BUFFERED) && (flag & APR_XTHREAD)) {

Index: include/apr_file_io.h
===================================================================
RCS file: /home/cvspublic/apr/include/apr_file_io.h,v
retrieving revision 1.136
diff -u -r1.136 apr_file_io.h
--- include/apr_file_io.h       24 Jan 2003 19:24:24 -0000      1.136
+++ include/apr_file_io.h       11 Feb 2003 01:24:37 -0000
@@ -105,6 +105,10 @@
                                         is opened */
 #define APR_SENDFILE_ENABLED  4096 /**< Advisory flag that this file should

                                         support apr_sendfile operation */ 
+#if APR_HAS_LARGE_FILES
+#define APR_LARGEFILE  8192        /**< Support opening of Large files */
+#endif
+
 /** @} */
 
 /**

Mime
View raw message