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 newlib: fix ESHUTDOWN and ENOTSOCK having the same numerical value 2022-04-18 12:10:30 +02:00
port esp_timer: remove legacy ESP32 FRC timer implementation. 2022-02-10 15:17:49 +08:00
priv_include Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
test global: add dependency on esp_timer component and include esp_timer.h 2022-04-25 18:39:23 +02:00
test_apps ci: replace all component ut with pytest-embedded 2022-01-24 16:37:23 +08:00
.gitignore Initial public version 2016-08-17 23:08:22 +08:00
.gitmodules Initial public version 2016-08-17 23:08:22 +08:00
abort.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
assert.c newlib: Override __assert and __assert_func 2021-08-05 11:09:22 +05:30
CMakeLists.txt build system: remove lwip from common requirements 2022-05-02 20:47:17 +02:00
COPYING.NEWLIB Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp32-spiram-rom-functions-c.lf psram: add configuration macros to move workaround libc functions to flash 2021-06-23 17:40:02 +08:00
heap.c newlib: implement posix_memalign, sysconf, realpath 2021-12-13 14:40:21 +01:00
Kconfig soc: moved kconfig options out of the target component. 2022-04-21 12:09:43 +08:00
locks.c freertos: Remove legacy data types 2022-02-09 23:05:45 +08:00
newlib_init.c spi_flash, newlib: fix NULL pointer dereference on OOM 2022-03-14 18:16:42 +01:00
newlib.lf newlib: Override __assert and __assert_func 2021-08-05 11:09:22 +05:30
poll.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
pthread.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
random.c esp_hw_support/esp_system: Re-evaluate header inclusions and include directories 2022-03-07 11:18:08 +05:30
realpath.c newlib: implement posix_memalign, sysconf, realpath 2021-12-13 14:40:21 +01:00
reent_init.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
sdkconfig.rename.esp32 soc: moved kconfig options out of the target component. 2022-04-21 12:09:43 +08:00
sdkconfig.rename.esp32c3 soc: moved kconfig options out of the target component. 2022-04-21 12:09:43 +08:00
sdkconfig.rename.esp32h2 soc: moved kconfig options out of the target component. 2022-04-21 12:09:43 +08:00
sdkconfig.rename.esp32s2 soc: moved kconfig options out of the target component. 2022-04-21 12:09:43 +08:00
sdkconfig.rename.esp32s3 soc: moved kconfig options out of the target component. 2022-04-21 12:09:43 +08:00
stdatomic.c newlib: stdatomic: fix conflicting types for atomic built-in functions 2022-03-02 16:22:45 +07:00
syscalls.c newlib: fix return value of no-VFS _read_r if nothing received 2022-05-02 20:47:18 +02:00
sysconf.c newlib: implement posix_memalign, sysconf, realpath 2021-12-13 14:40:21 +01:00
system_libs.lf build system: add COMPILER_SAVE_RESTORE_LIBCALLS option 2021-10-07 15:01:35 +08:00
termios.c VFS: Fix Kconfig prefix 2019-07-02 17:17:18 +02:00
time.c newlib: auto-detect sizeof(time_t) 2022-01-11 19:01:21 +01:00