no1wudi commented on code in PR #8399:
URL: https://github.com/apache/nuttx/pull/8399#discussion_r1093921439
##########
libs/libc/stdio/lib_getdelim.c:
##########
@@ -235,6 +266,7 @@ ssize_t getdelim(FAR char **lineptr, size_t *n, int
delimiter,
#ifdef HAVE_GETLINE
ssize_t getline(FAR char **lineptr, size_t *n, FAR FILE *stream)
{
- return getdelim(lineptr, n, EOLCH, stream);
+ return getdelimx(lineptr, n, EOLCH, stream,
+ stream == stdin ? stdout : NULL);
Review Comment:
Yes, after reading the docs of termios, the serial driver should handle this
behavior (configurable by termios).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]