From stdcxx-commits-return-506-apmail-incubator-stdcxx-commits-archive=incubator.apache.org@incubator.apache.org Sat Mar 04 00:50:05 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 44101 invoked from network); 4 Mar 2006 00:50:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Mar 2006 00:50:05 -0000 Received: (qmail 1624 invoked by uid 500); 4 Mar 2006 00:50:52 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 1607 invoked by uid 500); 4 Mar 2006 00:50:52 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 1596 invoked by uid 500); 4 Mar 2006 00:50:52 -0000 Delivered-To: apmail-incubator-stdcxx-cvs@incubator.apache.org Received: (qmail 1593 invoked by uid 99); 4 Mar 2006 00:50:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 16:50:52 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 03 Mar 2006 16:50:51 -0800 Received: (qmail 43961 invoked by uid 65534); 4 Mar 2006 00:49:44 -0000 Message-ID: <20060304004944.43958.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r382988 - /incubator/stdcxx/trunk/include/fstream.cc Date: Sat, 04 Mar 2006 00:49:44 -0000 To: stdcxx-cvs@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 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