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

Defined functions

__mycerror declared in line 25; defined in line 27; used 3 times
cerror declared in line 16; defined in line 19; used 1 times
  • in line 16

Defined variables

_errno defined in line 17; used 1 times
  • in line 20
Last modified: 1985-06-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2178
Valid CSS Valid XHTML 1.0 Strict