Re: fflush() on readonly files

From: Andrey Chernov (ache_at_nagual.pp.ru)
Date: 06/19/04

  • Next message: Poul-Henning Kamp: "Re: [REVIEW] move tty lock/initial up in the stack"
    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"
    

  • Next message: Poul-Henning Kamp: "Re: [REVIEW] move tty lock/initial up in the stack"

    Relevant Pages

    • Re: constructor
      ... I am curious where in the Standard there is evidence to your ... There is no apparent meaning in what you write here, ... That is incorrect. ... > lead to it), we get "I call another constructor from within my first, why ...
      (comp.lang.cpp)
    • Re: threads vs. processes
      ... >> stipulation you're making in the standard. ... > Your reading is incorrect because it is incorrect for real systems. ...
      (comp.unix.programmer)
    • Re: help w/ c/c++ problem
      ... Standard REQUIRES main to return an int. ... Then it is still incorrect. ... The function called at program startup is named main. ...
      (comp.lang.c)
    • Re: On-topicness
      ... except perhaps "The C Standard doesn't require your implementation to ... Nor does an otherwise correct answer suddenly become incorrect just ... so you had no info to assume he was making incorrect ... Navia had claimed that the OP was correct to think that "it is stack", ...
      (comp.lang.c)
    • Re: TEXT/PLAIN: ALERT("OUTLOOK EXPRESS")
      ... >text/plain from a web server is happily rendered as HTML, ... It has long been a standard assertion that programs should produce ... Attempting to "correct" for incorrect remote behavior benefits ... We've seen this time after time in things like HTML code ...
      (Bugtraq)