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 try
You need to mount a tmpfs filesystem in /tmp for this:
tmpfs
/tmp
mihai@keldon:~$ mount | grep shm shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
Otherwise, it is not possible.