summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-22 21:28:05 +0200
committerAnton Kling <anton@kling.gg>2024-06-22 21:28:43 +0200
commit5e10cdd5b4aa7486208dd14ebef4254ec5b5d03a (patch)
tree4cdf1b5287b425e62f354b3fb47ea527e53743f6
parent01b88a7bf9fb4c78bd632bfccb06f3d320a21fd5 (diff)
Kernel: Use correct types for syscall
The previous type was a 64 bit which causes problems for the syscall calling interface.
-rw-r--r--kernel/includes/syscalls.h2
-rw-r--r--kernel/syscalls/lseek.c2
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;