I have created a file in /proc
named "test" (it was created in kernel). The file exists. When I want to open it in user level it returns negative.
int fd;
if((fd=open("/proc/test","O_RDONLY"))<0){
perror("open");
}
The error that I see is open: File exists
. I have seen this question but it is not my case.