Check errno ERANGE; add program name, error func