lists.apple.com
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

mmap

Louis Demers

9 Jul 2002 9 Jul '02
4:32 a.m.

Hi, trying to port inn news server 2.3.3 to osx and the standard distribution seems to have problems with a mmap call. A static data is mmap to a file and then porperly written (I dumped all 130180 bytes to a file and it's ok) but when unmapped, the file reverts to all zeros. I checked and the file descriptor is opened with O_RDWR, the mmap is done with PROT_WRITE|PROT_READ. Any clue as to what needs to be done in order for changes in memory to be permanently written to file. (order of mmap, mmunap, open, close seuqneces...)?? Thx -- Louis Demers ing. Louis.Demers@videotron.ca _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty HyperKitty • Apple • Terms of Use