From 589ff4f476f1b78601022ba80fa1a8d048550d65 Mon Sep 17 00:00:00 2001 From: Qwinci <32550582+Qwinci@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:18:52 +0200 Subject: [PATCH] fcntl: stub F_SETLK/F_SETWLK --- kernel-src/sys/syscalls/fcntl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel-src/sys/syscalls/fcntl.c b/kernel-src/sys/syscalls/fcntl.c index 95089f4b..fd7faab4 100644 --- a/kernel-src/sys/syscalls/fcntl.c +++ b/kernel-src/sys/syscalls/fcntl.c @@ -9,6 +9,8 @@ #define F_SETFD 2 #define F_GETFL 3 #define F_SETFL 4 +#define F_SETLK64 6 +#define F_SETLKW64 7 #define FD_CLOEXEC 1 @@ -52,6 +54,11 @@ syscallret_t syscall_fcntl(context_t *, int fd, int cmd, uint64_t arg) { ret.errno = fd_getflags(fd, &flg); ret.ret = flg ? FD_CLOEXEC : 0; break; + case F_SETLK64: + case F_SETLKW64: + ret.errno = 0; + ret.ret = 0; + break; default: ret.errno = EINVAL; goto cleanup;