how do i change the shm_open path?
问题 i am currently developing an application on ubunto and calling shm_open, currently the default path is within /var/run/shm. however i need to change this to /tmp. simply trying the following does not work: fd = shm_open( "/tmp/test", O_RDWR | O_CREAT, 0777 ); can anyone please advise? 回答1: From the man page of shm_open(3) : name specifies the shared memory object to be created or opened. For portable use, a shared memory object should be identified by a name of the form /somename ; that is, a