Re: Changing the sbrk and brk system calls
Justin Walker <[email protected]>
| Newsgroups | gmane.os.opendarwin.general |
|---|---|
| Message-ID | <[email protected]> |
On Oct 27, 2004, at 9:51, Indira Estacio Moreno wrote:
> The "Porting Command Line UNIX Tools to Mac OS X.htm" file don't
> recommend the sbrk and brk functions.
> What functions can I to use instead of them to obtain the same result?
You probably don't want to go there. Use 'malloc'()'.
If you really need to deal with memory at the level of brk/sbrk (or
below), read up on Mach VM in the doc.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or
lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*