This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Bud Davis wrote:This snippet id from libgfortran/io/unix.c--- Johannes Lotz <johannes.lotz@rwth-aachen.de> wrote:
Hello.
I have a problem using gfortran for a code dealing with named pipes.
I have tried this here and can confirm the hangups. We are going to have to study this a bit. I have not used named pipes myself much.
Which looks to me like an error both on the writing and the reading.
Could you please try the above example, and if possible simplify it a bit more...if this demonstrates your problem, then file a bugzilla report.
Jerry
/* non-seekable files, like terminals and fifo's fail the lseek. Using ftruncate on a seekable special file (like /dev/null) is undefined, so we treat it as if the ftruncate succeeded. */ #ifdef HAVE_FTRUNCATE if (s->special_file || ftruncate (s->fd, s->logical_offset)) #else #ifdef HAVE_CHSIZE if (s->special_file || chsize (s->fd, s->logical_offset)) #endif #endif { s->physical_offset = s->file_length = 0; return SUCCESS; }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |