From 7ea113633e51579f6bbd3f03ab350fc8f8d0424f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 Nov 2003 09:58:57 +0000 Subject: Update. 2003-10-27 Daniel Jacobowitz * libio/libioP.h [_IO_USE_OLD_IO_FILE] (struct _IO_FILE_complete_plus): New type. * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus. * libio/oldiofdopen.c (_IO_old_fdopen): Likewise. * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise. Call _IO_old_init instead of _IO_init. --- libio/libioP.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libio/libioP.h') diff --git a/libio/libioP.h b/libio/libioP.h index 1e66feaa78..3973b03cbd 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -348,6 +348,17 @@ struct _IO_FILE_plus const struct _IO_jump_t *vtable; }; +#ifdef _IO_USE_OLD_IO_FILE +/* This structure is used by the compatibility code as if it were an + _IO_FILE_plus, but has enough space to initialize the _mode argument + of an _IO_FILE_complete. */ +struct _IO_FILE_complete_plus +{ + struct _IO_FILE_complete file; + const struct _IO_jump_t *vtable; +}; +#endif + /* Special file type for fopencookie function. */ struct _IO_cookie_file { -- cgit v1.2.3