michallenc commented on code in PR #10602: URL: https://github.com/apache/nuttx/pull/10602#discussion_r1350739537
########## libs/libc/stdio/lib_libstream.c: ########## @@ -66,13 +67,27 @@ void lib_stream_initialize(FAR struct task_group_s *group) list->sl_head = NULL; list->sl_tail = NULL; + fd = -1; + /* Initialize stdin, stdout and stderr stream */ - list->sl_std[0].fs_fd = -1; + list->sl_std[0].fs_cookie = (FAR void *)(intptr_t)fd; Review Comment: Done ########## libs/libc/stdio/lib_libfread_unlocked.c: ########## @@ -170,7 +170,9 @@ ssize_t lib_fread_unlocked(FAR void *ptr, size_t count, FAR FILE *stream) if (remaining > buffer_available) { - bytes_read = _NX_READ(stream->fs_fd, dest, remaining); + bytes_read = stream->fs_iofunc.read(stream->fs_cookie, + (char *)dest, Review Comment: Done -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org