【发布时间】:2010-11-06 15:03:11
【问题描述】:
我正在使用 RHEL 4
我使用系统调用统计如下:-
if (stat ("file",&stat_obj)){
if (errno == ENOENT){
printf("File not found");
}else{
printf("Unexpected error occured %d ",errno);
}
}
有时我会收到错误消息“发生意外错误 0”
这意味着我得到错误为 "0" 。我检查了文件权限是否正常
这是什么意思?我无法理解为什么有时会发生这种情况?
有什么建议吗?
【问题讨论】:
标签: c linux operating-system redhat system-calls