From 93af95b3419edfc127c6ea4245753540190c520e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Jul 2022 22:21:57 +0200 Subject: user: add shorthand close() and fork() wrappers for those syscalls --- src/user/lib/stdlib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/user/lib/stdlib.h') diff --git a/src/user/lib/stdlib.h b/src/user/lib/stdlib.h index 9bbcc5f..22227e3 100644 --- a/src/user/lib/stdlib.h +++ b/src/user/lib/stdlib.h @@ -1,8 +1,9 @@ #pragma once -#include <user/lib/malloc.h> #include <shared/mem.h> +#include <shared/types.h> #include <stdbool.h> #include <stddef.h> +#include <user/lib/malloc.h> int printf(const char *fmt, ...); int snprintf(char *str, size_t len, const char *fmt, ...); @@ -21,3 +22,6 @@ int file_write(libc_file*, const char *buf, size_t len); void file_close(libc_file*); extern libc_file *stdin, *stdout; + +int fork(void); +int close(handle_t h); -- cgit v1.2.3