From 5e10cdd5b4aa7486208dd14ebef4254ec5b5d03a Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sat, 22 Jun 2024 21:28:05 +0200 Subject: Kernel: Use correct types for syscall The previous type was a 64 bit which causes problems for the syscall calling interface. --- kernel/includes/syscalls.h | 2 +- kernel/syscalls/lseek.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/includes/syscalls.h b/kernel/includes/syscalls.h index 2fabb2b..a7ebfe0 100644 --- a/kernel/includes/syscalls.h +++ b/kernel/includes/syscalls.h @@ -121,4 +121,4 @@ int syscall_socket(SYS_SOCKET_PARAMS *args); int syscall_fstat(int fd, struct stat *buf); u32 syscall_uptime(void); int syscall_isatty(int fd); -off_t syscall_lseek(int fd, off_t offset, int whence); +int syscall_lseek(int fd, int offset, int whence); diff --git a/kernel/syscalls/lseek.c b/kernel/syscalls/lseek.c index 3e38822..e85d4c1 100644 --- a/kernel/syscalls/lseek.c +++ b/kernel/syscalls/lseek.c @@ -7,7 +7,7 @@ #define SEEK_CUR 1 #define SEEK_END 2 -off_t syscall_lseek(int fd, off_t offset, int whence) { +int syscall_lseek(int fd, int offset, int whence) { vfs_fd_t *fd_ptr = get_vfs_fd(fd, NULL); if (!fd_ptr) { return -EBADF; -- cgit v1.2.3