I’m a little bit confused abut the behaviour of shared librarys. On non-QNX-systems I noticed following behaviour:
When two applications A and B use the same shared library and A sets parameter to that library that are stored in global variables, application B is able to access these values (by using an appropriate read function). Means global variables within shared libraries are global to all processes that use that shared library; processes can exchange data using this way.
Now I tried the same on QNX: here the global variable is not global to all processes, it seems that every provess gets its own data segment.
So now my question is: is that a special QNX feature or did I miss something important when creating these other shared libraries on Linux?