date and time created 88/12/12 20:54:57 by kfall
[unix-history] / usr / src / old / dbx / cerror.vax.s
CommitLineData
adbf81b2
DS
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)cerror.vax.s 5.2 (Berkeley) %G%
7 *
8 * static char rcsid[] = "$Header: cerror.s,v 1.1 87/03/25 19:27:44 donn Rel $";
9 *
10 * modified version of cerror
11 *
12 * The idea is that every time an error occurs in a system call
13 * I want a special function "syserr" called. This function will
14 * either print a message and exit or do nothing depending on
15 * defaults and use of "onsyserr".
16 */
575705a6
SL
17
18.globl cerror
19.comm _errno,4
20
21cerror:
22 movl r0,_errno
adbf81b2 23 calls $0,_syserr /* new code */
575705a6
SL
24 mnegl $1,r0
25 ret
26
adbf81b2 27.globl __mycerror /* clumsy way to get this loaded */
575705a6
SL
28
29__mycerror:
30 .word 0
31 ret