Kernel: Make OpenFileDescritorSet::open take rvalue

This gets rid of some implicit allocations from copy constructors
This commit is contained in:
2024-08-28 16:36:10 +03:00
parent 5f66ef34dd
commit d20752c318
3 changed files with 8 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ namespace Kernel
BAN::ErrorOr<void> clone_from(const OpenFileDescriptorSet&);
BAN::ErrorOr<int> open(VirtualFileSystem::File, int flags);
BAN::ErrorOr<int> open(VirtualFileSystem::File&&, int flags);
BAN::ErrorOr<int> open(BAN::StringView absolute_path, int flags);
BAN::ErrorOr<int> socket(int domain, int type, int protocol);