# 2.11BSD#431 - /usr/src/lib/libc/pdp/sys/brk.s

##### Functions

    _brk              X

       1: /*
       2:  * Copyright (c) 1987 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: <@(#)brk.s	2.6 (2.11BSD GTE) 1995/05/08\0>
       9:         .even
      10: #endif SYSLIBC_SCCS
      11:
      12: /*
      13:  * XXX - this routine can't use SYSCALL!!!
      14:  */
      15: #include "SYS.h"
      16:
      17: .globl  curbrk, minbrk
      18:
      19: ENTRY(brk)
      20:         cmp     2(sp),minbrk    / break request too low?
      21:         bhis    1f
      22:         mov     minbrk,2(sp)    / yes, knock the request up to minbrk
      23: 1:
      24:         SYS(sbrk)               / ask for break
          /
          /   trap 69 -> [kernel] -> syscall() -> via sysent[] -> handler: sbrk
          /
      25:         bes     2f
      26:         mov     2(sp),curbrk    /   and remember it if it succeeded
      27:         rts     pc
      28: 2:
      29:         jmp     x_error

#### Defined functions

_brk defined in line 19; used 18 times

- in /usr/include/unistd.h line 74
- in /usr/ingres/source/dbu/ksort.c line 112
- in /usr/src/bin/as/as0.s line 1
- in /usr/src/bin/as/as2.s line 5
- in /usr/src/bin/awk/freeze.c line 32
- in /usr/src/games/monop/execute.c line 211
- in /usr/src/new/OLD/apl/src/aq.c line 207
- in /usr/src/new/OLD/apl/src/xed.c line 4343, 5257
- in /usr/src/new/PORT/apl/src/aq.c line 207
- in /usr/src/ucb/pascal/px/palloc.c line 4
- in /usr/src/usr.bin/sort.c line 175, 249-252(2)
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 924, 948
- in /usr/src/usr.sbin/sendmail/src/main.c line 928, 952

_sccsid defined in line 8; never used

Last modified: 1995-05-09 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 482 |