mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
Kernel: Rename file_description(fd) => open_file_description(fd)
To go with the class rename.
This commit is contained in:
parent
4a9c18afb9
commit
213b8868af
24 changed files with 42 additions and 42 deletions
|
@ -221,7 +221,7 @@ KResultOr<FlatPtr> Process::sys$mmap(Userspace<const Syscall::SC_mmap_params*> u
|
|||
return EINVAL;
|
||||
if (static_cast<size_t>(offset) & ~PAGE_MASK)
|
||||
return EINVAL;
|
||||
auto description = TRY(fds().file_description(fd));
|
||||
auto description = TRY(fds().open_file_description(fd));
|
||||
if (description->is_directory())
|
||||
return ENODEV;
|
||||
// Require read access even when read protection is not requested.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue