From 928ade123ce632b2e2d4d7ead78a8409654fc803 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 12 Oct 2022 15:32:09 +0200 Subject: [PATCH] libc: Add support for the new seek() system call --- libs/libc/include/luna/syscall.h | 1 + libs/libc/src/unistd.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/libc/include/luna/syscall.h b/libs/libc/include/luna/syscall.h index 1ba942c1..21e3fb47 100644 --- a/libs/libc/include/luna/syscall.h +++ b/libs/libc/include/luna/syscall.h @@ -13,6 +13,7 @@ #define SYS_open 9 #define SYS_read 10 #define SYS_close 11 +#define SYS_seek 12 #ifndef __want_syscalls #ifdef __cplusplus diff --git a/libs/libc/src/unistd.cpp b/libs/libc/src/unistd.cpp index f70ea179..7c1479d8 100644 --- a/libs/libc/src/unistd.cpp +++ b/libs/libc/src/unistd.cpp @@ -44,6 +44,7 @@ extern "C" result = __luna_syscall2(number, arg0, arg1); break; } + case SYS_seek: case SYS_write: case SYS_read: case SYS_mmap: {