Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2004 05:10:23 -0700 (PDT)
From:      Colin Percival <colin.percival@wadham.ox.ac.uk>
To:        freebsd-bugs@FreeBSD.org
Subject:    Re: kern/65402: patch: fflush() should not return error on readonly files
Message-ID:  <200404151210.i3FCANNH061273@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/65402; it has been noted by GNATS.

From: Colin Percival <colin.percival@wadham.ox.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org, hsn@netmag.cz
Cc:  
Subject: Re: kern/65402: patch: fflush() should not return error on
  readonly files
Date: Thu, 15 Apr 2004 13:01:43 +0100

   According to the ISO C standard, the result of calling
 fflush() on anything other than an output or update stream
 is undefined.  FreeBSD's behaviour here is consequently
 correct; any behaviour would be correct.
   Programs which rely upon fflush() not returning an error
 when passed a file which is opened read-only are broken,
 and should be fixed.
 
 Colin Percival
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404151210.i3FCANNH061273>