Shared library with acces to shared memory.

view full story

http://www.unix.com – Hello. I am new to this forum and I would like to ask for advice about low level POSIX programming. I have to implement a POSIX compliant C shared library. A file will have some variables and the shared library will have some functions which need those variables. There is one special requirement, the access to the variables should be as quick as posible, which means that variables should be load in memory and made available to the libray. I think I can create a program using IPC shared memory (shmget functions) to create a shared memory region available to the process using the librar (HowTos)