esp-idf/components/newlib
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
..
platform_include
port
priv_include
test
test_apps
.gitignore
.gitmodules
CMakeLists.txt
COPYING.NEWLIB
Kconfig
abort.c
assert.c
esp32-spiram-rom-functions-c.lf
heap.c
locks.c
newlib.lf
newlib_init.c
poll.c
pthread.c
random.c
realpath.c
reent_init.c
sdkconfig.rename.esp32
sdkconfig.rename.esp32c3
sdkconfig.rename.esp32h2
sdkconfig.rename.esp32s2
sdkconfig.rename.esp32s3
stdatomic.c
syscalls.c newlib: fix return value of no-VFS _read_r if nothing received 2022-05-02 20:47:18 +02:00
sysconf.c
system_libs.lf
termios.c
time.c