Include EINVAL in the possible errors.