From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Mueller To: pme@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: libstdc++/2913 Date: Sat, 16 Jun 2001 21:36:00 -0000 Message-id: <20010617043602.7010.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00711.html List-Id: The following reply was made to PR libstdc++/2913; it has been noted by GNATS. From: Matthew Mueller To: pme@gcc.gnu.org Cc: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Subject: Re: libstdc++/2913 Date: Sat, 16 Jun 2001 21:29:27 -0700 I didn't mean to suggest that it should check individual errors, just that it is ignoring this (and probably all) errors in a certain case. If you compare our results, I think the reason is apparent. Your test returns error on both the write and the file close. My test with 2.95 returned error only on close, likely due to buffering issues. So my theory is that in 3.0 the error is not checked when closing the file, only on writing it. Due to buffering, fclose(3) return value must be checked for errors too. -- Matthew Mueller donut@azstarnet.com