Annotation of 40BSD/libc/sys/vwait.s, revision 1.1.1.1

1.1       root        1: # C library -- vwait
                      2: 
                      3: # pid = vwait(0, &vms);
                      4: #   or,
                      5: # pid = vwait(&status, &vms);
                      6: #
                      7: # pid == -1 if error
                      8: # status indicates fate of process, if given
                      9: # vms is a vmstat structure <vmstat.h>
                     10: 
                     11:        .set    vwait,64+7
                     12: .globl _vwait
                     13: .globl  cerror
                     14: 
                     15:        .align  1
                     16: _vwait:
                     17:        .word   0x0000
                     18:        chmk    $vwait
                     19:        bcc     noerror
                     20:        jmp     cerror
                     21: noerror:
                     22:        tstl    4(ap)           # status desired?
                     23:        beql    nostatus        # no
                     24:        movl    r1,*4(ap)       # store child's status
                     25: nostatus:
                     26:        ret

unix.superglobalmegacorp.com

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