From d25834310293c8a30b4a31418ff4ffd8fad8ef24 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Tue, 21 Oct 2014 19:08:03 +0200 Subject: started implementing our first fool-shell. --- kernel/syscalls.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'kernel/syscalls.c') diff --git a/kernel/syscalls.c b/kernel/syscalls.c index bf875fd..470939c 100644 --- a/kernel/syscalls.c +++ b/kernel/syscalls.c @@ -1,11 +1,39 @@ #define FOOLOS_MODULE_NAME "syscalls" #include "lib/logger/log.h" +#include "lib/bool/bool.h" // -void syscall_outbyte(char c) +int syscall_write(int file, char *buf, int len) { - PutConsoleChar(c,0b1111111111000000); + for(int i=0;i