Reputation: 1568
We have a code written for Linux, where we are parsing the maps file using std::ifstream ifs("/proc/self/maps");. I am porting that code for QNX platform where I can see the /proc/self/ folder is available but the maps file is not available.
Upvotes: 1
Views: 570
Reputation: 692
Similar thing would be /proc/self/as
See usage sample here: https://www.qnx.com/developers/docs/6.5.0SP1.update/com.qnx.doc.neutrino_cookbook/s3_procfs.html#DCMD_PROC_MAPINFO
Upvotes: 0
Reputation: 1549
This file in Linux contains map of memory of the process: code, data, heap, loaded shared libraries etc. If you can explain what you need to do with this, someone could suggest how to achieve same on QNX. Consider that QNX belongs to the BSD family, its low level stuff is not like in Linux.
Upvotes: 0