Shift around syscall stuff to make it more generic.