summaryrefslogtreecommitdiff
path: root/userland/libc/libc.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-24 21:47:02 +0100
committerAnton Kling <anton@kling.gg>2023-11-24 21:47:02 +0100
commit4764846cc2afe0e56f4490e3973b7322c2129e29 (patch)
tree64aa0b7df0f5422a6c52f0b67f4b9a9158bfa8da /userland/libc/libc.c
parent08b63b747f9a6b4d1460195f6ca68680abcdd656 (diff)
Refactor write() and pwrite()
Diffstat (limited to 'userland/libc/libc.c')
-rw-r--r--userland/libc/libc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/userland/libc/libc.c b/userland/libc/libc.c
index 6985ff9..ea097cb 100644
--- a/userland/libc/libc.c
+++ b/userland/libc/libc.c
@@ -181,20 +181,6 @@ int execv(char *path, char **argv) {
int s_syscall(int sys);
-int write(int fd, const char *buf, size_t count) {
- return syscall(SYS_WRITE, fd, buf, count, 0, 0);
-}
-
-int pwrite(int fd, const char *buf, size_t count, size_t offset) {
- struct SYS_PWRITE_PARAMS args = {
- .fd = fd,
- .buf = buf,
- .count = count,
- .offset = offset,
- };
- return syscall(SYS_PWRITE, (u32)&args, 0, 0, 0, 0);
-}
-
int wait(int *stat_loc) { return syscall(SYS_WAIT, (u32)stat_loc, 0, 0, 0, 0); }
void exit(int status) { syscall(SYS_EXIT, (u32)status, 0, 0, 0, 0); }