shared memory and standards (posix)

shared memory and standards (posix)

Post by Catherine E Rig » Fri, 05 Apr 1996 04:00:00



does anybody know how to easily deal with the different
standards for shared memory control.
Posix define it through memory mapped i/o
using whm_open() and mmap() while AIX
and BSD derivitives (linux) use shmctl()
and shmget() to utilize it.

other than using conditional compilation,
how do you deal with this difference.

thanks,
paul

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               Paul F. Burdette
           Software Techniques, Inc.

   Set the Controls for the Heart of the Sun
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
 
 

shared memory and standards (posix)

Post by Andrew Gabri » Sat, 06 Apr 1996 04:00:00




Quote:>does anybody know how to easily deal with the different
>standards for shared memory control.
>Posix define it through memory mapped i/o
>using whm_open() and mmap() while AIX
>and BSD derivitives (linux) use shmctl()
>and shmget() to utilize it.

>other than using conditional compilation,
>how do you deal with this difference.

As far as I know, all current unixes support shmctl()/shmget(),
so use that if you want portability.

--



 
 
 

1. POSIX system call interface and POSIX standard: questions

Hello,

I am looking for the POSIX standard which describes the system call
interface. Is POSIX.1 the only and most recent standard describing
POSIX syscalls? I checked http://webstore.ansi.org/ and found
various POSIX standards, most of which are considerably more
expensive than the C and C++ standards. It seems like the
documents of interest are the four ISO/IEC 9945 documents
from 2002, especially Parts 1 and 2 available for USD50 each.
There are also older more expensive documents. What is the
difference between the verious POSIX documents? Do the ISO/IEC
9945 2002 POSIX documents outdate others like DIN EN 29945-1?

Thanks,

Neil

2. WN problem with #exec command

3. strange lock files using POSIX shared memory

4. *** Mitsumi 4X driver for LINUX ***

5. About POSIX shared memory

6. old Micropolis HD

7. Crash Dump Analysis: POSIX Shared Memory

8. Manual Modem Command

9. Posix Shared Memory

10. posix shared memory -

11. POSIX Shared Memory

12. How to find glibc2.2 with posix shared memory

13. removing posix shared memory