Commit d439d4a9e24107448b4cddd5378495200655fe0b

  • avatar
  • dums <dums @01b27279-081b-0410…d9d9e0fb0389.>
  • Wed Jan 02 21:53:19 CET 2008
  • Tree SHA1: d42454f
  • Parent SHA1: 435870d (pass CXXFLAGS to compilers when investigate compiler- and OS-specific files, to process correctly multilib environments)
  • raw diff | raw patch
#1854345 bug fixed.

git-svn-id: https://stlport.svn.sourceforge.net/svnroot/stlport/branches/STLPORT_5_1/STLport@3359 01b27279-081b-0410-8cf9-d9d9e0fb0389
  
12008-01-02 Francois Dumont <dums@users.sourceforge.net>
2
3 * src/fstream.cpp: #1854345 bug fixed.
4
152007-12-11 Petr Ovtchenkov <complement@users.sourceforge.net>
26
37 * build/Makefiles/gmake/lib/gcc.mak, build/Makefiles/gmake/app/gcc.mak:
  
11511151 && __this->_M_always_noconv
11521152 && __this->_M_base._M_in_binary_mode()) {
11531153 // If we've mmapped part of the file already, then unmap it.
1154 if (__this->_M_mmap_base)
1154 if (__this->_M_mmap_base) {
11551155 __this->_M_base._M_unmap(__this->_M_mmap_base, __this->_M_mmap_len);
1156 __this->_M_mmap_base = 0;
1157 __this->_M_mmap_len = 0;
1156 __this->_M_mmap_base = 0;
1157 __this->_M_mmap_len = 0;
1158 __this->setg(__STATIC_CAST(char*, 0), __STATIC_CAST(char*, 0), __STATIC_CAST(char*, 0));
1159 }
11581160
11591161 // Determine the position where we start mapping. It has to be
11601162 // a multiple of the page size.
11771177 (char*) __this->_M_mmap_base + __STATIC_CAST(ptrdiff_t, __remainder),
11781178 (char*) __this->_M_mmap_base + __STATIC_CAST(ptrdiff_t, __this->_M_mmap_len));
11791179 return traits_type::to_int_type(*__this->gptr());
1180 }
1181 } else /* size > 0 ... */ {
1182 // There is nothing to map. We unmapped the file above, now zap pointers.
1183 __this->_M_mmap_base = 0;
1184 __this->_M_mmap_len = 0;
1180 } else
1181 __this->_M_mmap_len = 0;
11851182 }
11861183 }
11871184