mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibC: Fix struct layout for sys_dirent on x86_64
This commit is contained in:
parent
90e3aa35ef
commit
1d4ae9194e
Notes:
sideshowbarker
2024-07-18 11:19:58 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/1d4ae9194ed Pull-request: https://github.com/SerenityOS/serenity/pull/8317
@ -57,11 +57,11 @@ void rewinddir(DIR* dirp)
|
||||
struct [[gnu::packed]] sys_dirent {
|
||||
ino_t ino;
|
||||
u8 file_type;
|
||||
size_t namelen;
|
||||
u32 namelen;
|
||||
char name[];
|
||||
size_t total_size()
|
||||
{
|
||||
return sizeof(ino_t) + sizeof(u8) + sizeof(size_t) + sizeof(char) * namelen;
|
||||
return sizeof(ino_t) + sizeof(u8) + sizeof(u32) + sizeof(char) * namelen;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user