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"
- Next in thread: Andrey Chernov: "Re: fflush() on readonly files"
- Reply: Andrey Chernov: "Re: fflush() on readonly files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Jun 2004 17:29:24 +0400 To: Tim Robbins <tjr@FreeBSD.ORG>, freebsd-arch@FreeBSD.ORG
On Sat, Jun 19, 2004 at 05:07:18PM +0400, Andrey Chernov wrote:
> > - BSD since Torek's stdio rewrite (inc. FreeBSD and Mac OS X) indicate
> > an error.
>
> We need to fix just fflush() case only, left other rewrite parts
> untouched.
>
> if ((fp->_flags & (__SWR | __SRW)) == 0)
> retval = 0;
>
> > 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.
It may sounds confusing. I mean I want to return to pre-Torek stdio
rewrite state Unix (and BSD?) have for years. With big number of apps
writen for Linux today nobody want to detect such "bugs" for the sake of
standards vagueness but want to have working app.
-- 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"
- Next in thread: Andrey Chernov: "Re: fflush() on readonly files"
- Reply: Andrey Chernov: "Re: fflush() on readonly files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]