aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/io.h
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-05-18 18:06:09 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-05-18 18:06:09 +0200
commit81f4be3ce1fd9f08d811cf61413e374e0dc43166 (patch)
tree23c4c98b07e24eaf1541c8090b2f9c1c5e2f219e /libgfortran/io/io.h
parent7d72d96efe1f576cbeea5e6c59724a8d47f476b9 (diff)
downloadgcc-81f4be3ce1fd9f08d811cf61413e374e0dc43166.zip
gcc-81f4be3ce1fd9f08d811cf61413e374e0dc43166.tar.gz
gcc-81f4be3ce1fd9f08d811cf61413e374e0dc43166.tar.bz2
re PR libfortran/15235 (libgfortran doesn't build on Solaris 10)
PR fortran/15235 * gfortran.h (offset_t): Rename to ... (gfc_offset): ... this. * io/backspace.c (formatted_backspace, unformatted_backspace), io/io.h (stream, gfc_unit, global_t, file_length, file_position), transfer.c (us_read, us_write, next_record_r, next_record_w), io/unit.c (init_units), unix.c (unix_stream, fd_alloc, fd_alloc_r_at, fd_alloc_w_at, fd_seek, mmap_alloc, mmap_alloc_r_at, mmap_alloc_w_at, mmap_seek, mem_alloc_r_at, mem_alloc_w_at, mem_seek, file_length, file_position): Replace all occurences of offset_t by gfc_offset. From-SVN: r81994
Diffstat (limited to 'libgfortran/io/io.h')
-rw-r--r--libgfortran/io/io.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libgfortran/io/io.h b/libgfortran/io/io.h
index 1806fb9..7658ec8 100644
--- a/libgfortran/io/io.h
+++ b/libgfortran/io/io.h
@@ -42,11 +42,11 @@ try;
typedef struct stream
{
- char *(*alloc_w_at) (struct stream *, int *, offset_t);
- char *(*alloc_r_at) (struct stream *, int *, offset_t);
+ char *(*alloc_w_at) (struct stream *, int *, gfc_offset);
+ char *(*alloc_r_at) (struct stream *, int *, gfc_offset);
try (*sfree) (struct stream *);
try (*close) (struct stream *);
- try (*seek) (struct stream *, offset_t);
+ try (*seek) (struct stream *, gfc_offset);
try (*truncate) (struct stream *);
}
stream;
@@ -269,7 +269,7 @@ typedef struct gfc_unit
endfile;
unit_flags flags;
- offset_t recl, last_record, maxrec, bytes_left;
+ gfc_offset recl, last_record, maxrec, bytes_left;
/* recl -- Record length of the file.
last_record -- Last record number read or written
@@ -288,7 +288,7 @@ typedef struct
{
int in_library; /* Nonzero if a library call is being processed. */
int size; /* Bytes processed by the current data-transfer statement. */
- offset_t max_offset; /* Maximum file offset. */
+ gfc_offset max_offset; /* Maximum file offset. */
int item_count; /* Item number in a formatted data transfer. */
int reversion_flag; /* Format reversion has occurred. */
int first_item;
@@ -445,10 +445,10 @@ const char *inquire_write (const char *, int);
const char *inquire_readwrite (const char *, int);
#define file_length prefix(file_length)
-offset_t file_length (stream *);
+gfc_offset file_length (stream *);
#define file_position prefix(file_position)
-offset_t file_position (stream *);
+gfc_offset file_position (stream *);
#define is_seekable prefix(is_seekable)
int is_seekable (stream *);