diff options
author | Anton Kling <anton@kling.gg> | 2023-11-24 21:47:02 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-24 21:47:02 +0100 |
commit | 4764846cc2afe0e56f4490e3973b7322c2129e29 (patch) | |
tree | 64aa0b7df0f5422a6c52f0b67f4b9a9158bfa8da /kernel/includes | |
parent | 08b63b747f9a6b4d1460195f6ca68680abcdd656 (diff) |
Refactor write() and pwrite()
Diffstat (limited to 'kernel/includes')
-rw-r--r-- | kernel/includes/syscalls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/includes/syscalls.h b/kernel/includes/syscalls.h index a431d2c..7b2a966 100644 --- a/kernel/includes/syscalls.h +++ b/kernel/includes/syscalls.h @@ -16,6 +16,8 @@ typedef struct SYS_ACCEPT_PARAMS { int syscall_accept(SYS_ACCEPT_PARAMS *args); int syscall_open(const char *file, int flags, mode_t mode); +int syscall_write(int fd, const char *buf, size_t count); +int syscall_pwrite(int fd, const char *buf, size_t count, size_t offset); void syscall_randomfill(void *buffer, u32 size); |