1: /*	@(#)setpgrp.s	2.2	SCCS id keyword	*/
   2: / C library -- setpgrp, getpgrp
   3: 
   4: / setpgrp(pid, pgrp);	/* set pgrp of pid and descendants to pgrp */
   5: / if pid==0 use current pid
   6: /
   7: / getpgrp(pid)
   8: / implemented as setpgrp(pid, -1)
   9: 
  10: 
  11: .globl  _setpgrp
  12: .globl  cerror
  13: 
  14: _setpgrp:
  15:         mov     r5,-(sp)
  16:         mov     sp,r5
  17:         mov     4(r5),r0
  18:         mov     6(r5),0f
  19: 2:      sys     0; 9f
  20:         bec     1f
  21:         jmp     cerror
  22: 1:
  23:         mov     (sp)+,r5
  24:         rts     pc
  25: .globl  _getpgrp
  26: _getpgrp:
  27:         mov     r5,-(sp)
  28:         mov     sp,r5
  29:         mov     $0.,0f
  30:         mov     4(r5),r0
  31:         br      2b
  32: 
  33: .data
  34: 9:
  35:         sys     setpgrp; 0:..

Defined functions

_getpgrp declared in line 25; defined in line 26; used 2 times
_setpgrp declared in line 11; defined in line 14; used 6 times
Last modified: 1981-12-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 626
Valid CSS Valid XHTML 1.0 Strict