1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

Kernel: Move FileDescription::get_dir_entries to KResultOr<ssize_t>

This normalizes the error handling with the rest of the subsystem.
This commit is contained in:
Brian Gianforcaro 2021-05-11 04:13:04 -07:00 committed by Andreas Kling
parent 12ab0dcee0
commit a643ee5759
2 changed files with 8 additions and 8 deletions

View file

@ -56,7 +56,7 @@ public:
bool can_read() const;
bool can_write() const;
ssize_t get_dir_entries(UserOrKernelBuffer& buffer, ssize_t);
KResultOr<ssize_t> get_dir_entries(UserOrKernelBuffer& buffer, ssize_t);
KResultOr<NonnullOwnPtr<KBuffer>> read_entire_file();