diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-11-13 16:26:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-11-13 16:26:13 +0000 |
commit | 1eeb0f31cd73d85a0db15ba3ace4e4d1691c4226 (patch) | |
tree | 524ca3dbe397004a33df3f6e67680d6f182b35e4 /pp_sys.c | |
parent | e0a10278435e0dff75e2ea63cd1637e4c4b4296c (diff) | |
download | perl-1eeb0f31cd73d85a0db15ba3ace4e4d1691c4226.tar.gz |
Continue largefileness separation from quadness;
move nv-preserving test out of perl.h into Configure;
use HAS_SETVBUF in IO.
p4raw-id: //depot/cfgperl@4560
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1592,10 +1592,10 @@ PP(pp_send) djSP; dMARK; dORIGMARK; dTARGET; GV *gv; IO *io; - STRLEN offset; + Off_t offset; SV *bufsv; char *buffer; - STRLEN length; + Off_t length; STRLEN blen; MAGIC *mg; @@ -1618,7 +1618,11 @@ PP(pp_send) goto say_undef; bufsv = *++MARK; buffer = SvPV(bufsv, blen); +#if Off_t_SIZE > IVSIZE + length = SvNVx(*++MARK); +#else length = SvIVx(*++MARK); +#endif if (length < 0) DIE(aTHX_ "Negative length"); SETERRNO(0,0); @@ -1634,7 +1638,11 @@ PP(pp_send) } else if (PL_op->op_type == OP_SYSWRITE) { if (MARK < SP) { +#if Off_t_SIZE > IVSIZE + offset = SvNVx(*++MARK); +#else offset = SvIVx(*++MARK); +#endif if (offset < 0) { if (-offset > blen) DIE(aTHX_ "Offset outside string"); |