1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <errno.h> #include <kernel/con.h> #include <stdint.h> #include <time.h> extern uint32_t ticks; int sys_puts(char *s) { return printk(s); } time_t sys_time(void) { return ticks / 100; } int sys_dummy(void) { return -ENOSYS; }