[Bug libfortran/21593] FAIL: gfortran.dg/dev_null.f90

dave at hiauly1 dot hia dot nrc dot ca gcc-bugzilla@gcc.gnu.org
Sat Jun 18 16:52:00 GMT 2005


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-06-18 16:52 -------
Subject: Re:  FAIL: gfortran.dg/dev_null.f90

> The redhat system that I checked, identifies /dev/null as "a 
> special file" in null(4).  The ftruncate man page specifically
> states the behavior for "regular files".  So redhat has wiggle
> room with its use of errno.

The HP-UX 11.11 manpage says for ftruncate:

      The effect of ftruncate() and truncate() on other types of files is
      unspecified.

The return value from the ftruncate call in the test program is 0.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21593



More information about the Gcc-bugs mailing list