I am using RHEL 4
i am using syscall stat as follows:-
if (stat ("file",&stat_obj)){
if (errno == ENOENT){
printf("File not found");
}else{
printf("Unexpected error occured %d ",errno);
}
}
sometimes i get error message as ""Unexpected error occured 0"
That means i get error as "0" . i checked file permissions that are ok
what does that mean? I am not able to understand why sometimes this is happening ?
Any suggestions?