On Wed, Oct 21, 2009 at 7:20 PM, Michael Zucchi <notzed@xxxxxxxxx> wrote: > 2009/10/18 Michael Crawford <mdcrawford@xxxxxxxxx>: >> Does Haiku even provide the sbrk system call? > > Yes it's there, but it doesn't implement sbrk(0) -> return highest > valid address. Since emacs (and I presume pretty well anything that > would probably ever want to use sbrk()) relies on this, it isn't > useful. Maybe one could emulate this behavior by creating a MySbrk function that advances the break some large distance, and returns that. One could then put the following line in a header somewhere: #define sbrk( x ) MySbrk( x ) Hope That Helps, Mike -- Michael David Crawford mdcrawford at gmail dot com GoingWare's Bag of Programming Tricks http://www.goingware.com/tips/