Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ userexit(3X) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

USEREXIT(3X)  —  Silicon Graphics

NAME

userexit − user routine for intercepting FORTRAN runtime errors. 

SYNOPSIS

subroutine userexit(addr,errcode)
integer*4 addr
integer*2 errcode

DESCRIPTION

The routine userexit is called in the early stages of FORTRAN runtime error processing, prior to closing open files.  A dummy copy of userexit is provided in the FORTRAN library.  Users may perform their own cleanup operations by including a private version of userexit in their program. 

userexit is called with two parameters.  The first parameter, addr, is the address at which the error occurred.  The second parameter, errcode, is the FORTRAN error code.  FORTRAN run-time error codes with their corresponding messages are found in the file /usr/lib/ftnrterrs.

The routine userexit will only be called once.  If a FORTRAN runtime error is encountered after userexit has been called, the program will abort. 

Version 2.5  —  April 22, 1987

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