Skip to content

Commit

Permalink
dirent.h: Add missing field d_ino
Browse files Browse the repository at this point in the history
Currently implementations of dirent.h do not have a field for the inode number,
but it is required by POSIX.

For better compatibility with POSIX based applications, it is should be added
even if it is not actually implemented.

Signed-off-by: Huang Qi <[email protected]>
  • Loading branch information
no1wudi committed Sep 20, 2024
1 parent 44cce29 commit c68e352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
struct dirent
{
uint8_t d_type; /* Type of file */
ino_t d_ino; /* File serial number, not implemented */
char d_name[NAME_MAX + 1]; /* File name */
};

Expand Down

0 comments on commit c68e352

Please sign in to comment.