Mercurial > octave
diff src/oct-fstrm.cc @ 3570:f74d9dfec96f
[project @ 2000-02-03 11:27:10 by jwe]
author | jwe |
---|---|
date | Thu, 03 Feb 2000 11:27:11 +0000 |
parents | e3e8cfe73935 |
children | 25e84fcef38a |
line wrap: on
line diff
--- a/src/oct-fstrm.cc Thu Feb 03 11:16:55 2000 +0000 +++ b/src/oct-fstrm.cc Thu Feb 03 11:27:11 2000 +0000 @@ -31,21 +31,21 @@ #include "oct-fstrm.h" octave_stream -octave_fstream::create (const std::string& nm_arg, std::ios::openmode md, +octave_fstream::create (const std::string& nm_arg, std::ios::openmode arg_md, oct_mach_info::float_format flt_fmt) { - return octave_stream (new octave_fstream (nm_arg, md, flt_fmt)); + return octave_stream (new octave_fstream (nm_arg, arg_md, flt_fmt)); } octave_fstream::octave_fstream (const std::string& nm_arg, - std::ios::openmode md, + std::ios::openmode arg_md, oct_mach_info::float_format flt_fmt) - : octave_base_stream (md, flt_fmt), nm (nm_arg) + : octave_base_stream (arg_md, flt_fmt), nm (nm_arg) { // Override default protection of 0664 so that umask will appear to // do the right thing. - fs.open (nm.c_str (), md, 0666); + fs.open (nm.c_str (), arg_md, 0666); if (! fs) { @@ -70,7 +70,7 @@ if (fb) { - fb->seekoff (offset, origin); + fb->pubseekoff (offset, origin); retval = fs.bad () ? -1 : 0; } } @@ -88,7 +88,7 @@ if (fs) { std::filebuf *fb = fs.rdbuf (); - retval = static_cast<long> (fb->seekoff (0, std::ios::cur)); + retval = static_cast<long> (fb->pubseekoff (0, std::ios::cur)); } return retval;