summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/lseek.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-04-29 22:00:55 +0200
committerAnton Kling <anton@kling.gg>2024-04-29 22:00:55 +0200
commit231301a6190605bd3ced4d961ee0d5d3fcd49d65 (patch)
tree8af67c28f9b638393f700fbaf2c9e33fd97a8b46 /userland/libc/unistd/lseek.c
parent7d2ab3a71f4bda9d8ee997764d98b29e13a902c5 (diff)
Kernel/IRC: Add setsockopt and move IRC client to use new socket interface
Diffstat (limited to 'userland/libc/unistd/lseek.c')
-rw-r--r--userland/libc/unistd/lseek.c7
1 files changed, 7 insertions, 0 deletions
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 <errno.h>
+#include <unistd.h>
+#include <syscall.h>
+
+off_t lseek(int fildes, off_t offset, int whence) {
+ RC_ERRNO(syscall(SYS_LSEEK, (u32)fildes, offset, whence, 0, 0));
+}