Changeset 16807 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Feb 17, 2009 1:28:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/err/RTErrConvertToErrno.cpp
r14262 r16807 55 55 * Process error codes. 56 56 * 57 * Try to reverse the behaviour of RTErrConvertFromErrno as far58 * a s possible.57 * (Use a switch and not a table since the numbers vary among compilers 58 * and OSes. So we let the compiler switch optimizer handle speed issues.) 59 59 * 60 * @note I am very impressed by the length of some of these61 * error codes - we have obviously learnt something from62 * Unix's failings :)60 * This switch is arranged like the Linux i386 errno.h! It also mirrors the 61 * conversions performed by RTErrConvertFromErrno with a few extra case since 62 * there are far more IPRT status codes than Unix ones. 63 63 */ 64 64 switch (iErr) … … 92 92 #endif 93 93 #ifdef ECHILD 94 //case VERR_PROCESS_NOT_FOUND: return ECHILD;94 case VERR_PROCESS_NOT_FOUND: return ECHILD; 95 95 #endif 96 96 #ifdef EAGAIN … … 122 122 #endif 123 123 #ifdef ENOTDIR 124 case VERR_PATH_NOT_FOUND: return ENOENT; 124 case VERR_NOT_A_DIRECTORY: 125 case VERR_PATH_NOT_FOUND: return ENOTDIR; 125 126 #endif 126 127 #ifdef EISDIR
Note:
See TracChangeset
for help on using the changeset viewer.