Mercurial > hg > octave-lyh
diff libinterp/interp-core/oct-stdstrm.h @ 16011:8122286c69a9
initial large file support for 32-bit systems
* bootstrap.conf (gnulib_modules): Explicitly list largefile.
* c-file-ptr-stream.cc, c-file-ptr-stream.h, oct-fstrm.cc,
oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.h,
oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h,
file-io.cc: Use off_t instead of long for seek and tell file position
values.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Feb 2013 11:58:46 -0500 |
parents | 2fc554ffbc28 |
children |
line wrap: on
line diff
--- a/libinterp/interp-core/oct-stdstrm.h +++ b/libinterp/interp-core/oct-stdstrm.h @@ -43,12 +43,12 @@ // Position a stream at OFFSET relative to ORIGIN. - int seek (long offset, int origin) + int seek (off_t offset, int origin) { return s ? s->seek (offset, origin) : -1; } // Return current stream position. - long tell (void) { return s ? s->tell () : -1; } + off_t tell (void) { return s ? s->tell () : -1; } // Return non-zero if EOF has been reached on this stream.