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

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
parent 42d41fdf94
commit 7291370478
11 changed files with 12 additions and 12 deletions

View file

@ -79,7 +79,7 @@ public:
virtual size_t directory_entry_count() const = 0;
virtual KResult chmod(mode_t) = 0;
virtual KResult chown(uid_t, gid_t) = 0;
virtual KResult truncate(off_t) { return KSuccess; }
virtual KResult truncate(u64) { return KSuccess; }
virtual KResultOr<NonnullRefPtr<Custody>> resolve_as_link(Custody& base, RefPtr<Custody>* out_parent = nullptr, int options = 0, int symlink_recursion_level = 0) const;
LocalSocket* socket() { return m_socket.ptr(); }