Sbrk

brk and sbrk are basic memory management system calls used in Unix and Unix-like operating systems to control the amount of memory allocated to the heap segment of the process.[1] These functions are typically called from a higher-level memory management library function such as malloc. In the original Unix system, brk and sbrk were the only ways in which applications could acquire additional heap space; later versions allowed this to also be done using the mmap call.[2][3]

  1. ^ "Process Memory Concepts". Free Software Foundation. Retrieved 9 October 2015.
  2. ^ "A new malloc(3) for OpenBSD" (PDF). Retrieved 13 June 2018.
  3. ^ "POSIX Memory Management". blog.pr4tt.com.