perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject PerlIOAPR_tell problem found
Date Tue, 18 Dec 2001 05:23:46 GMT
the problem is that since we rip out largefile flags on the modperl side,
Off_t is 4 bytes (16 bit int), whereas on the perl side Off_t is 8 bytes
(64 bit int).  for testing, add the largefile flags (as reported by
perl -V:ccflags_uselargefiles) like the diff below.
we could solve this on the modperl side by re-enabling largefile flags for
apr_perlio.c only.  but then when Apache::PerlIO gets implemented (to
replace tie *STD{IN,OUT}), we cannot since it will change the sizeof
request_rec.  if perl were to change to something that is always 64 bit
int (like NV), we'd be ok in both cases (i think).

diff -u -r1.4 apr_perlio.c
--- xs/APR/PerlIO/apr_perlio.c  2001/12/18 01:13:15     1.4
+++ xs/APR/PerlIO/apr_perlio.c  2001/12/18 05:12:31
@@ -1,3 +1,5 @@
+#define _LARGEFILE_SOURCE 
+#define _FILE_OFFSET_BITS 64
 
 #include "mod_perl.h"
 #include "apr_perlio.h"



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message