mmap
mmap
- Subject: mmap
- From: Louis Demers <email@hidden>
- Date: Tue, 9 Jul 2002 00:32:44 -0400
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.
email@hidden
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.