Reset cached offset when reading to end of stream (BZ #17653)
commitfe8b4d98e9ac371238388469cb74011cb2120343
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 4 Dec 2014 02:43:28 +0000 (4 08:13 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 4 Dec 2014 02:43:28 +0000 (4 08:13 +0530)
treebd78796417f00a31e2112af9fa724b0b732731b0
parent61b4f792e03facb456036b3f631d58d4f53b8075
Reset cached offset when reading to end of stream (BZ #17653)

POSIX allows applications to switch file handles when a read results
in an end of file.  Unset the cached offset at this point so that it
is queried again.
ChangeLog
NEWS
libio/fileops.c
libio/tst-ftell-active-handler.c
libio/wfileops.c