Summary: mmap issue

From: Vijay ch <vijay_chint_at_yahoo.com>
Date: Tue May 21 2002 - 20:13:22 EDT
Thanks to Dave and sysadmin@astro.su.se
Solution:
---------
There's no need for to to be fixed - you just need to
use fixed offsets
from whatever pointer mmap returns. eg

    unsigned char *base;

    base = (unsigned char *) mmap(........);
    *(base+100) = 'A'; /* write an A to byte 101 of
the file */
    msync(); # flush changes
Question:
--------
   I have a group of applications which loads same
datafile into memory and exchange data using that
datafile. 

 One way I can do is mmap to use some fixed address
(say 0x2FC000000) and using MAP_FIXED option in all my
applications. Problem is it may not be safe to given
our own address 
  
 Is there any other way in which i can acheive the
same thing with out giving fixed address i.e using
MAP_SHARED option
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue May 21 20:19:10 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:43 EST