fflush: adjust to glibc 2.28 libio.h removal
commit4af4a4a71827c0bc5e0ec67af23edef4f15cee8e
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Mar 2018 18:56:29 +0000 (5 10:56 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Mar 2018 19:24:12 +0000 (5 11:24 -0800)
treed963644620b0fd507673d4b2bc943eec2f77db44
parent0404c9ae2845cbf93d71b295b67d6c8bd39382d8
fflush: adjust to glibc 2.28 libio.h removal

Problem reported by Daniel P. BerrangĂ© in:
https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
* lib/fbufmode.c (fbufmode):
* lib/fflush.c (clear_ungetc_buffer_preserving_position)
(disable_seek_optimization, rpl_fflush):
* lib/fpending.c (__fpending):
* lib/fpurge.c (fpurge):
* lib/freadable.c (freadable):
* lib/freadahead.c (freadahead):
* lib/freading.c (freading):
* lib/freadptr.c (freadptr):
* lib/freadseek.c (freadptrinc):
* lib/fseeko.c (fseeko):
* lib/fseterr.c (fseterr):
* lib/fwritable.c (fwritable):
* lib/fwriting.c (fwriting):
Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
* lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
Define if not already defined.
15 files changed:
ChangeLog
lib/fbufmode.c
lib/fflush.c
lib/fpending.c
lib/fpurge.c
lib/freadable.c
lib/freadahead.c
lib/freading.c
lib/freadptr.c
lib/freadseek.c
lib/fseeko.c
lib/fseterr.c
lib/fwritable.c
lib/fwriting.c
lib/stdio-impl.h