summaryrefslogtreecommitdiff
path: root/src/user/lib/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/stdlib.h')
-rw-r--r--src/user/lib/stdlib.h6
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);