161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
switch (GetLastError()) {
case ERROR_FILE_NOT_FOUND:
case ERROR_PATH_NOT_FOUND:
case ERROR_NO_MORE_FILES:
return ENOENT;
case ERROR_ACCESS_DENIED:
return EACCES;
case ERROR_DIRECTORY:
return ENOTDIR;
case ERROR_NOT_READY:
return EBUSY;
default:
return EIO;
}
|
>
>
|
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
switch (GetLastError()) {
case ERROR_FILE_NOT_FOUND:
case ERROR_PATH_NOT_FOUND:
case ERROR_NO_MORE_FILES:
return ENOENT;
case ERROR_ACCESS_DENIED:
return EACCES;
case ERROR_PRIVILEGE_NOT_HELD:
return EPERM;
case ERROR_DIRECTORY:
return ENOTDIR;
case ERROR_NOT_READY:
return EBUSY;
default:
return EIO;
}
|