Commit b32a46c3 by Scott Snyder Committed by Benjamin Kosnik

c_io_stdio.cc (seekoff): Fix return value.


2000-11-21  scott snyder  <snyder@fnal.gov>

        * config/c_io_stdio.cc (seekoff): Fix return value.
        (seekpos): Likewise.
        (sys_seek): Likewise.

From-SVN: r37648
parent d37db09b
...@@ -160,13 +160,13 @@ namespace std { ...@@ -160,13 +160,13 @@ namespace std {
streamoff streamoff
__basic_file<_CharT>::seekoff(streamoff __off, ios_base::seekdir __way, __basic_file<_CharT>::seekoff(streamoff __off, ios_base::seekdir __way,
ios_base::openmode /*__mode*/) ios_base::openmode /*__mode*/)
{ return fseek(_M_cfile, __off, __way); } { fseek(_M_cfile, __off, __way); return ftell(_M_cfile); }
template<typename _CharT> template<typename _CharT>
streamoff streamoff
__basic_file<_CharT>::seekpos(streamoff __pos, __basic_file<_CharT>::seekpos(streamoff __pos,
ios_base::openmode /*__mode*/) ios_base::openmode /*__mode*/)
{ return fseek(_M_cfile, __pos, ios_base::beg); } { fseek(_M_cfile, __pos, ios_base::beg); return ftell(_M_cfile); }
template<typename _CharT> template<typename _CharT>
int int
...@@ -225,7 +225,7 @@ namespace std { ...@@ -225,7 +225,7 @@ namespace std {
template<typename _CharT> template<typename _CharT>
streamoff streamoff
__basic_file<_CharT>::sys_seek(streamoff __pos, ios_base::seekdir __way) __basic_file<_CharT>::sys_seek(streamoff __pos, ios_base::seekdir __way)
{ return fseek(_M_cfile, __pos, __way); } { fseek(_M_cfile, __pos, __way); return ftell(_M_cfile); }
// NB: Unused. // NB: Unused.
template<typename _CharT> template<typename _CharT>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment