From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199702182232.QAA10084@melanoma.uchicago.edu> Date: Tue, 18 Feb 1997 16:32:06 -0600 (CST) From: D. Champion Subject: Re: fclose() In-Reply-To: <19970218191335.5758.qmail@brouhaha.com> >> I expect fclose to give me an error return - something more gracefull than a >> segfault. Fclose should know that the ptr is invalid - points to no open >> channel - and give an appropiate error code. > >What's the point in checking the return code or errno for fclose()? What >are you going to do if it fails, try to close it again, hoping that the error >condition has been remedied? Print "Abort, Retry, Ignore?" to stderr? :-) Oh, so -you're- the guy who does that. One reason off the top of my head is that the f* stdio suite is buffered, and a failed fclose() can indicate failure to flush pending output. Maybe you differ, but I want to know when my newly-compiled kernel image didn't complete its copy to /vmunix.gz because / is 40 bytes too small. -D. -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com