OSDN Git Service

2007-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2007 00:14:38 +0000 (00:14 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2007 00:14:38 +0000 (00:14 +0000)
commit352597f9a4ba003c51f29072865627304e4386da
treea8a46189a39b897342e7ac0bada35eb7b4ad16ee
parentf170d67f55d3a7c6d2025fb2d4e1e743c00cd83e
2007-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/30162
* io/unix.c (fd_flush): Don't seek if file is not seekable, defined as
s->file_length == -1.
(fd_alloc_w_at): Do not adjust file_length if file is not seekable.
(fd_seek): If not seekable, just return success.
(fd_truncate): If not seekable, no need to truncate.  Return failure if
seek fails and the stream is not a pipe.
(fd_to_stream): Make test for non-seekable file more robust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120512 138bc75d-0d04-0410-961f-82ee72b054a4
libgfortran/ChangeLog
libgfortran/io/unix.c