On Mon, 11 Jun 2007 09:15:52, James Bucanek <email@hidden> wrote:
> I'm trying to map a portion of a file to memory. The file uses
> the FS APIs and is already open via FSOpenFork. The open fork is
> used by a ton of other code, so I really don't want to rewrite
> all of this to use another API.
>
> The File-System Performance Guidelines document explains how to
> map a file to memory, but the only API they give is mmap(),
> which requires a POSIX file descriptor.
>
> So ... is there an Carbon function for mapping a file to memory
> given an open fork reference?
No
> ... or is there a way to turn a fork reference into a usable
> file descriptor?
I filed rdar://4368852 back in 2005 asking for this.
> I thought I remembered that there was some way
> of doing this, but a search of the ADC site has turned up
> nothing. I either remembered wrong, or I'm using the wrong keywords.
I'd like to know if there's a way...
> ... or do I just have to open the file again using open()?
I am afraid so.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden