Implement a syscall wrapper.