Commit | Line | Data |
---|---|---|
adbf81b2 DS |
1 | /* |
2 | * Copyright (c) 1985 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.tahoe.s 5.2 (Berkeley) %G% | |
7 | * | |
8 | * | |
9 | * modified version of cerror | |
10 | * | |
11 | * The idea is that every time an error occurs in a system call | |
12 | * I want a special function "syserr" called. This function will | |
13 | * either print a message and exit or do nothing depending on | |
14 | * defaults and use of "onsyserr". | |
15 | */ | |
2265b224 SL |
16 | |
17 | .globl cerror | |
18 | .comm _errno,4 | |
19 | ||
20 | cerror: | |
21 | movl r0,_errno | |
adbf81b2 | 22 | callf $0,_syserr /* new code */ |
2265b224 SL |
23 | mnegl $1,r0 |
24 | ret | |
25 | ||
adbf81b2 | 26 | .globl __mycerror /* clumsy way to get this loaded */ |
2265b224 SL |
27 | |
28 | __mycerror: | |
29 | .word 0 | |
30 | ret |