cerror.s
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· S 代码 · 共 30 行
S
30 行
#@(#)cerror.s 4.1 Ultrix 7/17/90# Copyright (c) 1982 Regents of the University of California## static char sccsid[] = "@(#)cerror.s 1.3 9/2/82";## static char rcsid[] = "$Header: cerror.s,v 1.3 84/03/27 10:19:51 linton Exp $";## modified version of cerror## The idea is that every time an error occurs in a system call# I want a special function "syserr" called. This function will# either print a message and exit or do nothing depending on# defaults and use of "onsyserr".#.globl cerror.comm _errno,4cerror: movl r0,_errno calls $0,_syserr # new code mnegl $1,r0 ret.globl __mycerror # clumsy way to get this loaded__mycerror: .word 0 ret
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?