diff options
author | H.J. Lu <hjl@gnu.org> | 1998-02-01 12:29:15 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-01 05:29:15 -0700 |
commit | 2b0aa3c5b341dece22d6cb6d07741ba8677f4917 (patch) | |
tree | 7f82432d8e5d72c64bd5ab979676321ca1746dc6 /libio/libio.h | |
parent | 9563abe0c2ebe9d5ec1117b272bb6de4ac9ffa09 (diff) | |
download | gcc-2b0aa3c5b341dece22d6cb6d07741ba8677f4917.zip gcc-2b0aa3c5b341dece22d6cb6d07741ba8677f4917.tar.gz gcc-2b0aa3c5b341dece22d6cb6d07741ba8677f4917.tar.bz2 |
filebuf.cc (filebuf::open): Call _IO_file_open if _G_HAVE_IO_FILE_OPEN is 1.
* filebuf.cc (filebuf::open): Call _IO_file_open if
_G_HAVE_IO_FILE_OPEN is 1.
* libio.h (_IO_fpos64_t, _IO_off64_t): Defined if
_G_IO_IO_FILE_VERSION == 0x20001.
* libioP.h (_IO_file_open): New declaration.
* libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_,
_IO_seekoff, _IO_seekpos): Add support for libio in egcs 2.1.
* libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t,
_IO_seekoff, _IO_seekpos, _IO_default_seekoff,
_IO_default_seekpos, _IO_default_seek, _IO_file_seekoff,
_IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off,
_IO_pos_0): Ditto.
* streambuf.h (streamoff, streampos): Ditto.
* gen-params (__extension__): Use only if gcc version >= 2.8.
From-SVN: r17580
Diffstat (limited to 'libio/libio.h')
-rw-r--r-- | libio/libio.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libio/libio.h b/libio/libio.h index da97285..6e3edcc 100644 --- a/libio/libio.h +++ b/libio/libio.h @@ -39,6 +39,10 @@ #define _IO_HAVE_ST_BLKSIZE _G_HAVE_ST_BLKSIZE #define _IO_BUFSIZ _G_BUFSIZ #define _IO_va_list _G_va_list +#if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001 +#define _IO_fpos64_t _G_fpos64_t +#define _IO_off64_t _G_off64_t +#endif #ifdef _G_NEED_STDARG_H /* This define avoids name pollution if we're using GNU stdarg.h */ @@ -220,7 +224,11 @@ struct _IO_FILE { int _fileno; int _blksize; +#ifdef _G_IO_IO_FILE_VERSION + _IO_off_t _old_offset; +#else _IO_off_t _offset; +#endif #define __HAVE_COLUMN /* temporary */ /* 1+column number of pbase(); 0 is unknown. */ @@ -233,12 +241,22 @@ struct _IO_FILE { #ifdef _IO_LOCK_T _IO_LOCK_T _lock; #endif +#if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001 + _IO_off64_t _offset; + int _unused2[16]; /* Make sure we don't get into trouble again. */ +#endif }; #ifndef __cplusplus typedef struct _IO_FILE _IO_FILE; #endif +#if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001 +#define _IO_stdin_ _IO_2_1_stdin_ +#define _IO_stdout_ _IO_2_1_stdout_ +#define _IO_stderr_ _IO_2_1_stderr_ +#endif + struct _IO_FILE_plus; extern struct _IO_FILE_plus _IO_stdin_, _IO_stdout_, _IO_stderr_; #define _IO_stdin ((_IO_FILE*)(&_IO_stdin_)) @@ -321,8 +339,13 @@ extern int _IO_vfprintf __P ((_IO_FILE *, const char *, _IO_va_list)); extern _IO_ssize_t _IO_padn __P ((_IO_FILE *, int, _IO_ssize_t)); extern _IO_size_t _IO_sgetn __P ((_IO_FILE *, void *, _IO_size_t)); +#if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001 +extern _IO_fpos64_t _IO_seekoff __P ((_IO_FILE *, _IO_off64_t, int, int)); +extern _IO_fpos64_t _IO_seekpos __P ((_IO_FILE *, _IO_fpos64_t, int)); +#else extern _IO_fpos_t _IO_seekoff __P ((_IO_FILE *, _IO_off_t, int, int)); extern _IO_fpos_t _IO_seekpos __P ((_IO_FILE *, _IO_fpos_t, int)); +#endif extern void _IO_free_backup_area __P ((_IO_FILE *)); |