"G. Adam Stanislav" <[EMAIL PROTECTED]> writes: > > Use malloc() instead. > Unfortunately, that only works in C. :) Use mmap() or brk()/sbrk(). > I tried to figure out how to allocate memory, but, so far, was completely > unsuccessful. I studied the source for the C malloc, but did not understand > any of it. It uses something called mmap. I read the man page for mmap, > and was totally frustrated. It talks about mapping files into memory, > but I am not looking for files. Look for MAP_ANON in the mmap(2) man page. > It talks about passing an address to the > function. I don't get it... What address? I want it to allocate memory > for me and tell me its address. How am I supposed to know what address > is available??? Did you even read the man page? DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message