Syscalls fixed

Was using long longs for a few syscalls and treating them like double
words. Changed the function declarations/definitions a bit and added a
6-arg syscall macro.