diff --git a/include/dirent.h b/include/dirent.h index 23da8e06bb..e252fae12e 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -112,6 +112,7 @@ struct dirent { + ino_t d_ino; /* file number */ uint8_t d_type; /* Type of file */ char d_name[NAME_MAX + 1]; /* File name */ }; diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index fbf1e8bca1..88bed488ed 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -152,6 +152,7 @@ struct nuttx_timespec struct nuttx_dirent_s { + ino_t d_ino; /* file number */ uint8_t d_type; /* type of file */ char d_name[CONFIG_NAME_MAX + 1]; /* filename */ };