mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
Kernel: Access OpenFileDescriptions::max_open() statically in Syscalls
This commit is contained in:
parent
c860e0ab95
commit
f38d32535c
4 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ ErrorOr<FlatPtr> Process::sys$poll(Userspace<const Syscall::SC_poll_params*> use
|
|||
REQUIRE_PROMISE(stdio);
|
||||
auto params = TRY(copy_typed_from_user(user_params));
|
||||
|
||||
if (params.nfds >= fds().max_open())
|
||||
if (params.nfds >= OpenFileDescriptions::max_open())
|
||||
return ENOBUFS;
|
||||
|
||||
Thread::BlockTimeout timeout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue