plan9 man page for segbrk

Query: segbrk

OS: plan9

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SEGBRK(2)							System Calls Manual							 SEGBRK(2)

NAME
segbrk - change memory allocation
SYNOPSIS
#include <u.h> #include <libc.h> int segbrk(void *saddr, void *addr)
DESCRIPTION
Segbrk sets the system's idea of the lowest unused location of a segment to addr rounded up to the next multiple of a page size, typically 4096 bytes. The segment is identified by saddr which may be any valid address within the segment. A call to segbrk with a zero addr argument returns the address of the top of bss. The system will prevent segments from overlapping and will not allow the length of the text, data, or stack segment to be altered.
SOURCE
/sys/src/libc/9syscall
SEE ALSO
brk(2), segattach(2), segflush(2) /proc/*/segment
DIAGNOSTICS
Sets errstr. SEGBRK(2)
Related Man Pages
sbrk(2) - mojave
brk(2) - plan9
sbrk(2) - opendarwin
brk(2) - osx
sbrk(2) - osx
Similar Topics in the Unix Linux Community
PHP Write Man Pages to MySQL DB