Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Chris Wedgwood <chris@cybernet.co.nz>
To: axp-list@redhat.com, redhat-devel-list@redhat.com
Subject: Re: fclose() - still broken?
Date: Wed, 19 Aug 1998 14:00:59 +1200	[thread overview]
Message-ID: <19980819140059.A32620@caffeine.ix.net.nz> (raw)
In-Reply-To: <35D95C14.8EAE66D6@voicenet.com>; from Uncle George on Tue, Aug 18, 1998 at 06:48:53AM -0400

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).


  reply	other threads:[~1998-08-19  2:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m0z8jmQ-000aNFC@the-village.bc.nu>
1998-08-18 10:48 ` fclose() - still broken? Uncle George
1998-08-19  2:00   ` Chris Wedgwood [this message]
1998-08-19  2:50     ` Quant-X Alpha Linux Support
1998-08-19 12:04       ` Uncle George
1998-08-19 12:00         ` David Alan Gilbert
1998-08-20  0:12       ` Chris Wedgwood
1998-08-20  7:33         ` Richard Henderson
1998-08-18 10:19 Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox