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.

 

 

 

 

本文链接:https://my.lmcjl.com/post/932.html

展开阅读全文

4 评论

留下您的评论.