stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r382988 - /incubator/stdcxx/trunk/include/fstream.cc
Date Sat, 04 Mar 2006 00:49:44 GMT
Author: sebor
Date: Fri Mar  3 16:49:42 2006
New Revision: 382988

URL: http://svn.apache.org/viewcvs?rev=382988&view=rev
Log:
2006-03-03  Martin Sebor  <sebor@roguewave.com>

	STDCXX-161
	* fstream.cc (sync): Called __rw_fflush() in stdio mode.

Modified:
    incubator/stdcxx/trunk/include/fstream.cc

Modified: incubator/stdcxx/trunk/include/fstream.cc
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/fstream.cc?rev=382988&r1=382987&r2=382988&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/fstream.cc (original)
+++ incubator/stdcxx/trunk/include/fstream.cc Fri Mar  3 16:49:42 2006
@@ -682,6 +682,9 @@
         // flush the buffer to the file
         if (this->_C_is_eof (overflow (traits_type::eof ())))
             return -1;
+
+        if (this->_C_state & _RWSTD_IOS_STDIO)
+            _RW::__rw_fflush (_C_file, this->_C_state);
     }
 
     // get area active



Mime
View raw message