>1. Is it possible to build a dynamic library such that some static data is >shared >among ALL open instances of the library, even when it is open from different > processes? [example: processes 1 and 2 open libx.so. when process 1 sets some >static variable in libx.so, this change is also visible to process 2]
No. Such shared data will need to be created and maintained specifically by the library, e.g., by creating a POSIX shared memory region and using that. (And do you want this per-user or per-system?) >2. Is it possible to "upgrade" MAP_PRIVATE pages to MAP_SHARED pages w/o >changing their contents and base address? No. But you can "remap" stuff on top of it. (But note that different applications will likely get different base addresses) Casper _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
