diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-08-12 18:40:03 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-08-12 18:40:03 +0000 |
commit | bbdef797baaddf4c85163832972fd0140cad964d (patch) | |
tree | 2232a7ffec155cfd3efb2c98661f987d54b3cdc5 /libio/iofwrite.c | |
parent | ca91553a6fc4c3689bf22c562af41f45566d8a77 (diff) | |
download | glibc-bbdef797baaddf4c85163832972fd0140cad964d.tar.gz glibc-bbdef797baaddf4c85163832972fd0140cad964d.tar.xz glibc-bbdef797baaddf4c85163832972fd0140cad964d.zip |
Update.
2003-08-12 Jakub Jelinek <jakub@redhat.com> * libio/libioP.h (_IO_vtable_offset): Define. * libio/freopen.c (freopen): Use it. * libio/ioputs.c (_IO_puts): Likewise. * libio/freopen64.c (freopen64): Likewise. * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp): Likewise. * libio/iofclose.c (_IO_new_fclose): Likewise. * libio/iofputs.c (_IO_fputs): Likewise. * libio/ioftell.c (_IO_ftell): Likewise. * libio/iofwrite.c (_IO_fwrite): Likewise. * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise. * libio/iosetbuffer.c (_IO_setbuffer): Likewise. * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise. * stdio-common/vfscanf.c (ORIENT): Likewise.
Diffstat (limited to 'libio/iofwrite.c')
-rw-r--r-- | libio/iofwrite.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/iofwrite.c b/libio/iofwrite.c index 67ed6a1f12..6f0d273574 100644 --- a/libio/iofwrite.c +++ b/libio/iofwrite.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1993,96,97,98,99,2000,2002 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1996, 1997, 1998, 1999, 2000, 2002, 2003 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -41,7 +42,7 @@ _IO_fwrite (buf, size, count, fp) return 0; _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp); _IO_flockfile (fp); - if (fp->_vtable_offset != 0 || _IO_fwide (fp, -1) == -1) + if (_IO_vtable_offset (fp) != 0 || _IO_fwide (fp, -1) == -1) written = _IO_sputn (fp, (const char *) buf, request); _IO_funlockfile (fp); _IO_cleanup_region_end (0); |