Annotation of 43BSD/lib/libc/vax/sys/brk.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 "@(#)brk.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  curbrk
                     16:        .globl  minbrk
                     17: ENTRY(_brk)
                     18:        jbr     ok
                     19: 
                     20: ENTRY(brk)
                     21:        cmpl    4(ap),minbrk
                     22:        bgeq    ok
                     23:        movl    minbrk,4(ap)
                     24: ok:
                     25:        chmk    $SYS_brk
                     26:        jcs     err
                     27:        movl    4(ap),curbrk
                     28:        clrl    r0
                     29:        ret
                     30: err:
                     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.