|
|
1.1 root 1: .th BREAK II 8/5/73
2: .sh NAME
3: break \*- set program break
4: .sh SYNOPSIS
5: (break = 17.)
6: .br
7: .ft B
8: sys break; addr
9: .s3
10: char *sbrk(incr)
11: .ft R
12: .sh DESCRIPTION
13: .it Break
14: sets the system's idea of the lowest location not used by the program
15: to
16: .it addr
17: (rounded up to the next multiple of 64 bytes).
18: Locations not less than
19: .it addr
20: and below the stack pointer
21: are not in the address space and will thus
22: cause a memory violation if accessed.
23: .s3
24: From C, the calling sequence is different;
25: .it incr
26: more bytes are added to the
27: program's data space and a pointer to the
28: start of the new area is returned.
29: .s3
30: When a program begins execution via
31: .it exec
32: the break is set at the
33: highest location defined by the program
34: and data storage areas.
35: Ordinarily, therefore, only programs with growing
36: data areas need to use
37: .it break.
38: .sh "SEE ALSO"
39: exec(II)
40: .sh DIAGNOSTICS
41: The c-bit is set if the program requests more
42: memory than the system limit
43: (currently 20K words),
44: or if more than 8 segmentation
45: registers would be required to implement the break.
46: From C, \*-1 is returned for these errors.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.