Re: mmap feature

Chris Wedgwood (cw@f00f.org)
Fri, 17 Dec 1999 19:42:09 +1300


> mem = (char *) mmap((caddr_t) 0, memsize,
> PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_SHARED|MAP_ANONYMOUS,
> -1, (off_t) 0);
>
>
> According to the library documentation, "Linux does not support standard
> mmap system call". I cannot say if this is accurate of not. I know that
> this system call works without problem under Solaris.

Linux does not (yet) support shared anonymous maps -- it should be
failry trivial to hack the library to get around this though (mmap a
file in /tmp and unlink it instead)

-cw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/