mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
(PAD): use return value of _IO_padn. (buffered_vfprintf): remove line buffer when flush failed.
This commit is contained in:
parent
98fa1d6e73
commit
c21ec3268d
@ -39,7 +39,7 @@ Cambridge, MA 02139, USA. */
|
||||
#include <libioP.h>
|
||||
#define PUT(f, s, n) _IO_sputn (f, s, n)
|
||||
#define PAD(padchar) \
|
||||
(width > 0 ? (_IO_padn (s, padchar, width), done += width) : 0)
|
||||
(width > 0 ? width += _IO_padn (s, padchar, width) : 0)
|
||||
#define PUTC(c, f) _IO_putc(c, f)
|
||||
#define vfprintf _IO_vfprintf
|
||||
#define size_t _IO_size_t
|
||||
@ -862,7 +862,7 @@ DEFUN(buffered_vfprintf, (s, format, args),
|
||||
result = vfprintf (s, format, args);
|
||||
|
||||
if (fflush (s) == EOF)
|
||||
return -1;
|
||||
result = -1;
|
||||
s->__buffer = s->__bufp = s->__get_limit = s->__put_limit = NULL;
|
||||
s->__bufsize = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user