error checking in return value of system syscall