23 #if defined (HAVE_CONFIG_H) 33 #if ! defined (SEEK_SET) 37 #if ! defined (SEEK_CUR) 41 #if ! defined (SEEK_END) 56 return (
c != traits_type::eof ()) ? std::fputc (
c,
f) :
flush ();
58 return traits_type::not_eof (
c);
68 if (! bump &&
c != traits_type::eof ())
74 return traits_type::eof ();
80 return ((
c != traits_type::eof () &&
f)
81 ? ungetc (
c,
f) : traits_type::not_eof (
c));
88 return std::fwrite (
s, 1, n,
f);
97 return std::fread (
s, 1, n,
f);
105 return (dir == std::ios::beg
113 std::ios::seekdir dir,
150 return f ? std::fflush (
f) : traits_type::eof ();
187 #if defined (HAVE_ZLIB) 200 return (
c != traits_type::eof ()) ? gzputc (
f,
c) :
flush ();
202 return traits_type::not_eof (
c);
212 if (! bump &&
c != traits_type::eof ())
218 return traits_type::eof ();
224 return ((
c != traits_type::eof () &&
f)
225 ? gzungetc (
c,
f) : traits_type::not_eof (
c));
232 return gzwrite (
f,
s, n);
241 return gzread (
f,
s, n);
297 return f ? gzflush (
f, 0) : traits_type::eof ();
std::streamsize xsputn(const char *, std::streamsize)
off_t octave_ftello_wrapper(FILE *fp)
int octave_fseeko_wrapper(FILE *fp, off_t offset, int whence)
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
std::streampos seekpos(std::streampos, std::ios::openmode=std::ios::in|std::ios::out)
std::streambuf::int_type int_type
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
int_type underflow_common(bool)
std::streampos seekoff(std::streamoff, std::ios::seekdir, std::ios::openmode=std::ios::in|std::ios::out)
std::streamsize xsputn(const char *, std::streamsize)
std::streamsize xsgetn(char *, std::streamsize)
static int seekdir_to_whence(std::ios::seekdir dir)
OCTAVE_EXPORT octave_value_list or both For fclose
std::streamsize xsgetn(char *, std::streamsize)
int_type pbackfail(int_type)
int_type pbackfail(int_type)
static int file_close(FILE *f)
int_type underflow_common(bool)
std::streambuf::int_type int_type
std::streampos seekoff(std::streamoff, std::ios::seekdir, std::ios::openmode=std::ios::in|std::ios::out)
int seek(off_t offset, int origin)
int_type overflow(int_type)
int_type overflow(int_type)
std::streampos seekpos(std::streampos, std::ios::openmode=std::ios::in|std::ios::out)