I know that the cygwin mmap implementation doesn't work with ralloc.
andy
At 02:44 PM 1/20/00 +0100, Hrvoje Niksic wrote:
[ Moved to xemacs-beta. ]
Fabrice Popineau <Fabrice.Popineau(a)supelec.fr> writes:
> * Martin Buchholz <martin(a)xemacs.org> writes:
>
> > How come Kirill didn't need to do this when he got portable dumping
> > working on Windows?
He could have done without mmap() by using just open() and read().
> By the way, would the rel_alloc thing be interesting for win32 ? In
> this case, having mmap/mmunmap replacements would be useful.
Will that work under Windows? The mmap-based relocating allocator
works by allocating chunks anonymously. For instance:
fd = open ("/dev/zero", O_RDONLY);
void *ptr = mmap (0, how_much, PROT_xxx, MAP_SHARED, fd, 0);
That way you can allocate a chunk of memory independent of your normal
data segment and, more importantly, you can unmap it without causing
segmentation. If Windows doesn't support anonymous mapping,
mmap-based allocator won't work.
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd