You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/10/17 18:01:27 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #1993: libc: Skip close stdin/stdout/stderr in fclose

xiaoxiang781216 commented on pull request #1993:
URL: https://github.com/apache/incubator-nuttx/pull/1993#issuecomment-711058001


   > 1. We should not fail with EINVAL in this case, standard streams are valid arguments to fclose().
   > 2. fclose(stdout) and fclose(stderr) should call lib_fflush() for the stream. fclose() for any output stream is guaranteed to flush it per C89/C99/POSIX.
   
   Thanks for suggestion, 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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org