On Thu, Mar 06, 2003 at 02:33:46PM -0500, rm wrote:
On Thu, Mar 06, 2003 at 09:12:03PM +0200, Juhana
Sadeharju wrote:
Hello. I need two functions:
make_shm(int size, char *key)
-run by root
-creates a locked shared memory segment
-returns a key (preferably a string) which is used to
access the shared memory
shm segments are identified by key id (key_t), use ftok on a file to turn
a string (the path to the file) into a key.
Or you can use Posix SHM shm_open(3), which is more portable, in theory.
POSIX shm segments are identified by a string.
- Steve