Hello,
I am trying to run a sample program which uses
readlink("/proc/self/exefile",buf.PATH_MAX). It returns -1.

I am using QNX 6.6.0  32-bit.
Doing ls to /proc/self/exefile displays:-
-rw-------   1 root      0                14 Mar 09 06:32 /proc/self/exefile

I tried changing the permission using chmod.
Using the command :-
> chmod u+x /proc/self/exefile
gives result :-
chmod: changing permission of /proc/self/exefile : No such file or directory

Please assist.
I have attached the sample program.

Regards
-Akshat