yamt commented on issue #15840:
URL: https://github.com/apache/nuttx/issues/15840#issuecomment-2658219191

   > This may not be considered a bug, but the behaviour of fflush on files in 
a littlefs filesystem does not match what I would expect to see.
   
   iirc, fflush only ought to flush the stream buffer.
   ie. i don't consider it a bug.
   
   > could anyone tell me an alternative option so I can use the FILE API but 
still have my log file be synced?
   
   how about `fsync(fileno(fp))`?
   


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