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

Defined functions

ENTRY defined in line 8; never used

Defined macros

SYS_brk defined in line 13; never used
Last modified: 1986-03-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 653
Valid CSS Valid XHTML 1.0 Strict