Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 1st Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

segattach(2)

segflush(2)

SEGBRK(2)

NAME

segbrk − change memory allocation

SYNOPSIS

intsegbrk(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 4 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 text and data segment lengths to be altered. 

SEE ALSO

segattach(2), segflush(2)
/proc/∗/segment

DIAGNOSTICS

Sets ­errstr. 

Plan 9  —  January 03, 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026