From 597ac49280e8ab59e779c5d33ad266b477208293 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 22 Nov 2024 22:37:35 +0100 Subject: libc: Add RC_ERRNO to more syscalls This is very inconstant at the moment --- userland/libc/libc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'userland/libc/libc.c') 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) { -- cgit v1.2.3