summaryrefslogtreecommitdiff
path: root/userland/libc/include
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-04-18 18:22:00 +0200
committerAnton Kling <anton@kling.gg>2024-04-18 18:22:20 +0200
commita8959b3da1b160c84da6ead6f12188b1824d76e6 (patch)
tree6f8995144d9fd184b2905ae07da94565c5b2ffe7 /userland/libc/include
parent5606d715128edaf1830c895fd3619f1f1af67d56 (diff)
LibC/Kernel: Move lseek/seek to kernel
Diffstat (limited to 'userland/libc/include')
-rw-r--r--userland/libc/include/syscall.h1
-rw-r--r--userland/libc/include/unistd.h1
2 files changed, 2 insertions, 0 deletions
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