You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/08/08 08:18:06 UTC
[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10110: Use lib_free for memory deallocation after strdup or asprintf
xiaoxiang781216 commented on code in PR #10110:
URL: https://github.com/apache/nuttx/pull/10110#discussion_r1286773821
##########
arch/risc-v/src/esp32c3/esp32c3_libc_stubs.c:
##########
@@ -59,12 +60,12 @@ struct _reent;
int _close_r(struct _reent *r, int fd)
{
- return close(fd);
+ return nx_close(fd);
Review Comment:
the major difference between close and nx_close is how to handle the error code:
1. nx_close return error code to caller
2. close set error code to errno
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org