Annotation of researchv10dc/libc/sys/setpgrp.s, revision 1.1

1.1     ! root        1: # C library -- setpgrp, getpgrp
        !             2: 
        !             3: # setpgrp(pid, pgrp);  /* set pgrp of pid and descendants to pgrp */
        !             4: # if pid==0 use current pid
        !             5: #
        !             6: # getpgrp(pid)
        !             7: # implemented as setpgrp(pid, -1)
        !             8: 
        !             9:        .set    setpgrp,39
        !            10: .globl _setpgrp
        !            11: .globl _getpgrp
        !            12: .globl  cerror
        !            13: 
        !            14:        .align  1
        !            15: _setpgrp:
        !            16:        .word   0x0000
        !            17:        chmk    $setpgrp
        !            18:        bcc     noerror
        !            19:        jmp     cerror
        !            20: noerror:
        !            21:        ret
        !            22: 
        !            23:        .align  1
        !            24: _getpgrp:
        !            25:        .word   0x0000
        !            26:        pushl   $-1
        !            27:        pushl   4(ap)
        !            28:        calls   $2,gpgrp
        !            29:        ret
        !            30: gpgrp:
        !            31:        .word   0x0000
        !            32:        chmk    $setpgrp
        !            33:        bcc     noerror
        !            34:        jmp     cerror

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.