decode errno when a syscall fails.

Not sure where this negative check idea came from, but it was misguided.