xiaoxiang781216 commented on PR #10602:
URL: https://github.com/apache/nuttx/pull/10602#issuecomment-1719956373

   
   > you would if you want to keep separated internal implementation to actual 
in-memory Os layout and a libc stdio frontend concern.
   > 
   > Indeed `nutxx/fs.h` is one possible core-stream handling implementation, 
you don't want to mixup ;
   
   If you don't like file_struct is contained in nuttx/fs.h, the right fix is 
moving it to stdio.h, but don't create a new libc_stdio_file since 
libc_stdio_file lack many fields which is required to implement buffer I/O and 
fungetc etc.
   
   > theoretically, you could swap to any `OS vfs` implementation without 
changing any of your LIBC frontend.
   > 
   
   `struct file_struct` is designed to work with stdio, `struct file` is 
designed to work with vfs. Please don't confuse them.
   


-- 
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

Reply via email to