diff options
author | Marvin Borner | 2020-04-28 20:59:57 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-28 20:59:57 +0200 |
commit | 5f8b5ce7efb7738eaebad43f9648975788ae19ff (patch) | |
tree | ab8fc4d4baa4adb99dc90461df689650acf34cef /src/kernel/syscall/actions/sys_read.c | |
parent | bfe16de4be67565f1a1e7b1331fcbe3aedf9c54e (diff) |
Fixed userspace entering...
Many other fixes too, but I won't mention them because I don't want to
:)
Diffstat (limited to 'src/kernel/syscall/actions/sys_read.c')
-rw-r--r-- | src/kernel/syscall/actions/sys_read.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/kernel/syscall/actions/sys_read.c b/src/kernel/syscall/actions/sys_read.c deleted file mode 100644 index 24d83d1..0000000 --- a/src/kernel/syscall/actions/sys_read.c +++ /dev/null @@ -1,21 +0,0 @@ -#include <stdint.h> -#include <kernel/lib/stdio.h> -#include <kernel/input/input.h> -#include <kernel/lib/lib.h> -#include <kernel/lib/string.h> - -uint32_t sys_read(char *buf) -{ - keyboard_clear_buffer(); - keyboard_char_buffer = 0; - while (keyboard_char_buffer != '\n') { - getch(); - } - memcpy(buf, keyboard_buffer, strlen(keyboard_buffer)); - return strlen(buf); -} - -uint32_t sys_readc() -{ - return (uint32_t)getch(); -}
\ No newline at end of file |