Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gerror(3f) — Ultrix FORTRAN 1.0 RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

perror(3)

perror(3f)  —  RISC

NAME

perror, gerror, ierrno − get system error messages

SYNTAX

subroutine perror ( string )
character*(*) string subroutine gerror ( string )
character*(*) string character*(*) function gerror() function ierrno()

DESCRIPTION

The perror function writes a message to fortran logical unit 0 appropriate to the last detected system error. The string argument is written preceding the standard error message. 

The gerror function returns the system error message in character variable specified by string.  The gerror function may be called either as a subroutine or as a function.

The ierrno returns the error number of the last detected system error. This number is updated only when an error actually occurs. Most routines and I/O statements that might generate such errors return an error code after the call. The error code is a more reliable indicator of what caused the error condition.

System error codes are described in intro(.).

The f77 I/O error codes and their meanings are:

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     not used
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     blank logical input field
117     not used
118     not used
119     not used
120     not used
121     not used
122     not used
123     not used
124     not used
125     not used
126     new file exists
127     can’t find old file
128     unknown system error
129     requires seek ability
130     illegal argument
131     not used

RESTRICTIONS

The string argument in the call to perror can be no longer than 127 characters.

The length of the string returned by gerror is determined by the calling program.

FILES

/usr/lib/libU77.a

SEE ALSO

intro(2), perror(3)
Guide to FORTRAN Language Programming for RISC Processors
 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026