It can do that, it's not required to.
> Also, sbrk() is a syscall, so it's not available in OP's use case: he has not implemented it.
Yes, they have, they just called it malloc() :-). Which was really my (admittedly fairly terse) point.
It can do that, it's not required to.
> Also, sbrk() is a syscall, so it's not available in OP's use case: he has not implemented it.
Yes, they have, they just called it malloc() :-). Which was really my (admittedly fairly terse) point.