cannot work out how to call syscall on osx