Ivan Grokhotkov 77b754b47f
newlib: fix return value of no-VFS _read_r if nothing received
'read' function should return 0 when encountering an end of file. When
newlib calls read and sees EOF returned, it assumes that this
condition is permanent and never calls 'read' for this file again
(unless the read pointer is moved using fseek).
The correct behavior in case no characters were received over UART is
to return -1. In this case newlib will retry reading from file on next
call to fread, fgetc or another function which calls __srefill_r.
2022-05-02 20:47:18 +02:00
..
2016-08-17 23:08:22 +08:00
2016-08-17 23:08:22 +08:00
2021-01-12 14:05:08 +08:00
2022-02-09 23:05:45 +08:00
2021-01-12 14:05:08 +08:00
2021-01-12 14:05:08 +08:00
2019-07-02 17:17:18 +02:00
2022-01-11 19:01:21 +01:00