⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brk.2

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 2
字号:
.TH BRK 2 .SH NAMEbrk, sbrk, break \- change core allocation.SH SYNOPSIS.B char *brk(addr).PP.B char *sbrk(incr).SH DESCRIPTION.I Brksets the system's idea of the lowest location not used by the program(called the break)to.I addr(rounded up to the next multiple of 64 byteson the PDP11, 256 bytes on the Interdata 8/32, 512 bytes on the VAX-11/780).Locations not less than.I addrand below the stack pointerare not in the address space and will thuscause a memory violation if accessed..PPIn the alternate function.I sbrk,.I incrmore bytes are added to theprogram's data space and a pointer to thestart of the new area is returned..PPWhen a program begins execution via.I execthe break is set at thehighest location defined by the programand data storage areas.Ordinarily, therefore, only programs with growingdata areas need to use.IR break ..SH "SEE ALSO"exec(2),malloc(3),end(3).SH DIAGNOSTICSZero is returned if the break could be set;\-1 if the program requests morememory than the system limitor if too many segmentationregisters would be required to implement the break..SH BUGSSetting the break in the range0177701 to 0177777 (on the PDP11) is the same as setting it to zero..SH ASSEMBLER(break = 17.).br.B sys break; addr.PP.I Breakperforms the function of.IR brk .The name of the routine differs from that in Cfor historical reasons.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -