Jiahan Chen said:
> Hi,
>
> I'm wondering if the RedHat 7.3 supports POSIX
> shared memory functionality. When I tried to
> port some POSIX code to Linux, and got compililing
> error: can't find mmap.h which is necessary header
> file for POSIX shared memory stuff, such as
> shm_open(), shm_unlink(), mmap()......
be sure you have the /dev/shm filesystem mounted for POSIX
shared memory under linux 2.4(by default it's mounted on rh 7.3).
Possibly your trying to include the wrong header file..
I don't see mmap.h on either of my redhat nor any of my
debian systems.
from Documentation/filesystems/tmpfs.txt:
tmpfs has the following uses:
2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
POSIX shared memory (shm_open, shm_unlink). Adding the following
line to /etc/fstab should take care of this:
tmpfs /dev/shm tmpfs defaults 0 0
Remember to create the directory that you intend to mount tmpfs on
if necessary (/dev/shm is automagically created if you use devfs).
This mount is _not_ needed for SYSV shared memory. The internal
mount is used for that. (In the 2.3 kernel versions it was
necessary to mount the predecessor of tmpfs (shm fs) to use SYSV
shared memory)
nate
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list