Re: appending to a memory-mapped file
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jean-Daniel Dupas