On Tue, Dec 05, 2000 at 03:43:10PM +0000, Aled Morris wrote:
>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);

Thanks, Aled. I'll play with it. Will try both -1 and /dev/zero.

Cheers,
Adam

-- 
Suppose you were an idiot.
Suppose you were a member of Congress.
But I'm repeating myself...
                -- Mark Twain


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to