Check result of fread.
Move check_sign to anonymous namespace.