kopia lustrzana https://github.com/espressif/esp-idf
77b754b47f
'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. |
||
---|---|---|
.. | ||
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 | ||
sysconf.c | ||
system_libs.lf | ||
termios.c | ||
time.c |