summaryrefslogtreecommitdiff
path: root/userland
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-11-22 22:37:35 +0100
committerAnton Kling <anton@kling.gg>2024-11-22 22:37:56 +0100
commit597ac49280e8ab59e779c5d33ad266b477208293 (patch)
tree7ea0460e4d67affd15f60d2ab57915f16a95f22e /userland
parent8fa2af9678b9e257a1dfb1e5111f35d22366f2c6 (diff)
libc: Add RC_ERRNO to more syscalls
This is very inconstant at the moment
Diffstat (limited to 'userland')
-rw-r--r--userland/libc/libc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/userland/libc/libc.c b/userland/libc/libc.c
index f1b6bdf..52a8f3f 100644
--- a/userland/libc/libc.c
+++ b/userland/libc/libc.c
@@ -217,15 +217,15 @@ int dup2(int org_fd, int new_fd) {
}
int fork(void) {
- return s_syscall(SYS_FORK);
+ RC_ERRNO(s_syscall(SYS_FORK));
}
int brk(void *addr) {
- return syscall(SYS_BRK, addr, 0, 0, 0, 0);
+ RC_ERRNO(syscall(SYS_BRK, addr, 0, 0, 0, 0));
}
void *sbrk(intptr_t increment) {
- return (void *)syscall(SYS_SBRK, (void *)increment, 0, 0, 0, 0);
+ RC_ERRNO(syscall(SYS_SBRK, (void *)increment, 0, 0, 0, 0));
}
int poll(struct pollfd *fds, size_t nfds, int timeout) {