Compaq Fortran for Tru64 UNIX Alpha Systems V5.4
perror, gerror, ierrno (3f)
writes system error messages
Syntax
character*len string
external perror
call perror ( string )
character*len string
external gerror
call gerror ( string )
integer*4 ierrno, lsterr
external ierrno
lsterr = ierrno( )
Description
The perror subroutine writes a message to logical unit 0 appropriate to the
last detected system error. The string argument precedes the standard
error message. The gerror subroutine writes a system error message in a
character variable. If an error occurs during either of these subroutines,
you can use errsns to get the Fortran error generated.
The ierrno function 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 can 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(2).
Restrictions
The string argument in the call to perror can be no longer than 132
characters.
The length of the string returned by gerror is determined by the calling
program.
See Also
intro(2), perror(3)