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
This commit is contained in:
Scott Snyder 2000-11-22 06:37:34 +00:00 committed by Benjamin Kosnik
parent d37db09b0d
commit b32a46c30c

View File

@ -160,13 +160,13 @@ namespace std {
streamoff
__basic_file<_CharT>::seekoff(streamoff __off, ios_base::seekdir __way,
ios_base::openmode /*__mode*/)
{ return fseek(_M_cfile, __off, __way); }
{ fseek(_M_cfile, __off, __way); return ftell(_M_cfile); }
template<typename _CharT>
streamoff
__basic_file<_CharT>::seekpos(streamoff __pos,
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>
int
@ -225,7 +225,7 @@ namespace std {
template<typename _CharT>
streamoff
__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.
template<typename _CharT>