Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - shm_open & mmap: Page 1 of 5 (5 Items)
   
shm_open & mmap  
Hi everyone. 

I am a newbie in C programming and QNX. I am currently working on a project based on C programming in QNX and have met 
cross some problems. 

There are some existing executable programs compiled in QNX 6.3.2. Now the OS has been updated to QNX 6.4.0, and a few 
of the executable programs cannot run correctly. I checked the source code and found the problems probably occured when 
shm_open or mmap was called. The interesting thing is that shm_open is also called in other executable programs and they
 can work successfully. 

In the problem program, shm_open is called like:
" shm_descr = shm_open(CMD_INTERFACE_SHM_NAME,O_RDWR, S_IRWXU); "
And in the normal program, it's called like:
" fd = shm_open(devName,O_RDWR|O_CREAT,0); "

Does the flag's difference matter? Or the problem was caused by the update of QNX OS?