mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +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
|
@ -33,7 +33,7 @@ KResultOr<FlatPtr> Process::sys$writev(int fd, Userspace<const struct iovec*> io
|
|||
return EINVAL;
|
||||
}
|
||||
|
||||
auto description = TRY(fds().file_description(fd));
|
||||
auto description = TRY(fds().open_file_description(fd));
|
||||
if (!description->is_writable())
|
||||
return EBADF;
|
||||
|
||||
|
@ -101,7 +101,7 @@ KResultOr<FlatPtr> Process::sys$write(int fd, Userspace<const u8*> data, size_t
|
|||
return EINVAL;
|
||||
|
||||
dbgln_if(IO_DEBUG, "sys$write({}, {}, {})", fd, data.ptr(), size);
|
||||
auto description = TRY(fds().file_description(fd));
|
||||
auto description = TRY(fds().open_file_description(fd));
|
||||
if (!description->is_writable())
|
||||
return EBADF;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue