First cut at updating the sh port to the new syscall stuff

5 files changed