mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
Kernel+LibC: Use 64 bit values for ino_t
Since the InodeIndex encapsulates a 64 bit value, it is correct to ensure that the Kernel is exposing the entire value and the LibC is aware of it. This commit requires an entire re-compile because it's essentially a change in the Kernel ABI, together with a corresponding change in LibC.
This commit is contained in:
parent
04c2addaa8
commit
bf1adc2d5d
6 changed files with 7 additions and 6 deletions
|
@ -279,7 +279,7 @@ static size_t print_name(const struct stat& st, const String& name, const char*
|
|||
static bool print_filesystem_object(const String& path, const String& name, const struct stat& st)
|
||||
{
|
||||
if (flag_show_inode)
|
||||
printf("%08u ", st.st_ino);
|
||||
printf("%s ", String::formatted("{}", st.st_ino).characters());
|
||||
|
||||
if (S_ISDIR(st.st_mode))
|
||||
printf("d");
|
||||
|
@ -445,7 +445,7 @@ static bool print_filesystem_object_short(const char* path, const char* name, si
|
|||
}
|
||||
|
||||
if (flag_show_inode)
|
||||
printf("%08u ", st.st_ino);
|
||||
printf("%s ", String::formatted("{}", st.st_ino).characters());
|
||||
|
||||
*nprinted = print_name(st, name, nullptr, path);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue