Ivan Grokhotkov
3d91e6d993
newlib: implement _fstat_r stub for console
...
When CONFIG_VFS_SUPPORT_IO is disabled, _read_r and _write_r
implementations in syscalls.c are used to provide console I/O via
esp_rom_uart_tx_one_char/esp_rom_uart_rx_one_char.
When newlib opens a (FILE*) stream, it calls fstat to check if the
underlying file is character-oriented. In this case, it configures the
stream to use line buffering. Otherwise (or if fstat fails) the stream
is opened as block buffered.
Since fstat wasn't provided, stdin/stdout/stderr streams got opened in
block buffered mode. For console, we need line buffered output so that
the stream buffer is flushed each time a complete line (ending with
'\n') is sent to stdout or stderr.
Fix by implementing _fstat_r stub, setting st->st_mdoe=S_IFCHR.
2021-12-21 01:25:49 +00:00
..
2021-09-17 23:19:27 +03:00
2021-11-04 10:14:49 +08:00
2021-11-23 22:39:58 +08:00
2021-11-17 12:35:06 +05:30
2021-11-17 12:35:06 +05:30
2021-11-25 08:02:14 +00:00
2021-09-17 23:19:27 +03:00
2020-11-11 07:36:35 +00:00
2021-11-23 22:39:58 +08:00
2021-09-13 14:10:19 +08:00
2021-06-01 13:46:50 +08:00
2021-11-25 09:36:55 +00:00
2021-11-12 13:30:11 -03:00
2021-09-17 16:28:47 +08:00
2021-10-28 17:33:46 +00:00
2021-10-04 19:25:32 +02:00
2021-09-15 08:09:42 +00:00
2021-03-15 17:48:23 +08:00
2021-12-20 19:02:41 +01:00
2021-10-21 10:06:03 +08:00
2021-09-10 10:12:39 +08:00
2021-11-10 13:45:05 +08:00
2020-11-11 07:36:35 +00:00
2021-11-01 17:21:21 +08:00
2021-08-31 14:08:42 +08:00
2021-09-20 17:10:44 +05:30
2020-11-25 13:47:38 +05:30
2021-10-28 08:00:28 +00:00
2021-09-17 23:19:27 +03:00
2021-09-21 09:21:18 +05:30
2021-07-19 15:00:37 +02:00
2021-07-29 09:29:29 +08:00
2021-01-20 07:32:39 +08:00
2021-10-14 10:38:02 +00:00
2021-10-15 16:50:24 +08:00
2021-11-24 16:44:56 +00:00
2021-11-04 15:18:44 +08:00
2021-06-23 11:26:56 +08:00
2021-11-23 21:13:26 +08:00
2021-09-21 16:31:21 +08:00
2021-10-25 20:19:52 +07:00
2021-08-23 12:28:32 +05:00
2021-09-03 19:36:56 +08:00
2021-09-21 08:53:18 +02:00
2021-11-25 01:16:10 +08:00
2021-11-25 19:32:19 +05:30
2021-11-25 12:03:55 +08:00
2021-11-25 10:22:41 +08:00
2021-06-30 08:52:03 +08:00
2020-11-11 07:36:35 +00:00
2021-08-30 13:16:55 +05:30
2021-08-12 08:43:35 +05:30
2021-01-13 12:55:21 +08:00
2021-11-23 22:39:58 +08:00
2021-11-04 10:59:53 +08:00
2021-10-14 17:31:01 +02:00
2021-07-19 15:05:58 +02:00
2021-12-21 01:25:49 +00:00
2020-11-11 07:36:35 +00:00
2021-11-12 09:44:04 +05:30
2020-11-11 07:36:35 +00:00
2021-10-26 16:07:31 +08:00
2020-12-31 09:27:38 +11:00
2021-11-18 14:16:25 +05:30
2021-05-31 13:49:59 +10:00
2021-11-02 16:24:18 +01:00
2020-12-25 15:46:36 +08:00
2021-10-29 14:37:23 +08:00
2021-11-24 16:44:56 +00:00
2021-01-26 10:49:01 +08:00
2021-06-29 00:19:03 +08:00
2021-04-12 05:42:50 +00:00
2021-09-17 23:19:27 +03:00
2021-03-05 11:45:47 +08:00
2021-07-28 18:15:38 +08:00
2020-12-14 18:53:14 +08:00
2021-10-11 17:34:24 +08:00
2021-03-02 15:00:56 +08:00
2021-10-21 10:11:58 +05:30
2021-11-22 14:48:32 +05:30
2021-11-02 16:24:18 +01:00