This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch,libgfortran] PR45723 opening /dev/null for appending writes fails
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Jerry DeLisle <jvdelisle at frontier dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 20 Sep 2010 21:56:46 -0700
- Subject: Re: [patch,libgfortran] PR45723 opening /dev/null for appending writes fails
- References: <4C981E53.1080608@frontier.com>
On Mon, Sep 20, 2010 at 07:54:11PM -0700, Jerry DeLisle wrote:
> Hi,
>
> This patch is simple. Test case attached.
>
> Regression tested on x86-64.
>
> OK for trunk?
>
Is the file size guaranteed to be 0 for all
non-seekable files on all operating systems
supported by gfortran? If someone is stupid
enough to open /dev/null for append, then
he should be prepared to suffer the consequence.
--
Steve