From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <014317527a75ddd29271029e62eb64fa.axp-list@archive.invalid> X-Archive-Original-Message-ID: <1.5.4.32.19970218165455.00677480@mail.nwlink.com> Date: Tue, 18 Feb 1997 13:06:43 -0500 From: Uncle George Subject: Re: fclose() > However, I also don't really understand that you'd rather the system > hid from you errors in your program that can do just as bizzare > undefined things on other systems, as Jim Nance pointed out for SunOS. actually my point wudda have been the the primitive os calls open/close behave in predictable ways. the first close() I would get a return of 0; the second close() I would, and expect a return of -1 with errno set. I do not expect an system crash to happen. If a system crash does happen, according to this discussion, it is not the fault of the system designer, but rather the fault of the poor victum, who has stumbled on to the failing condition. Who is at fault - they both are. Who should be more responsible - The OS designer - that person knows, or should know that things like that are bound to happen. I can only say that the analogy is the same with fclose(). 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. Uncle George ( aka G. Baeslack ) http://www.voicenet.com/~gatgul -- 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