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

1.1     ! root        1: # C library -- fork
        !             2: 
        !             3: # pid = fork();
        !             4: #
        !             5: # r1 == 0 in parent process, r1 == 1 in child process.
        !             6: # r0 == pid of child in parent, r0 == pid of parent in child.
        !             7: 
        !             8:        .set    fork,2
        !             9: .globl _fork
        !            10: .globl _vfork
        !            11: 
        !            12: _vfork:
        !            13: _fork:
        !            14:        .word   0x0000
        !            15:        chmk    $fork
        !            16:        bcc             forkok
        !            17:        jmp             cerror
        !            18: forkok:
        !            19:        jlbc    r1,parent
        !            20:        clrl    r0              # signify child
        !            21: parent:
        !            22:        ret

unix.superglobalmegacorp.com

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