Mercurial > hg > octave-nkf
diff src/oct-fstrm.cc @ 3775:13905c3a24af
[project @ 2001-02-06 01:56:59 by jwe]
author | jwe |
---|---|
date | Tue, 06 Feb 2001 01:57:06 +0000 |
parents | 25e84fcef38a |
children | 7b957b442818 |
line wrap: on
line diff
--- a/src/oct-fstrm.cc +++ b/src/oct-fstrm.cc @@ -42,11 +42,19 @@ oct_mach_info::float_format flt_fmt) : octave_base_stream (arg_md, flt_fmt), nm (nm_arg) { + +#if CXX_ISO_COMPLIANT_LIBRARY + + fs.open (nm.c_str (), arg_md); + +#else // Override default protection of 0664 so that umask will appear to // do the right thing. fs.open (nm.c_str (), arg_md, 0666); +#endif + if (! fs) { using namespace std; @@ -58,7 +66,7 @@ // Position a stream at OFFSET relative to ORIGIN. int -octave_fstream::seek (std::streamoff offset, std::ios::seek_dir origin) +octave_fstream::seek (std::streamoff offset, std::ios::seekdir origin) { int retval = -1;