ENOENT

Why does ENOENT mean “No such file or directory”?

 

It's an abbreviation(縮寫) of Error NO ENTry (or Error NO ENTity), and can actually be used for more than files/directories.

It's simply “No such directory entry”. Since directory entries can be directories or files (or symlinks, or sockets, or pipes, or devices), the name ENOFILE would have been too narrow(狹隘) in its meaning.

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章