Re: in-memory files?
Re: in-memory files?
- Subject: Re: in-memory files?
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 19 Aug 2001 12:32:12 -0700
Thanks, but I don't think mmap() is quite what I'm after. AFAIK, mmap
maps a disk file into a processes VM, but what I'm after is a way to
treat a portion of memory as a file, without involving the filesystem.
-jcr
On Sunday, August 19, 2001, at 12:13 PM, R. Tony Goold wrote:
Try doing "man mmap" in the terminal. I don't know if there's a
Foundation way to do this, but mmap is the BSD way.
Cheers,
Tony
On Sunday, August 19, 2001, at 02:49 , John C. Randolph wrote:
In NeXTSTEP, there was a function that would open a file descriptor
which allowed you to write into a memory buffer using fwrite(),
fprintf(), etc.
I've been looking for an equivalent on Mac OS X, and it's not
jumping out at me. Isn't there something in POSIX that does this? On
NeXTSTEP, IIRC, it was called something like "NXOpenMemory()".
Anyone?
-jcr
[Objc retain];
"The problem with trying to child-proof the world, is that it makes
people neglect the far more important task of world-proofing the
child." -- Hugh Daniel