Improve syscall API

Too early in the morning for this...