break.2
来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 2 代码 · 共 59 行
2
59 行
.th BREAK II 8/5/73.sh NAMEbreak, brk, sbrk \*- change core allocation.sh SYNOPSIS(break = 17.).br.ft Bsys break; addr.s3char *brk(addr).s3char *sbrk(incr).ft R.sh DESCRIPTION.it Breaksets the system's idea of the lowest location not used by the program(called the break)to.it addr(rounded up to the next multiple of 64 bytes).Locations not less than.it addrand below the stack pointerare not in the address space and will thuscause a memory violation if accessed..s3From C,.it brkwill set the break to.it addr.The old break is returned..s3In the alternate entry.it sbrk,.it incrmore bytes are added to theprogram's data space and a pointer to thestart of the new area is returned..s3When a program begins execution via.it execthe break is set at thehighest location defined by the programand data storage areas.Ordinarily, therefore, only programs with growingdata areas need to use.it break..sh "SEE ALSO"exec (II), alloc (III), end (III).sh DIAGNOSTICSThe c-bit is set if the program requests morememory than the system limitor if more than 8 segmentationregisters would be required to implement the break.From C, \*-1 is returned for these errors..sh BUGSSetting the break in the range0177700 to 0177777 is the same as setting it to zero.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?