Annotation of researchv9/libc/sys/wait.s, revision 1.1

1.1     ! root        1: # C library -- wait
        !             2: 
        !             3: # pid = wait(0);
        !             4: #   or,
        !             5: # pid = wait(&status);
        !             6: #
        !             7: # pid == -1 if error
        !             8: # status indicates fate of process, if given
        !             9: 
        !            10:        wait = 7
        !            11: .globl _wait
        !            12: .globl  cerror
        !            13: 
        !            14: _wait:
        !            15:        pea     wait
        !            16:        trap    #0
        !            17:        bcc     noerror
        !            18:        jmp     cerror
        !            19: noerror:
        !            20:        tstl    sp@(4)          | status desired?
        !            21:        beql    nostatus        | no
        !            22:        movl    sp@(4),a0
        !            23:        movl    d1,a0@          | store child's status
        !            24: nostatus:
        !            25:        rts

unix.superglobalmegacorp.com

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