diff options
Diffstat (limited to 'userland/libc/libc.c')
-rw-r--r-- | userland/libc/libc.c | 6 |
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) { |