i386: implement syscalls