Just thought I'd quip up and show what I've had working for me re:
largefiles on Solaris with sendfilev. See the patch attached to this mail.
Everything seems to work fine. I can serve > 2GB files and write logs past
the 2GB mark as well. Running 'nm' on libapr.so and httpd show all the
necessary functions have been redefined ( open() -> open64(), stat()
->stat64(), mmap() -> mmap64(), etc )
/dale
Index: apr/configure.in
===================================================================
RCS file: /home/cvspublic/apr/configure.in,v
retrieving revision 1.415
diff -u -r1.415 configure.in
--- apr/configure.in 25 Feb 2002 16:55:10 -0000 1.415
+++ apr/configure.in 1 Mar 2002 04:34:41 -0000
@@ -403,6 +403,28 @@
;;
esac
+dnl #----------------------------- Checks for UNIX largefile support.
+dnl Each plaform is to be configure separately for it's largefile
+dnl implementation here.
+AC_MSG_CHECKING([for large file support])
+case $host in
+ *solaris*)
+ solaris_version=`uname -r`
+ case $solaris_version in
+ 5.0*|5.1*|5.2*|5.3*|5.4*|5.5*)
+ AC_MSG_RESULT([no])
+ ;;
+ *)
+ AC_MSG_RESULT([yes])
+ APR_ADDTO(CPPFLAGS, -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64)
+ ;;
+ esac
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+esac
+
dnl #----------------------------- Checks for Any required Libraries
dnl Note: Autoconf will always append LIBS with an extra " " in AC_CHECK_LIB.
dnl It should check for LIBS being empty and set LIBS equal to the new value