diff options
author | dzwdz | 2022-07-11 22:21:57 +0200 |
---|---|---|
committer | dzwdz | 2022-07-11 22:21:57 +0200 |
commit | 93af95b3419edfc127c6ea4245753540190c520e (patch) | |
tree | afacc32ba93239f2cde81efd35aacb015647cf99 /src/user/lib/stdlib.h | |
parent | 2e79a2e5af3affa7a6a3becdffb1c91d89af90af (diff) |
user: add shorthand close() and fork() wrappers for those syscalls
Diffstat (limited to 'src/user/lib/stdlib.h')
-rw-r--r-- | src/user/lib/stdlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); |