VirtualBox

Changeset 18329 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Mar 26, 2009 5:20:09 PM (16 years ago)
Author:
vboxsync
Message:

iprt/err.h: Added VERR_INTERNAL_ERROR_2 and VERR_INTERNAL_ERROR_3 for debugging purposes (too many VERR_INTERNAL_ERROR returns around). Translate the BSD EDOOFUS to VERR_INTERNAL_ERROR (just for kicks).

Location:
trunk/src/VBox/Runtime/common/err
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/err/RTErrConvertFromErrno.cpp

    r16808 r18329  
    437437        case EPROCLIM:          return VERR_MAX_PROCS_REACHED;
    438438#endif
     439#ifdef EDOOFUS
     440        case EDOOFUS:           return VERR_INTERNAL_ERROR;
     441#endif
    439442
    440443        default:
  • trunk/src/VBox/Runtime/common/err/RTErrConvertToErrno.cpp

    r17951 r18329  
    439439        case VERR_MAX_PROCS_REACHED:                return EPROCLIM;
    440440#endif
     441#ifdef EDOOFUS
     442        case VERR_INTERNAL_ERROR:
     443        case VERR_INTERNAL_ERROR_2:
     444        case VERR_INTERNAL_ERROR_3:                 return EDOOFUS;
     445#endif
    441446
    442447        default:
     448            /* The idea here is that if you hit this, you will have to
     449               translate the status code yourself. */
    443450            AssertMsgFailed(("Unhandled error code %Rrc\n", iErr));
    444451#ifdef EPROTO
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette