mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Kernel+LibC+LibCore: Pass fcntl extra argument as pointer-sized variable
The extra argument to fcntl is a pointer in the case of F_GETLK/F_SETLK and we were pulling out a u32, leading to pointer truncation on x86_64. Among other things, this fixes Assistant on x86_64 :^)
This commit is contained in:
parent
656528f483
commit
d728017578
4 changed files with 4 additions and 4 deletions
|
@ -349,7 +349,7 @@ public:
|
|||
ErrorOr<FlatPtr> sys$setresgid(GroupID, GroupID, GroupID);
|
||||
ErrorOr<FlatPtr> sys$alarm(unsigned seconds);
|
||||
ErrorOr<FlatPtr> sys$access(Userspace<char const*> pathname, size_t path_length, int mode);
|
||||
ErrorOr<FlatPtr> sys$fcntl(int fd, int cmd, u32 extra_arg);
|
||||
ErrorOr<FlatPtr> sys$fcntl(int fd, int cmd, uintptr_t extra_arg);
|
||||
ErrorOr<FlatPtr> sys$ioctl(int fd, unsigned request, FlatPtr arg);
|
||||
ErrorOr<FlatPtr> sys$mkdir(Userspace<char const*> pathname, size_t path_length, mode_t mode);
|
||||
ErrorOr<FlatPtr> sys$times(Userspace<tms*>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue