diff options
author | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-31 14:45:50 +0000 |
---|---|---|
committer | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-31 14:45:50 +0000 |
commit | cc65b133497323602614f80780db62a8dd7e22c8 (patch) | |
tree | 041a48d3c01978c5d828f9408cf2ffcb1db07571 /libgfortran/io/unix.h | |
parent | e54aa8a4b85c7f1e8ea0dd233a65c1daa5c816cb (diff) |
Simplify handling of special files.
2011-10-31 Janne Blomqvist <jb@gcc.gnu.org>
* io/file_pos.c (st_rewind): Handle regular and special files
identically.
* io/intrinsics.c (fseek_sub): Don't check whether we think the
file is seekable, just do what the caller says.
* io/transfer.c (skip_record): First try to seek, then fallback to
reading and throwing away what we read.
* io/unit.c (update_position): Don't check whether file is
seekable, just try to do what we're told.
(unit_truncate): Likewise.
* io/unix.c (struct unix_stream): Remove special_file flag.
(buf_flush): Remove code for handling unseekable files.
(buf_seek): Likewise.
(fd_to_stream): Use buffered IO only for regular files.
(file_length): Remove is_seekable() call.
(is_seekable): Remove function.
(is_special): Likewise.
* io/unix.h: Remove prototypes for is_seekable and is_special.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180701 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/unix.h')
-rw-r--r-- | libgfortran/io/unix.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libgfortran/io/unix.h b/libgfortran/io/unix.h index f7d6f08643e..08c83e474cf 100644 --- a/libgfortran/io/unix.h +++ b/libgfortran/io/unix.h @@ -158,12 +158,6 @@ internal_proto(inquire_readwrite); extern gfc_offset file_length (stream *); internal_proto(file_length); -extern int is_seekable (stream *); -internal_proto(is_seekable); - -extern int is_special (stream *); -internal_proto(is_special); - extern void flush_if_preconnected (stream *); internal_proto(flush_if_preconnected); |