date and time created 90/06/25 15:38:16 by bostic
[unix-history] / usr / src / old / dbx / cerror.sun.s
CommitLineData
ed370190 1/*
8a90f3aa
KB
2 * Copyright (c) 1983 The Regents of the University of California.
3 * All rights reserved.
ed370190 4 *
6ecf3d85 5 * %sccs.include.redist.c%
ed370190 6 *
6ecf3d85 7 * @(#)cerror.sun.s 5.3 (Berkeley) %G%
8a90f3aa
KB
8 */
9
10/*
ed370190
DS
11 * modified version of cerror
12 *
13 * The idea is that every time an error occurs in a system call
14 * I want a special function "syserr" called. This function will
15 * either print a message and exit or do nothing depending on
16 * defaults and use of "onsyserr".
17 */
18
19.data
20.globl _errno
21_errno:
22 .long 0
23.text
24
25.globl cerror
26cerror:
27 movl d0,_errno
28 jbsr _syserr /* new code */
29 moveq #-1,d0
30 rts
31
32.globl __mycerror /* clumsy way to get this loaded */
33
34__mycerror:
35 rts