From: entropy@world.std.com (Lawrence Foard) Subject: Re: status of mmap(2) in Linux Date: Sun, 8 Aug 1993 21:21:26 GMT
In article <242qhf$gpv@klaava.helsinki.fi> torvalds@klaava.Helsinki.FI (Linus Torvalds) writes:
>In article <241gc8$d60@samba.oit.unc.edu> ses@sunSITE.unc.edu (Simon Spero) writes:
>>Can anybody tell me the current status of mmap in Linux? Last I heard
>>it only worked for a few special cases, but not for general files. Has this
>>changed, and if so, which kernels is it available in?
>
>In 0.99.11 (and even more so in pl12), the mmap() facility should work
>for all normal files on the "unixy" filesystems (ie minix, ext, ext2,
>xiafs) as long as you don't try to write to a file with mmap() - ie the
>MAP_PRIVATE mappings should be ok (probably MAP_SHARED with just
>PROT_READ is also ok). In fact, pl12 (alpha) uses mmap() internally
>both for normal executables and shared libraries.
Are writable memory mapped files in the works? Or is this what MAP_SHARED
would do?
-- ====== Time: 820713600 seconds, Space: 1727.2mm, Mass: 9.5E10 ug . \ / Kinsey: 4.5, Religion: Science, Energy: 8.55E18, OS: Linux . . \ / Species: Human, Planet: Earth, Fame: Tinymush, Allergy: Dustmite . . . \/ Purity: 40, Sex: male, frequent, Drugs: Caffeine, Rock & roll: . . . .