diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-20 21:44:34 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-20 21:44:34 +0000 |
commit | 7bd6679c82079db20ea3a9b2b1f08406719b52ec (patch) | |
tree | 8d23103118485fab241e2a789eb32c7606b27928 | |
parent | 90ce513fb0df41c0d6c5cea8dbd612c1859d4392 (diff) | |
download | plan9front-7bd6679c82079db20ea3a9b2b1f08406719b52ec.tar.xz |
brk(2): sbrk(0) returns end address, not the base
sbrk(0) returns the current end address of the BSS segment,
not the base. This might have been confused with the behaviour
of segbrk(), which when given a zero address returns the base.
-rw-r--r-- | sys/man/2/brk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/man/2/brk b/sys/man/2/brk index f916a6877..3dad1a7d2 100644 --- a/sys/man/2/brk +++ b/sys/man/2/brk @@ -43,7 +43,7 @@ data areas need to use .IR brk . A call to .I sbrk -with a zero argument returns the lowest address +with a zero argument returns the end address in the dynamic segment. .SH SOURCE .B /sys/src/libc/9sys/sbrk.c |