X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perlio.c;h=a1af8701322c64e0df264ba0d84dee2a1be60be1;hb=619ffc2be66f166b301c5b0d14a8bbba728675bc;hp=c293f540b67db71ef4c98f526a3a776bfb4d8abf;hpb=17c3b45099488fbc22dc1d4e0e4600c17bc12645;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perlio.c b/perlio.c index c293f54..a1af870 100644 --- a/perlio.c +++ b/perlio.c @@ -16,7 +16,7 @@ #endif /* * This file provides those parts of PerlIO abstraction - * which are not #defined in perlio.h. + * which are not #defined in iperlsys.h. * Which these are depends on various Configure #ifdef's */ @@ -416,23 +416,30 @@ va_list ap; return vfprintf(f,fmt,ap); } - #undef PerlIO_tell -long +Off_t PerlIO_tell(f) PerlIO *f; { +#ifdef HAS_FTELLO + return ftello(f); +#else return ftell(f); +#endif } #undef PerlIO_seek int PerlIO_seek(f,offset,whence) PerlIO *f; -off_t offset; +Off_t offset; int whence; { +#ifdef HAS_FSEEKO + return fseeko(f,offset,whence); +#else return fseek(f,offset,whence); +#endif } #undef PerlIO_rewind