VirtualBox

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


Ignore:
Timestamp:
Feb 22, 2010 4:43:37 PM (15 years ago)
Author:
vboxsync
Message:

iprt: RTEXITCODE, RTTcpServerListen2, RTTcpWrite fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/message.cpp

    r26674 r26683  
    9999
    100100
    101 RTDECL(int) RTMsgInitFailure(int rcRTR3Init)
     101RTDECL(RTEXITCODE) RTMsgErrorExit(RTEXITCODE enmExitCode, const char *pszFormat, ...)
     102{
     103    va_list va;
     104    va_start(va, pszFormat);
     105    RTMsgErrorV(pszFormat, va);
     106    va_end(va);
     107    return enmExitCode;
     108}
     109RT_EXPORT_SYMBOL(RTMsgErrorExitV);
     110
     111
     112RTDECL(RTEXITCODE) RTMsgErrorExitV(RTEXITCODE enmExitCode, const char *pszFormat, va_list va)
     113{
     114    RTMsgErrorV(pszFormat, va);
     115    return enmExitCode;
     116}
     117RT_EXPORT_SYMBOL(RTMsgErrorExitV);
     118
     119
     120RTDECL(RTEXITCODE) RTMsgInitFailure(int rcRTR3Init)
    102121{
    103122    if (   g_offrtProcName
     
    108127    else
    109128        RTStrmPrintf(g_pStdErr, "fatal error: RTR3Init: %Rrc\n", rcRTR3Init);
    110     return 12;
     129    return RTEXITCODE_INIT;
    111130}
    112131RT_EXPORT_SYMBOL(RTMsgInitFailure);
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