xiaoxiang781216 edited a comment on pull request #1280:
URL: https://github.com/apache/incubator-nuttx/pull/1280#issuecomment-648636305


   > what's the point to have prototypes without implementations?
   
   Normally, I will try to implement the function if it isn't to hard like: 
https://github.com/apache/incubator-nuttx/pull/1279
   But, it's hard for utimes/chmod/fchmod since VFS layer lack these concept.
   On the other hand, the standard c++ library(e.g. libc++) using all most of c 
standard functions in header files like this:
   ```
   #include <__config>
   #include <stdio.h>
   
   #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
   #pragma GCC system_header
   #endif
   
   _LIBCPP_BEGIN_NAMESPACE_STD
   
   using ::FILE;
   using ::fpos_t;
   using ::size_t;
   
   using ::fclose;
   ...
   ```
   but don't really use them inside the library. So the declaration but no 
implementation could avoid to make the unacceptable change to the 3rd party 
code. 


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to