diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-08 12:07:04 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-08 12:07:04 +0100 |
commit | 7291370478c8ccb2ad94e1aa31f47e1f9cc7e300 (patch) | |
tree | 64610c534bd4ad04a1ca5a79fd76552f55c70ac6 /Kernel/FileSystem/Inode.h | |
parent | 42d41fdf947956af0dcbab46dbd316a38e7f6199 (diff) | |
download | serenity-7291370478c8ccb2ad94e1aa31f47e1f9cc7e300.zip |
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.
Diffstat (limited to 'Kernel/FileSystem/Inode.h')
-rw-r--r-- | Kernel/FileSystem/Inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Inode.h b/Kernel/FileSystem/Inode.h index 23ec6616f2..0747eb4c5d 100644 --- a/Kernel/FileSystem/Inode.h +++ b/Kernel/FileSystem/Inode.h @@ -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(); } |