From 231301a6190605bd3ced4d961ee0d5d3fcd49d65 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 29 Apr 2024 22:00:55 +0200 Subject: Kernel/IRC: Add setsockopt and move IRC client to use new socket interface --- userland/libc/unistd/lseek.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 userland/libc/unistd/lseek.c (limited to 'userland/libc/unistd') diff --git a/userland/libc/unistd/lseek.c b/userland/libc/unistd/lseek.c new file mode 100644 index 0000000..2dcd661 --- /dev/null +++ b/userland/libc/unistd/lseek.c @@ -0,0 +1,7 @@ +#include +#include +#include + +off_t lseek(int fildes, off_t offset, int whence) { + RC_ERRNO(syscall(SYS_LSEEK, (u32)fildes, offset, whence, 0, 0)); +} -- cgit v1.2.3