Hello,
I am having trouble understating the nature of realpath() on QNX.
On Linux realpath("/proc/self/exe", buf) returns the name of the executable
> real_path (name of the executable)
>/home/abc/real_path
while on QNX
realpath("/proc/self/exefile",buf) returns
/proc/self/exefile .
I have attached the sample program for the same. In the program change /exe to exefile on QNX.

Regards
-Akshat