diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2005-12-28 20:58:08 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2005-12-28 20:58:08 +0000 |
commit | 844234fb50d86f0e03b6645bf40011d45a8ae65c (patch) | |
tree | b63a6a30c0af2c94fb6a30da53a4f61a383ada74 /libgfortran/io/unix.c | |
parent | ff7417d4c9b74b85cfb17000718b245b2aa96cb5 (diff) | |
download | gcc-844234fb50d86f0e03b6645bf40011d45a8ae65c.zip gcc-844234fb50d86f0e03b6645bf40011d45a8ae65c.tar.gz gcc-844234fb50d86f0e03b6645bf40011d45a8ae65c.tar.bz2 |
re PR libfortran/25139 ("Invalid argument" error on I/O)
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25139
* io/unix.c (fd_truncate): Set s->active to zero.
PR libgfortran/25510
* libgfortran.h: Add ERROR_INTERNAL and ERROR_INTERNAL_UNIT.
* runtime/error.c (translate_error): Add messages for new errors.
* io/list_read.c (next_char): Use new errors.
* io/transfer.c (next_record_r) (next_record_w): Use new errors.
From-SVN: r109122
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index 6750b6f..237f09e 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -601,7 +601,7 @@ fd_truncate (unix_stream * s) } s->physical_offset = s->file_length = s->logical_offset; - + s->active = 0; return SUCCESS; } |