On Tue, 5 Dec 2000, G. Adam Stanislav wrote: >> Use malloc() instead. > >Unfortunately, that only works in C. :) > >I tried to figure out how to allocate memory, but, so far, was completely >unsuccessful. malloc appears to mmap pages from fd -1, and makes them private and read/write (except on sparc architecture, where it uses /dev/zero rather than -1, which makes more sense to me) It isn't particularly complicated: newmem = mmap(0, size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); Aled To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

