Readme for shm
~~~~~~~~~~~~~~

This is my attempt at writing the SysV shared memory functions shmget(),
shmat(), shmdt() and shmctl() & the POSIX-y shared memory functions shm_open()
and shm_unlink() for the X-Windows for DOS project. These are not intended
for a multitasking environment, but for the multithreaded environment, i.e.
its intraprocess shared memory rather than the usual Unix interprocess shared
memory. So, don't expect any memory protection.

It uses Christopher Nelson's memory-mapped I/O code (/dev/ramdrv), which seems
to work without a hitch ;)

DJGPP 2.02 is required, because heavy use is made of 2.02's new File System
Extension features. To build it, use:

    make dep
    make

Then try the first demo programs (courtesy of Beej's Guide to Unix IPC):

    bash testit.sh

This should copy the file 'ftok.c' into a 1K shared memory segment and then
display it - it will be truncated because the segment is not large enough to
store it.

The POSIX-y shared memory functions are tested (slightly) by shmdemo2.

I haven't tested it extensively, but it appears to work ;)

Bye,

Richard Dawe <richdawe@bigfoot.com> 1999-08-21
