public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: G77 FORTRAN "READ" Statement
@ 2004-09-16  0:06 Bud Davis
  0 siblings, 0 replies; 2+ messages in thread
From: Bud Davis @ 2004-09-16  0:06 UTC (permalink / raw)
  To: benh; +Cc: gcc-help

 Try these from the g77 info page:

Run-time Library Errors
=======================
                                                                                
   The `libg2c' library currently has the following table to relate
error code numbers, returned in `IOSTAT=' variables, to messages.  This
information should, in future versions of this document, be expanded
upon to include detailed descriptions of each message.
                                                                                
   In line with good coding practices, any of the numbers in the list
below should _not_ be directly written into Fortran code you write.
Instead, make a separate `INCLUDE' file that defines `PARAMETER' names
for them, and use those in your code, so you can more easily change the
actual numbers in the future.
                                                                                
   The information below is culled from the definition of `F_err' in
`f/runtime/libI77/err.c' in the `g77' source tree.
                                                                                
     100: "error in format"
     101: "illegal unit number"
     102: "formatted io not allowed"
     103: "unformatted io not allowed"
     104: "direct io not allowed"
     105: "sequential io not allowed"
     106: "can't backspace file"
     107: "null file name"
     108: "can't stat file"
     109: "unit not connected"
     110: "off end of record"
     111: "truncation failed in endfile"
     112: "incomprehensible list input"
     113: "out of free space"
     114: "unit not connected"
     115: "read unexpected character"
     116: "bad logical input field"
     117: "bad variable type"
     118: "bad namelist name"
     119: "variable not in namelist"
     120: "no end record"
     121: "variable count incorrect"
     122: "subscript for scalar variable"
     123: "invalid array section"
     124: "substring out of bounds"
     125: "subscript out of bounds"
     126: "can't read file"
     127: "can't write file"
     128: "'new' file exists"
     129: "can't append to file"
     130: "non-positive record number"
     131: "I/O started while already doing I/O"
                                                                                
                                                                                
HTH,
Bud
Davis                                                                           
                                                                                
                                                                                
                                                                                


^ permalink raw reply	[flat|nested] 2+ messages in thread

* G77 FORTRAN "READ" Statement
@ 2004-09-15 14:14 Ben Howell
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Howell @ 2004-09-15 14:14 UTC (permalink / raw)
  To: gcc-help

I have been unable to find, in the online documentation, a description 
of the READ statement.
I specifically would like to know what values are returned with the 
"IOSTAT" option.

Thanks for your attention!
:-)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-16  0:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16  0:06 G77 FORTRAN "READ" Statement Bud Davis
  -- strict thread matches above, loose matches on Subject: below --
2004-09-15 14:14 Ben Howell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).