mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 22:35:07 +00:00
Kernel+Userland: Make some of the POSIX types larger
Expand the following types from 32-bit to 64-bit: - blkcnt_t - blksize_t - dev_t - nlink_t - suseconds_t - clock_t This matches their size on other 64-bit systems.
This commit is contained in:
parent
d8bb32117e
commit
b98f537f11
3 changed files with 8 additions and 8 deletions
|
@ -38,16 +38,16 @@ typedef int id_t;
|
||||||
typedef uint64_t ino_t;
|
typedef uint64_t ino_t;
|
||||||
typedef int64_t off_t;
|
typedef int64_t off_t;
|
||||||
|
|
||||||
typedef uint32_t blkcnt_t;
|
typedef uint64_t blkcnt_t;
|
||||||
typedef uint32_t blksize_t;
|
typedef uint64_t blksize_t;
|
||||||
typedef uint32_t dev_t;
|
typedef uint64_t dev_t;
|
||||||
typedef uint16_t mode_t;
|
typedef uint16_t mode_t;
|
||||||
typedef uint32_t nlink_t;
|
typedef uint64_t nlink_t;
|
||||||
|
|
||||||
typedef int64_t time_t;
|
typedef int64_t time_t;
|
||||||
typedef uint32_t useconds_t;
|
typedef uint32_t useconds_t;
|
||||||
typedef int32_t suseconds_t;
|
typedef int64_t suseconds_t;
|
||||||
typedef uint32_t clock_t;
|
typedef uint64_t clock_t;
|
||||||
|
|
||||||
typedef uint64_t fsblkcnt_t;
|
typedef uint64_t fsblkcnt_t;
|
||||||
typedef uint64_t fsfilcnt_t;
|
typedef uint64_t fsfilcnt_t;
|
||||||
|
|
|
@ -416,7 +416,7 @@ struct SC_chown_params {
|
||||||
struct SC_mknod_params {
|
struct SC_mknod_params {
|
||||||
StringArgument path;
|
StringArgument path;
|
||||||
u16 mode;
|
u16 mode;
|
||||||
u32 dev;
|
dev_t dev;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SC_symlink_params {
|
struct SC_symlink_params {
|
||||||
|
|
|
@ -337,7 +337,7 @@ static bool print_filesystem_object(DeprecatedString const& path, DeprecatedStri
|
||||||
else
|
else
|
||||||
printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
|
printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
|
||||||
|
|
||||||
printf(" %3u", st.st_nlink);
|
printf(" %3lu", st.st_nlink);
|
||||||
|
|
||||||
auto username = users.get(st.st_uid);
|
auto username = users.get(st.st_uid);
|
||||||
if (!flag_print_numeric && username.has_value()) {
|
if (!flag_print_numeric && username.has_value()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue