.NLIST TOC,SYM .TITLE $OERR .SBTTL ULBLIB 015 - Output error .IDENT \V01.00\ .PSECT .LIBC. .ENABL LC,GBL ; Copyright (c) 1998 by Mentec, Inc., Nashua, NH. ; All rights reserved ; ; This software is furnished under a license for use only on a ; single computer system and may be copied only with the ; inclusion of the above copyright notice. This software, or ; any other copies thereof, may not be provided or otherwise ; made available to any other person except for use on such ; system and to one who agrees to these license terms. Title ; to and ownership of the software shall at all times remain ; in Mentec, Inc. ; ; The information in this document is subject to change without ; notice and should not be construed as a commitment by Digital ; Equipment Corporation, or Mentec, Inc. ; ; Digital and Mentec assume no responsibility for the use or ; reliability of its software on equipment which is not supplied ; by Digital or Mentec, and listed in the Software Product ; Description. ;+ ; $OERR ; The Output Error routine determines which error occurred on output, ; and returns the approriate error code to the user. ; ; R1 -> File Descriptor Block (FDB) ; ; CALL $OERR ; ; F.ERR(R1) = correct error code ; C-bit = 1 ;- S$EERB = 52 $OERR:: MOVB #FE.OFF,R0 ;Assume output file full MOVB @#S$EERB,R2 ;Get the error code BEQ 1$ ;It was the above MOVB #FE.OPE,R0 ;Assume output error DEC R2 ;Was it? BEQ 1$ ;Branch if so MOVB #FE.CNO,R0 ;Channel not open 1$: MOVB R0,F.ERR(R1) ;Save the error for the user SEC ;Indicate error RETURN .END