add log device ; unused reset routines are nulldev
[unix-history] / usr / src / old / dbx / cerror.vax.s
CommitLineData
575705a6
SL
1# Copyright (c) 1982 Regents of the University of California
2#
e1f4dbca 3# static char sccsid[] = "@(#)cerror.vax.s 1.2 (Berkeley) %G%";
575705a6
SL
4#
5# modified version of cerror
6#
7# The idea is that every time an error occurs in a system call
8# I want a special function "syserr" called. This function will
9# either print a message and exit or do nothing depending on
10# defaults and use of "onsyserr".
11#
12
13.globl cerror
14.comm _errno,4
15
16cerror:
17 movl r0,_errno
18 calls $0,_syserr # new code
19 mnegl $1,r0
20 ret
21
22.globl __mycerror # clumsy way to get this loaded
23
24__mycerror:
25 .word 0
26 ret