mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2002-10-03 Ulrich Drepper <drepper@redhat.com> * libio/freopen.c: Don't re-set _wide_data element if the stream is of old style which didn't have the element. * libio/freopen64.c: Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-10-03 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* libio/freopen.c: Don't re-set _wide_data element if the stream
|
||||||
|
is of old style which didn't have the element.
|
||||||
|
* libio/freopen64.c: Likewise.
|
||||||
|
|
||||||
2002-10-02 Ulrich Drepper <drepper@redhat.com>
|
2002-10-02 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h.
|
* sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h.
|
||||||
|
@ -68,7 +68,8 @@ freopen (filename, mode, fp)
|
|||||||
{
|
{
|
||||||
INTUSE(_IO_file_close_it) (fp);
|
INTUSE(_IO_file_close_it) (fp);
|
||||||
_IO_JUMPS ((struct _IO_FILE_plus *) fp) = &INTUSE(_IO_file_jumps);
|
_IO_JUMPS ((struct _IO_FILE_plus *) fp) = &INTUSE(_IO_file_jumps);
|
||||||
fp->_wide_data->_wide_vtable = &INTUSE(_IO_wfile_jumps);
|
if (fp->_vtable_offset == 0 && fp->_wide_data != NULL)
|
||||||
|
fp->_wide_data->_wide_vtable = &INTUSE(_IO_wfile_jumps);
|
||||||
result = INTUSE(_IO_file_fopen) (fp, filename, mode, 1);
|
result = INTUSE(_IO_file_fopen) (fp, filename, mode, 1);
|
||||||
if (result != NULL)
|
if (result != NULL)
|
||||||
result = __fopen_maybe_mmap (result);
|
result = __fopen_maybe_mmap (result);
|
||||||
|
@ -54,7 +54,8 @@ freopen64 (filename, mode, fp)
|
|||||||
}
|
}
|
||||||
INTUSE(_IO_file_close_it) (fp);
|
INTUSE(_IO_file_close_it) (fp);
|
||||||
_IO_JUMPS ((struct _IO_FILE_plus *) fp) = &INTUSE(_IO_file_jumps);
|
_IO_JUMPS ((struct _IO_FILE_plus *) fp) = &INTUSE(_IO_file_jumps);
|
||||||
fp->_wide_data->_wide_vtable = &INTUSE(_IO_wfile_jumps);
|
if (fp->_vtable_offset == 0 && fp->_wide_data != NULL)
|
||||||
|
fp->_wide_data->_wide_vtable = &INTUSE(_IO_wfile_jumps);
|
||||||
result = INTUSE(_IO_file_fopen) (fp, filename, mode, 0);
|
result = INTUSE(_IO_file_fopen) (fp, filename, mode, 0);
|
||||||
if (result != NULL)
|
if (result != NULL)
|
||||||
result = __fopen_maybe_mmap (result);
|
result = __fopen_maybe_mmap (result);
|
||||||
|
Reference in New Issue
Block a user