ref: ca9d65e40b3f78d2580fff9ff1844bad1be08673
parent: 49c159b50f113fe0c61cc841c14a6fc664f87b49
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 11 10:19:35 EDT 2020
cc: remove mysbrk(), exponentially increase gethunk() allocation delta mysbrk() was only used in gethunk() and should not be called by anyone, so dont export the symbol. simplify gethunk() using brk(). double allocation size on each call until we reach 1000*NHUNK. use signed long for nhunk as alignment rountin might make it negative and handle that case.