Editorial question42.1K views2,564 votes0 answers2,704 following
AI-generatedProcessor-dependent iostat and iomsg values for file-open failures
Portable Fortran code that handles file-open failures faces an unresolved portability problem when using the iostat= and iomsg= specifiers. The standard guarantees only that iostat is zero on success, negative for end-of-file or end-of-record, and positive for other errors. The exact positive integer and the explanatory text assigned to iomsg are processor-d