summaryrefslogtreecommitdiff
path: root/kernel/syscalls.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-05 23:41:51 +0200
committerMiguel <m.i@gmx.at>2018-10-05 23:41:51 +0200
commitfe8180d88540bfa96595dcc58290de5425e534e3 (patch)
treea7a681cdcf013119d121fb17ce3b731763a4a644 /kernel/syscalls.h
parent4dbe6a264d7a3bd38ca1ac0921248654a50f1b5e (diff)
drunken proggin
Diffstat (limited to 'kernel/syscalls.h')
-rw-r--r--kernel/syscalls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/syscalls.h b/kernel/syscalls.h
index f77aea5..b79e6b3 100644
--- a/kernel/syscalls.h
+++ b/kernel/syscalls.h
@@ -14,6 +14,7 @@
#include <stdint.h>
#include <stdbool.h>
+#include "fd.h"
#define SYSCALL_EXIT 60
#define SYSCALL_EXECVE 64
@@ -46,7 +47,8 @@
#define SYSCALL_GUI_WIN 88
/** Todo move somewhere else and init per process , think how to make thread safe */
-void fd_init_std_streams(uint32_t pid, bool use_framebuffer);
+void fd_init_std_streams(uint32_t pid);
+fd *get_fd(uint32_t pid,uint32_t file);
/** returns string representation of the syscall from its number */
char* syscall_get_name(uint32_t num);