26 #if defined (HAVE_CONFIG_H)
36 #if ! defined (SEEK_SET)
40 #if ! defined (SEEK_CUR)
44 #if ! defined (SEEK_END)
59 return (c != traits_type::eof ()) ? std::fputc (c,
f) :
flush ();
61 return traits_type::not_eof (c);
71 if (! bump && c != traits_type::eof ())
77 return traits_type::eof ();
83 return ((c != traits_type::eof () &&
f)
84 ? ungetc (c,
f) : traits_type::not_eof (c));
91 return std::fwrite (s, 1,
n,
f);
100 return std::fread (s, 1,
n,
f);
108 return (dir == std::ios::beg
116 std::ios::seekdir dir,
153 return f ? std::fflush (
f) : traits_type::eof ();
187 return std::fclose (
f);
190 #if defined (HAVE_ZLIB)
203 return (c != traits_type::eof ()) ? gzputc (
f, c) :
flush ();
205 return traits_type::not_eof (c);
215 if (! bump && c != traits_type::eof ())
221 return traits_type::eof ();
227 return ((c != traits_type::eof () &&
f)
228 ? gzungetc (c,
f) : traits_type::not_eof (c));
235 return gzwrite (
f, s,
n);
244 return gzread (
f, s,
n);
300 return f ? gzflush (
f, 0) : traits_type::eof ();
static int seekdir_to_whence(std::ios::seekdir dir)
std::streampos seekoff(std::streamoff, std::ios::seekdir, std::ios::openmode=std::ios::in|std::ios::out)
std::streamsize xsgetn(char *, std::streamsize)
int_type underflow_common(bool)
int_type overflow(int_type)
std::streamsize xsputn(const char *, std::streamsize)
std::streampos seekpos(std::streampos, std::ios::openmode=std::ios::in|std::ios::out)
static int file_close(FILE *f)
int seek(off_t offset, int origin)
std::streambuf::int_type int_type
int_type pbackfail(int_type)
std::streampos seekpos(std::streampos, std::ios::openmode=std::ios::in|std::ios::out)
std::streamsize xsgetn(char *, std::streamsize)
std::streampos seekoff(std::streamoff, std::ios::seekdir, std::ios::openmode=std::ios::in|std::ios::out)
int_type underflow_common(bool)
int_type pbackfail(int_type)
int_type overflow(int_type)
std::streamsize xsputn(const char *, std::streamsize)
std::streambuf::int_type int_type
int octave_fseeko_wrapper(FILE *fp, off_t offset, int whence)
off_t octave_ftello_wrapper(FILE *fp)
F77_RET_T const F77_DBLE const F77_DBLE * f
octave_value::octave_value(const Array< char > &chm, char type) return retval