mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-24 13:04:33 +08:00
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:
parent
d37db09b0d
commit
b32a46c30c
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user