summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/write.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-20 23:13:51 +0200
committerAnton Kling <anton@kling.gg>2024-06-20 23:13:51 +0200
commit9725791024d159ba0c5b6e8eef13a0e9077523a9 (patch)
tree91555c2f74e3d0794964f9f9cbb948b62550e46b /userland/libc/unistd/write.c
parentd7f2c29a6b238d678c6f76237b35b14eda258e7d (diff)
Add getaddrinfo and change other libc stuff
Diffstat (limited to 'userland/libc/unistd/write.c')
-rw-r--r--userland/libc/unistd/write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/userland/libc/unistd/write.c b/userland/libc/unistd/write.c
index 661fb01..0dd1824 100644
--- a/userland/libc/unistd/write.c
+++ b/userland/libc/unistd/write.c
@@ -1,6 +1,7 @@
#include <syscall.h>
#include <unistd.h>
+#include <errno.h>
int write(int fd, const char *buf, size_t count) {
- return syscall(SYS_WRITE, fd, buf, count, 0, 0);
+ RC_ERRNO(syscall(SYS_WRITE, fd, buf, count, 0, 0));
}