This is an effort to port the plan9 syscall command to Linux. Not all the system calls are supposed to work since the system call convention on linux is more complex than plan9 but the most trivial ones are already implemented. Instead of relying on the libc implementation this program uses the syscall(2) library function to invoke system calls.
make
make install
make uninstall # to remove the syscall program and man page
man 1 syscall
syscall -h
syscall write 1 Hello 5
syscall -o read 0 buf 5
syscall exit 2
syscall -o getpid
syscall -ov getcwd buf 100