4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-16 11:31:00 +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
..
2017-12-18 19:46:18 +01:00
2016-11-24 16:09:31 +01:00
2017-12-18 19:46:18 +01:00
2016-08-23 15:07:42 +01:00
2016-06-25 00:43:01 +02:00
2016-06-24 23:32:39 +02:00
2016-06-24 23:32:39 +02:00
2015-11-18 19:09:47 +01:00
2017-03-27 22:03:58 +01:00
2017-03-27 22:03:58 +01:00
2015-08-17 11:05:43 +02:00
2016-06-23 21:30:15 +02:00
2016-06-24 23:32:39 +02:00
2017-03-27 22:03:58 +01:00
2017-11-28 10:26:00 -06:00
2017-12-18 19:46:18 +01:00
2016-06-23 16:56:41 +02:00
2017-04-24 17:14:03 +02:00
2017-04-24 17:14:03 +02:00