1: / C library -- wait
   2: 
   3: / pid = wait(&status);
   4: /
   5: / pid == -1 if error
   6: / status indicates fate of process
   7: 
   8: .globl  _wait, cerror
   9: 
  10: _wait:
  11:         mov     r5,-(sp)
  12:         mov     sp,r5
  13:         sys     wait
  14:         bec     1f
  15:         jmp     cerror
  16: 1:
  17:         mov     r1,*4(r5)       / status return
  18:         mov     (sp)+,r5
  19:         rts     pc

Defined functions

_wait declared in line 8; defined in line 10; used 2 times
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 615
Valid CSS Valid XHTML 1.0 Strict