4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-16 19:40:07 +08:00
Corinna Vinschen eb4bfe4621 cygwin: block devices: fix file offset after short writes
When reading/writing block devices, Cygwin emulates Linux, providing
a byte-exact file position, albeit the underlying device drivers don't.

Unfortunately this only worked correctly for reading.  The raw_write
method failed to revalidate the buffer after the read-modify-write
cycle in case len is not a multiple of the sector length.  This in
turn resulted in lseek reporting a wrong file pointer.

Also, fix a condition for invalidating the buffer after writing from
a remaining read buffer.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-12-19 18:58:06 +01:00
..
2015-11-05 18:31:36 +01:00
2015-11-12 13:14:08 +01:00
2016-01-23 22:33:31 +01:00
2016-04-05 10:35:05 +02:00
2016-04-20 12:34:07 +02:00
2016-06-21 13:43:53 +02:00
2017-02-03 21:54:25 +01:00
2017-06-22 14:48:43 +02:00