Annotation of cci/usr/src/lib/libc/tahoe/sys/sbrk.c, revision 1.1.1.1

1.1       root        1: /* sbrk.c 4.2 83/07/26 */
                      2: 
                      3: #include "SYS.h"
                      4: 
                      5: #define        SYS_brk         17
                      6: 
                      7:        .globl  _end
                      8:        .globl  minbrk
                      9:        .globl  curbrk
                     10: 
                     11:        .data
                     12: minbrk: .long  _end
                     13: curbrk:        .long   _end
                     14:        .text
                     15: 
                     16:        .globl  _sbrk
                     17:        .align  2
                     18: _sbrk: .word   0x0008
                     19:        addl3   curbrk,4(fp),-(sp)
                     20:        pushl   $1
                     21:        movl    fp,r3
                     22:        moval   (sp),fp
                     23:        kcall   $SYS_brk
                     24:        jcs     err
                     25:        movl    curbrk,r0
                     26:        addl2   4(r3),curbrk
                     27:        movl    r3,fp
                     28:        ret
                     29: err:
                     30:        movl    r3,fp
                     31:        jmp     cerror

unix.superglobalmegacorp.com

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