From a8959b3da1b160c84da6ead6f12188b1824d76e6 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 18 Apr 2024 18:22:00 +0200 Subject: LibC/Kernel: Move lseek/seek to kernel --- userland/libc/include/syscall.h | 1 + userland/libc/include/unistd.h | 1 + 2 files changed, 2 insertions(+) (limited to 'userland/libc/include') diff --git a/userland/libc/include/syscall.h b/userland/libc/include/syscall.h index 245b482..201ff3d 100644 --- a/userland/libc/include/syscall.h +++ b/userland/libc/include/syscall.h @@ -58,6 +58,7 @@ #define SYS_QUEUE_WAIT 47 #define SYS_MUNMAP 48 #define SYS_OPEN_PROCESS 49 +#define SYS_LSEEK 50 int syscall(uint32_t eax, uint32_t ebx, uint32_t ecx, uint32_t edx, uint32_t esi, uint32_t edi); diff --git a/userland/libc/include/unistd.h b/userland/libc/include/unistd.h index d6811b8..f3e0f28 100644 --- a/userland/libc/include/unistd.h +++ b/userland/libc/include/unistd.h @@ -30,4 +30,5 @@ int pread(int fd, void *buf, size_t count, size_t offset); int fork(void); int write(int fd, const char *buf, size_t count); int pwrite(int fd, const char *buf, size_t count, size_t offset); +off_t lseek(int fildes, off_t offset, int whence); #endif -- cgit v1.2.3