Add basic fstat() support. Now all that is needed is to modify ALL of the file systems.

This commit is contained in:
Gregory Nutt
2017-02-12 12:48:24 -06:00
parent 9a3af1a3e0
commit c5a8e96dbc
6 changed files with 370 additions and 175 deletions
+1
View File
@@ -265,6 +265,7 @@ struct mountpt_operations
int (*sync)(FAR struct file *filep);
int (*dup)(FAR const struct file *oldp, FAR struct file *newp);
int (*fstat)(FAR const struct file *filep, FAR struct stat *buf);
/* Directory operations */
-2
View File
@@ -155,9 +155,7 @@ extern "C"
int mkdir(FAR const char *pathname, mode_t mode);
int mkfifo(FAR const char *pathname, mode_t mode);
int stat(const char *path, FAR struct stat *buf);
#if 0 /* Not yet supported */
int fstat(int fd, FAR struct stat *buf);
#endif
#undef EXTERN
#if defined(__cplusplus)