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/04/30 17:17:05 UTC

[GitHub] [incubator-nuttx] Ouss4 opened a new pull request #925: include/sys/stat.h: Change the xtime fields to align with the standard.

Ouss4 opened a new pull request #925:
URL: https://github.com/apache/incubator-nuttx/pull/925


   ## Summary
   Starting from Issue 7 of the POSIX standard the fields  `st_atime`, `st_mtime` and `st_ctime` have a type of `strcut timespec` instead of  `time_t`.
   This PR updates them and also provides the necessary macros to achieve backward compatibility.
   
   ## Impact
   Most of the file systems don't use these fields or just initialize them and never update them.  However others do like FAT and NXFFS.
   
   ## Testing
   Testing was performed using the "stat" example in apps/ with a FAT formatted device.
   
   


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