file reorg, pathnames.h, paths.h
[unix-history] / usr / src / old / dbx / cerror.sun.s
CommitLineData
ed370190
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.sun.s 5.1 (Berkeley) %G%
7 *
8 * static char rcsid[] = "$Header: cerror.s,v 1.2 87/03/25 19:32:31 donn Exp $";
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 */
17
18.data
19.globl _errno
20_errno:
21 .long 0
22.text
23
24.globl cerror
25cerror:
26 movl d0,_errno
27 jbsr _syserr /* new code */
28 moveq #-1,d0
29 rts
30
31.globl __mycerror /* clumsy way to get this loaded */
32
33__mycerror:
34 rts