Windows API 可能会返回 MSDN 文档上没有提到的错误码

2021-03-01 00:27

阅读:754

标签:flags   invalid   esc   specified   windows   The   pat   strong   window   

例如 _sopen_s 在磁盘空间不够的时候, 宏 errno 就会返回 ENOSPC(28)

 

MSDN 文档时只提到以下错误码

errno value Condition
EACCES The given path is a directory, or the file is read-only, but an open-for-writing operation was attempted.
EEXIST _O_CREAT and _O_EXCL flags were specified, but filename already exists.
EINVAL Invalid oflag, shflag, or pmode argument, or pfh or filename was a null pointer.
EMFILE No more file descriptors available.
ENOENT File or path not found.

Windows API 可能会返回 MSDN 文档上没有提到的错误码

标签:flags   invalid   esc   specified   windows   The   pat   strong   window   

原文地址:https://www.cnblogs.com/liujx2019/p/14447347.html


评论


亲,登录后才可以留言!