kbd: use a better get_key method
[thunix.git] / kernel / sys.c
blob6a24b09d7cb059d0241f6ce7e63d5eb716daf608
1 #include <stdio.h>
2 #include <string.h>
3 #include <console.h>
5 #include <unistd.h>
6 #include <syscall.h>
7 #include <hexdump.h>
10 static int sys_conwrite(char *str)
12 con_write(str, strlen(str));
13 return 0;
16 static int sys_test1(int nr)
18 printk("Hello test with 1 argument: %d\n", nr);
19 return 0;
22 static int sys_test2(int nr , char *str)
24 printk("Hello test with 2 arguments: %d\t %s\n", nr, str);
25 return 0;
28 int (*syscall_table[])() = {
29 sys_conwrite,
30 sys_test1,
31 sys_test2,