Annotation of 40BSD/lib/libjobs/wait3.s, revision 1.1.1.1

1.1       root        1: # C library -- wait3
                      2: 
                      3: # pid = wait3(&status, flags, &vmstat);
                      4: #
                      5: # pid == -1 if error
                      6: # status indicates fate of process, if given
                      7: # flags may indicate process is not to hang or
                      8: # that untraced stopped children are to be reported.
                      9: # vmstat optionally returns detailed resource usage information
                     10: #
                     11: 
                     12:        .set    wait3,7         # same as wait!
                     13: .globl _wait3
                     14: .globl  cerror
                     15: 
                     16:        .align  1
                     17: _wait3:
                     18:        .word   0x0000
                     19:        movl    8(ap),r0        # make it easy for system to get
                     20:        movl    12(ap),r1       # these extra arguments
                     21:        bispsw  $0xf            # flags wait3()
                     22:        chmk    $wait3
                     23:        bcc     noerror
                     24:        jmp     cerror
                     25: noerror:
                     26:        tstl    4(ap)           # status desired?
                     27:        beql    nostatus        # no
                     28:        movl    r1,*4(ap)       # store child's status
                     29: nostatus:
                     30:        ret

unix.superglobalmegacorp.com

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