Mail Archives: djgpp-workers/2000/05/09/16:12:58
>
> > At the top of my head, I remember many applications on Un*x
> > use mmap() to grab some memory and maintain there own pool,
>
> Yes, but why use mmap for that? Why not use sbrk?
DJ answered that, and I beleive Solaris and GNU/Linux malloc
implementations are doing this. The QNX4 implemention does the
same two, it uses 2 allocators schemes base on the size of the
requested memory, one is call the band/arena so when you
release small chunks of memory it tries to collide them to make
a pagesize and call munmap() to give it back to the system.
On QNX/Neutrino sbrk() calls mmap() ;-)
Theres probably other reasons.
>
> > Was not there a VFS lib for DJGPP at one point ?
>
> What's that?
http://www.geocities.com/CapeCanaveral/Lab/1862/djgpp/vfs_toc.html
I discover this while browsing the web.
--
au revoir, alain
----
Aussi haut que l'on soit assis, on n'est toujours assis que sur son cul !!!
- Raw text -