> > Maybe a better solution could be using mmap. > Perhaps. I still wouldn't know how much to map, so I'd need > mremap, and from the manpage: > This call is Linux-specific, and should not be used > in programs intended to be portable. > If you write a portable patch making use of mmap, I'll > definitely consider applying it.
You are right, we would need mremap. Forget the suggestion.