Completed syscall work. Untested, but compiles.