LibC: Implement rewinddir

This commit is contained in:
2025-06-28 16:55:13 +03:00
parent 5f07d53034
commit d68c88c3f9
+7
View File
@@ -102,3 +102,10 @@ readdir_do_syscall:
return &dirp->entries[0];
}
void rewinddir(DIR* dirp)
{
dirp->entry_count = 0;
dirp->entry_index = 0;
lseek(dirp->fd, 0, SEEK_SET);
}