• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: appending to a memory-mapped file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: appending to a memory-mapped file


  • Subject: Re: appending to a memory-mapped file
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 6 Jan 2010 15:19:04 +0100

Le 6 janv. 2010 à 15:16, Jean-Daniel Dupas a écrit :

> Le 6 janv. 2010 à 15:11, Joel Reymont a écrit :
>
>> Forgive me if I'm missing something obvious but how do you append to a memory-mapped file?
>>
>> The file will obviously grow when you append to it but what's the best way to 'extend' the memory representation?
>>
>
> ftruncate passing the mapped file descriptor should work.



Sorry, I answer too fast. I don't think it will increase mapped region, only the file size.

-- Jean-Daniel




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >appending to a memory-mapped file (From: Joel Reymont <email@hidden>)
 >Re: appending to a memory-mapped file (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: appending to a memory-mapped file
  • Next by Date: Re: appending to a memory-mapped file
  • Previous by thread: Re: appending to a memory-mapped file
  • Next by thread: Re: appending to a memory-mapped file
  • Index(es):
    • Date
    • Thread