Re: fflush() on readonly files
From: Andrey Chernov (ache_at_nagual.pp.ru)
Date: 06/19/04
- Previous message: Andrey Chernov: "Re: fflush() on readonly files"
- In reply to: Andrey Chernov: "Re: fflush() on readonly files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Jun 2004 17:35:24 +0400 To: Tim Robbins <tjr@FreeBSD.ORG>, freebsd-arch@FreeBSD.ORG
On Sat, Jun 19, 2004 at 05:29:24PM +0400, Andrey Chernov wrote:
> > > There is no reason to change from the perfectly correct & well-documented
> > > behaviour BSD has had for 10-15 years. The original poster's example provides
> > > a good argument for this: it detects application bugs.
> >
> > I agree.
Moreover, I agree that it is incorrect (i.e. beyond of standard scope)
assumption from program side, but what the fix you suggest? There is no
_standard_ way to detect by given FILE * pointer is it R or W, there is no
such standard stdio macro.
-- Andrey Chernov | http://ache.pp.ru/ _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Andrey Chernov: "Re: fflush() on readonly files"
- In reply to: Andrey Chernov: "Re: fflush() on readonly files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|