Annotation of 43BSD/lib/libc/vax/sys/sbrk.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1983 Regents of the University of California.
                      3:  * All rights reserved.  The Berkeley software License Agreement
                      4:  * specifies the terms and conditions for redistribution.
                      5:  */
                      6: 
                      7: #ifdef SYSLIBC_SCCS
                      8: _sccsid:.asciz "@(#)sbrk.c     5.3 (Berkeley) 3/9/86"
                      9: #endif SYSLIBC_SCCS
                     10: 
                     11: #include "SYS.h"
                     12: 
                     13: #define        SYS_brk         17
                     14: 
                     15:        .globl  _end
                     16:        .globl  minbrk
                     17:        .globl  curbrk
                     18: 
                     19:        .data
                     20: minbrk: .long  _end
                     21: curbrk:        .long   _end
                     22:        .text
                     23: 
                     24: ENTRY(sbrk)
                     25:        addl3   curbrk,4(ap),-(sp)
                     26:        pushl   $1
                     27:        movl    ap,r3
                     28:        movl    sp,ap
                     29:        chmk    $SYS_brk
                     30:        jcs     err
                     31:        movl    curbrk,r0
                     32:        addl2   4(r3),curbrk
                     33:        ret
                     34: err:
                     35:        jmp     cerror

unix.superglobalmegacorp.com

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