Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - readlink() error on QNX.: (1 Item)
   
readlink() error on QNX.  
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
Attachment: HTML sf-attachment-mime28141 947 bytes Text real_qnx.cpp 384 bytes