162152Sbostic# Copyright (c) 1987, 1993 262152Sbostic# The Regents of the University of California. All rights reserved. 330831Smckusick# 448091Sbostic# %sccs.include.redist.sh% 530831Smckusick# 6*62153Sbostic# @(#)cerror.s 8.1 (Berkeley) 06/06/93 730831Smckusick# 848091Sbostic 930831Smckusick# modified version of cerror 1030831Smckusick# 1130831Smckusick# The idea is that every time an error occurs in a system call 1230831Smckusick# I want a special function "syserr" called. This function will 1330831Smckusick# either print a message and exit or do nothing depending on 1430831Smckusick# defaults and use of "onsyserr". 1530831Smckusick# 1630831Smckusick 1730831Smckusick.globl cerror 1830831Smckusick.comm _errno,4 1930831Smckusick 2030831Smckusickcerror: 2130831Smckusick movl r0,_errno 2230831Smckusick callf $4,_syserr # new code 2330831Smckusick mnegl $1,r0 2430831Smckusick ret 25