Kernel: Make File::truncate() take a u64

No point in taking a signed type here. We validate at the syscall layer
and then pass around a u64 from then on.
This commit is contained in:
Andreas Kling 2020-02-08 12:07:04 +01:00
commit 7291370478
Notes: sideshowbarker 2024-07-19 09:31:58 +09:00
11 changed files with 12 additions and 12 deletions

View file

@ -70,7 +70,7 @@ private:
virtual size_t directory_entry_count() const override;
virtual KResult chmod(mode_t) override;
virtual KResult chown(uid_t, gid_t) override;
virtual KResult truncate(off_t) override;
virtual KResult truncate(u64) override;
bool write_directory(const Vector<FS::DirectoryEntry>&);
void populate_lookup_cache() const;