- Timestamp:
- Feb 17, 2009 1:28:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/err/RTErrConvertFromErrno.cpp
r9931 r16808 58 58 * and OSes. So we let the compiler switch optimizer handle speed issues.) 59 59 * 60 * This switch is arranged like the Linux i386 errno.h! 60 * This switch is arranged like the Linux i386 errno.h! This switch is mirrored 61 * by RTErrConvertToErrno. 61 62 */ 62 63 switch (uNativeCode) … … 78 79 #endif 79 80 #ifdef ENXIO 80 case ENXIO: return VERR_DEV_IO_ERROR; 81 case ENXIO: return VERR_DEV_IO_ERROR; /**@todo fix this duplicate error */ 81 82 #endif 82 83 #ifdef E2BIG … … 90 91 #endif 91 92 #ifdef ECHILD 92 case ECHILD: return VERR_PROCESS_NOT_FOUND; //... /* 10*/93 case ECHILD: return VERR_PROCESS_NOT_FOUND; /* 10 */ /**@todo fix duplicate error */ 93 94 #endif 94 95 #ifdef EAGAIN … … 99 100 #endif 100 101 #ifdef EACCES 101 case EACCES: return VERR_ACCESS_DENIED; 102 case EACCES: return VERR_ACCESS_DENIED; /**@todo fix duplicate error */ 102 103 #endif 103 104 #ifdef EFAULT … … 108 109 #endif 109 110 #ifdef EBUSY 110 case EBUSY: return VERR_DEV_IO_ERROR; 111 case EBUSY: return VERR_DEV_IO_ERROR; /**@todo fix duplicate error */ 111 112 #endif 112 113 #ifdef EEXIST … … 117 118 #endif 118 119 #ifdef ENODEV 119 case ENODEV: return VERR_NOT_SUPPORTED; 120 case ENODEV: return VERR_NOT_SUPPORTED; /**@todo fix duplicate error */ 120 121 #endif 121 122 #ifdef ENOTDIR … … 129 130 #endif 130 131 #ifdef ENFILE 131 case ENFILE: return VERR_TOO_MANY_OPEN_FILES; 132 case ENFILE: return VERR_TOO_MANY_OPEN_FILES; /**@Todo fix duplicate error */ 132 133 #endif 133 134 #ifdef EMFILE … … 159 160 #endif 160 161 #ifdef EDOM 161 case EDOM: return VERR_INVALID_PARAMETER; 162 case EDOM: return VERR_INVALID_PARAMETER; /**@todo fix duplicate error */ 162 163 #endif 163 164 #ifdef ERANGE 164 case ERANGE: return VERR_INVALID_PARAMETER; 165 case ERANGE: return VERR_INVALID_PARAMETER; /**@todo fix duplicate error */ 165 166 #endif 166 167 #ifdef EDEADLK … … 281 282 #endif 282 283 #ifdef EOVERFLOW 283 case EOVERFLOW: return VERR_TOO_MUCH_DATA; 284 case EOVERFLOW: return VERR_TOO_MUCH_DATA; /**@todo fix duplicate error */ 284 285 #endif 285 286 #ifdef ENOTUNIQ … … 287 288 #endif 288 289 #ifdef EBADFD 289 case EBADFD: return VERR_INVALID_HANDLE; 290 case EBADFD: return VERR_INVALID_HANDLE; /**@todo fix duplicate error? */ 290 291 #endif 291 292 #ifdef EREMCHG … … 311 312 #endif 312 313 #ifdef ERESTART 313 case ERESTART: return VERR_INTERRUPTED; 314 case ERESTART: return VERR_INTERRUPTED;/**@todo fix duplicate error?*/ 314 315 #endif 315 316 #ifdef ESTRPIPE … … 422 423 #endif 423 424 #ifdef EDQUOT 424 case EDQUOT: return VERR_DISK_FULL; 425 case EDQUOT: return VERR_DISK_FULL; /**@todo fix duplicate error */ 425 426 #endif 426 427 #ifdef ENOMEDIUM
Note:
See TracChangeset
for help on using the changeset viewer.