B: .eexit( [status] );
C: #equate _eexit .eexit void .eexit( [int status] );
.EEXIT is similar to the normal EXIT function: it closes all currently open B files and returns control to the operating system. If the "status" argument is provided, its lower nine bits are stored in bits 18-26 of the program switch word. In addition, if the subsystem was aborted by TSS, the abort code (i.e. the contents of .LABRT, octal 24) is placed in bits 27-36.
If no argument is supplied to .EEXIT, the program switch word is left as is.
The only difference between .EEXIT and EXIT is that .EEXIT examines the sign of the "status" argument. If "status" is specified and is a negative number, .EEXIT executes a DRL T.ERR to return to the system; otherwise, it executes DRL RETURN.
expl b lib exit
Copyright © 1996, Thinkage Ltd.