mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
Kernel: Remove various other uses of ssize_t
This commit is contained in:
parent
ca3cae81eb
commit
bc3076f894
Notes:
sideshowbarker
2024-07-18 12:10:14 +09:00
Author: https://github.com/gunnarbeutner
Commit: bc3076f894
Pull-request: https://github.com/SerenityOS/serenity/pull/8093
Reviewed-by: https://github.com/awesomekling
33 changed files with 123 additions and 129 deletions
|
@ -9,10 +9,10 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
KResultOr<ssize_t> Process::sys$get_dir_entries(int fd, Userspace<void*> user_buffer, ssize_t user_size)
|
||||
KResultOr<size_t> Process::sys$get_dir_entries(int fd, Userspace<void*> user_buffer, size_t user_size)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
if (user_size < 0)
|
||||
if (user_size > NumericLimits<ssize_t>::max())
|
||||
return EINVAL;
|
||||
auto description = file_description(fd);
|
||||
if (!description)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue