From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15223 invoked from network); 19 Aug 1998 02:01:03 -0000 Received: from caffeine.ix.net.nz (203.97.100.28) by mail2.redhat.com with SMTP; 19 Aug 1998 02:01:03 -0000 Received: (from chris@localhost) by caffeine.ix.net.nz (8.8.7/8.8.3) id OAA32642; Wed, 19 Aug 1998 14:00:59 +1200 Message-ID: <19980819140059.A32620@caffeine.ix.net.nz> Date: Wed, 19 Aug 1998 14:00:59 +1200 From: Chris Wedgwood To: axp-list@redhat.com, redhat-devel-list@redhat.com Subject: Re: fclose() - still broken? References: <35D95C14.8EAE66D6@voicenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <35D95C14.8EAE66D6@voicenet.com>; from Uncle George on Tue, Aug 18, 1998 at 06:48:53AM -0400 X-No-Archive: Yes On Tue, Aug 18, 1998 at 06:48:53AM -0400, Uncle George wrote: > btw, core dumps, IMHO, are never valid behavior. true... but if your given a FILE* its not always easy to tell whether or not it points to something sane or if indeed the address is sane itself. (yes, in theory you can check this, but it would be pretty expensive to do so). -cw P.S. Win32 actually has an API for checking whether or not a pointer is valid (IsBadPtrXXX ?), a libc equivalent to this might be a nice thing to have. (If expensive, then apps would only use this when compile with, say -DPOINTERCHECK).