The fputws function may also fail and set errno for any of the errors specified for the routine write(2).