mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add d_ino to struct dirent.
This commit is contained in:
parent
f174660e2b
commit
c829cb3c20
2 changed files with 3 additions and 0 deletions
|
@ -86,6 +86,7 @@ int fddir_sortix_read(void* user, struct dirent* dirent, size_t* size)
|
|||
*size = needed;
|
||||
if ( provided < needed ) { return 1; }
|
||||
|
||||
dirent->d_ino = info->current->d_ino;
|
||||
dirent->d_reclen = needed;
|
||||
strcpy(dirent->d_name, info->current->d_name);
|
||||
|
||||
|
|
|
@ -29,11 +29,13 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@include(ino_t.h)
|
||||
@include(size_t.h)
|
||||
@include(DIR.h)
|
||||
|
||||
struct dirent
|
||||
{
|
||||
ino_t d_ino;
|
||||
size_t d_reclen;
|
||||
char d_name[0];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue