Adjust wide data buffer pointers during fseek and ftell
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 28 Sep 2012 12:50:40 +0000 (18:20 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 28 Sep 2012 12:51:39 +0000 (18:21 +0530)
commit4573c6b09884a93fffa3a754678ef881cadebfb3
tree89734fdb5480204f4bf4ad5c0977c39a5265ec2f
parent784421e72b926d027398ee93c6c2f1ddad549c6a
Adjust wide data buffer pointers during fseek and ftell

[BZ #14543]
Set the internal buffer state correctly whenever the external buffer
state is modified by fseek by either computing the current
_IO_read_ptr/end for the internal buffer based on the new _IO_read_ptr
in the external buffer or converting the content read into the
external buffer, up to the extent of the requested fseek offset.
ChangeLog
NEWS
libio/Makefile
libio/tst-fseek.c [new file with mode: 0644]
libio/wfileops.c