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

Defined functions

_wait declared in line 10; defined in line 12; used 2 times
Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 748
Valid CSS Valid XHTML 1.0 Strict