esp-idf/components/newlib
Ivan Grokhotkov 134b5153e3
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-18 19:33:10 +02:00
..
platform_include [newlib]: Added missing includes 2021-10-14 11:26:56 +08:00
port esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08:00
priv_include Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
test tests: refactoring of the gcc's inner functions, because clang doesn't support them 2021-09-10 19:51:27 +03:00
test_apps newlib: implement posix_memalign, sysconf, realpath 2021-12-22 10:54:54 +01: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 newlib: implement posix_memalign, sysconf, realpath 2021-12-22 10:54:54 +01:00
component.mk newlib: Override __assert and __assert_func 2021-08-05 11:09:22 +05:30
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-22 10:54:54 +01:00
Kconfig Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
locks.c esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08:00
Makefile.old Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
newlib_init.c esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08: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 esp32: Add esp_fill_random() function 2018-09-03 04:39:45 +00:00
realpath.c newlib: implement posix_memalign, sysconf, realpath 2021-12-22 10:54:54 +01:00
reent_init.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
stdatomic.c newlib: stdatomic: implement missing "op_fetch", "nand" builtins 2021-12-21 02:15:45 +01:00
syscalls.c newlib: fix return value of no-VFS _read_r if nothing received 2022-05-18 19:33:10 +02:00
sysconf.c newlib: implement posix_memalign, sysconf, realpath 2021-12-22 10:54:54 +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 Updates for riscv support 2020-11-13 07:49:11 +11:00