summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/ftruncate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/ftruncate.cpp')
-rw-r--r--Kernel/Syscalls/ftruncate.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Syscalls/ftruncate.cpp b/Kernel/Syscalls/ftruncate.cpp
index feaf027a99..f02af95b8a 100644
--- a/Kernel/Syscalls/ftruncate.cpp
+++ b/Kernel/Syscalls/ftruncate.cpp
@@ -9,6 +9,8 @@
namespace Kernel {
+// NOTE: The length is passed by pointer because off_t is 64bit,
+// hence it can't be passed by register on 32bit platforms.
ErrorOr<FlatPtr> Process::sys$ftruncate(int fd, Userspace<off_t const*> userspace_length)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)