Re: mremap() proposal (was Re: malloc and joe)

Larry McVoy (lm@neteng.engr.sgi.com)
25 Mar 1996 00:37:45 GMT


Wolfram Gloger (Wolfram.Gloger@dent.med.uni-muenchen.de) wrote:
: > Ok, here is a draft implementation of the "mremap()" system call, Wolfram could
: > you test?

: This seems to work very well, with the appended typo-fix (to clarify,
: it's against 1.3.77, already patched with Linus' p78.gz). Thanks a
: lot !

: I'll post a patch on the linux-gcc list for Doug Lea's malloc-2.6.2.c
: (which is in libc-5.3.x) which makes realloc() use mremap() for large
: mmapped chunks.

: Now, I wish I could mail SGI support `Look, I'd like this new system
: call mremap()..' and get an answer 12 hours later `OK, please try
: this patch..' Oops, must have been dreaming. [Please insert your
: workstation vendor for `SGI'.]

Funny you should ask - we have it already, it's called

MAP_AUTOGROW Implicitly grow object

--
---
Larry McVoy     lm@sgi.com     http://reality.sgi.com/lm     (415) 933-1804
Copyright 1996, all rights reserved.   Microsoft Network is prohibited from
redistributing this work in any form, in whole or in part without license.
License to distribute this work is available to Microsoft at $500.
Transmission without permission constitutes an agreement to these terms.