diff options
author | Joseph Myers <josmyers@redhat.com> | 2025-01-28 21:53:49 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2025-01-28 21:53:49 +0000 |
commit | 94251ae99edaa911f4cb8056748dca0874ea268c (patch) | |
tree | 6ebe24522cb1b099531daebe8c63765e0080140a /wcsmbs/wcsstr.c | |
parent | be6818be31e756398e45f70e2819d78be0961223 (diff) | |
download | glibc-94251ae99edaa911f4cb8056748dca0874ea268c.zip glibc-94251ae99edaa911f4cb8056748dca0874ea268c.tar.gz glibc-94251ae99edaa911f4cb8056748dca0874ea268c.tar.bz2 |
Make fflush (NULL) flush input files (bug 32369)
As discussed in bug 32369 and required by POSIX, the POSIX feature
fflush (NULL) should flush input files, not just output files. The
POSIX requirement is that "fflush() shall perform this flushing action
on all streams for which the behavior is defined above", and the
definition for input files is for "a stream open for reading with an
underlying file description, if the file is not already at EOF, and
the file is one capable of seeking".
Implement this requirement in glibc. (The underlying flushing
implementation is what deals with avoiding errors for seeking on an
unseekable file.)
Tested for x86_64.
Diffstat (limited to 'wcsmbs/wcsstr.c')
0 files changed, 0 insertions, 0 deletions