mmap() on qnx rtp os

Hi,
I am new to QNX, and I have download the QNX RTP iso and installed it on
my box.
When I use mmap() call in my programm, it seems it can not map a disk file
into
the memory, I use perror to examing why and was told “not support.” My
question is
is the really true? And if true, is here any alternative for me?
Thank you.

Is it still not in FAQ?
Pass MAP_NOSYNCFILE in flags for mmap(). Changes made in memory won’t be
reflected in file, that’s current design limitation. You can try to call
msync() to syncronize…

  • igor

netghost wrote:

Hi,
I am new to QNX, and I have download the QNX RTP iso and installed it on
my box.
When I use mmap() call in my programm, it seems it can not map a disk file
into
the memory, I use perror to examing why and was told “not support.” My
question is
is the really true? And if true, is here any alternative for me?
Thank you.

Thank you.
Yes, I have tried msync to syncronize them explicitly but seems takes no
effect.
“Igor Kovalenko” <Igor.Kovalenko@motorola.com> wrote in message
news:3ACCE978.ECECEDC1@motorola.com

Is it still not in FAQ?
Pass MAP_NOSYNCFILE in flags for mmap(). Changes made in memory won’t be
reflected in file, that’s current design limitation. You can try to call
msync() to syncronize…

  • igor

netghost wrote:

Hi,
I am new to QNX, and I have download the QNX RTP iso and installed it
on
my box.
When I use mmap() call in my programm, it seems it can not map a disk
file
into
the memory, I use perror to examing why and was told “not support.” My
question is
is the really true? And if true, is here any alternative for me?
Thank you.