VirtualBox

Changeset 11822

Show
Ignore:
Timestamp:
08/29/08 16:21:03 (3 months ago)
Author:
vboxsync
Message:

IPRT: RTR3Init cleanup.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/initterm.h

    r11794 r11822  
    4646#ifdef IN_RING3 
    4747/** 
    48  * Initalizes the runtime library. 
     48 * Initializes the runtime library. 
    4949 * 
    5050 * @returns iprt status code. 
     51 */ 
     52RTR3DECL(int) RTR3Init(void); 
     53 
     54/** 
     55 * Initializes the runtime library and try initialize SUPLib too. 
    5156 * 
    52  * @param   fInitSUPLib     Set if SUPR3Init() shall be called during init (default). 
    53  *                          Clear if not to call it. 
    54  * @param   cbReserve       Ignored. 
     57 * @returns IPRT status code. 
     58 * @param   pszProgramPath      The path to the program file. 
     59 * 
     60 * @remarks Failure to initialize SUPLib is ignored. 
    5561 */ 
    56 RTR3DECL(int) RTR3Init( 
    57 #ifdef __cplusplus 
    58     bool fInitSUPLib = true, 
    59     size_t cbReserve = 0 
    60 #else 
    61     bool fInitSUPLib, 
    62     size_t cbReserve 
    63 #endif 
    64     ); 
     62RTR3DECL(int) RTR3InitAndSUPLib(void); 
     63 
     64/** 
     65 * Initializes the runtime library passing it the program path. 
     66 * 
     67 * @returns IPRT status code. 
     68 * @param   pszProgramPath      The path to the program file. 
     69 */ 
     70RTR3DECL(int) RTR3InitWithProgramPath(const char *pszProgramPath); 
     71 
     72/** 
     73 * Initializes the runtime library passing it the program path, 
     74 * and try initialize SUPLib too (failures ignored). 
     75 * 
     76 * @returns IPRT status code. 
     77 * @param   pszProgramPath      The path to the program file. 
     78 * 
     79 * @remarks Failure to initialize SUPLib is ignored. 
     80 */ 
     81RTR3DECL(int) RTR3InitAndSUPLibWithProgramPath(const char *pszProgramPath); 
    6582 
    6683/** 
     
    6885 */ 
    6986RTR3DECL(void) RTR3Term(void); 
    70 #endif 
     87 
     88#endif /* IN_RING3 */ 
    7189 
    7290 
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r10778 r11822  
    409409 
    410410    if (0 == ghSeamlessNotifyEvent)         /* If seamless mode is not active / supported, reduce event array count */ 
    411         dwEventCount = 1;                        
     411        dwEventCount = 1; 
    412412 
    413413    Log(("VBoxTray: Number of events to wait in main loop: %ld\n", dwEventCount)); 
     
    491491    /* Do not use a global namespace ("Global\\") for mutex name here, will blow up NT4 compatibility! */ 
    492492    HANDLE hMutexAppRunning = CreateMutex (NULL, FALSE, "VBoxTray"); 
    493     if (   (hMutexAppRunning != NULL)  
     493    if (   (hMutexAppRunning != NULL) 
    494494        && (GetLastError() == ERROR_ALREADY_EXISTS)) 
    495495    { 
     
    500500    } 
    501501 
    502     int rc = RTR3Init(false); 
     502    int rc = RTR3Init(); 
    503503    if (RT_FAILURE(rc)) 
    504504        return rc; 
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r11563 r11822  
    540540    } 
    541541    else VBoxControlError("Error retrieving handle to user32.dll!"); 
    542      
     542 
    543543    return 0; 
    544544} 
     
    863863        RegCloseKey(hkeyVideo); 
    864864    } 
    865      
     865 
    866866    return 0; 
    867867} 
     
    12231223    if (!onlyinfo) 
    12241224    { 
    1225         rrc = RTR3Init(false, 0); 
     1225        rrc = RTR3Init(); /** @todo r=bird: This ALWAYS goes first, the only exception is when you have to parse args to figure out which to call! */ 
    12261226        if (!RT_SUCCESS(rrc)) 
    12271227        { 
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r10654 r11822  
    230230     * Init globals and such. 
    231231     */ 
    232     RTR3Init(false, 0); 
     232    RTR3Init(); 
    233233    g_pszProgName = RTPathFilename(argv[0]); 
    234234    for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) 
  • trunk/src/VBox/Additions/x11/xclient/main.cpp

    r11648 r11822  
    196196 
    197197    /* Initialise our runtime before all else. */ 
    198     RTR3Init(false); 
     198    RTR3Init(); 
    199199 
    200200    /* Parse our option(s) */ 
  • trunk/src/VBox/Additions/x11/xclient/testcase/tstSeamlessX11.cpp

    r8155 r11822  
    110110    std::string sTmp; 
    111111 
    112     RTR3Init(false); 
     112    RTR3Init(); 
    113113    std::cout << "VirtualBox guest additions X11 seamless mode testcase" << std::endl; 
    114114    if (0 == XInitThreads()) 
  • trunk/src/VBox/Debugger/testcase/tstVBoxDbg.cpp

    r8155 r11822  
    4343    int     cErrors = 0;                  /* error count. */ 
    4444 
    45     RTR3Init(); 
     45    RTR3InitAndSUPLib(); 
    4646    RTPrintf(TESTCASE ": TESTING...\n"); 
    4747 
  • trunk/src/VBox/Devices/Network/testcase/tstIntNet-1.cpp

    r11794 r11822  
    668668     * Init the runtime and parse the arguments. 
    669669     */ 
    670     RTR3Init(false, 0); 
     670    RTR3Init(); 
    671671 
    672672    static RTOPTIONDEF const s_aOptions[] = 
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r11725 r11822  
    944944{ 
    945945    // initialize VBox Runtime 
    946     RTR3Init (true, ~(size_t)0); 
     946    RTR3InitAndSUPLib(); 
    947947    return TrustedMain (argc, argv, envp); 
    948948} 
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r11820 r11822  
    79877987     * the support driver. 
    79887988     */ 
    7989     RTR3Init(false); 
     7989    RTR3Init(); 
    79907990 
    79917991    bool fShowLogo = true; 
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r11820 r11822  
    29282928     * Before we do *anything*, we initialize the runtime. 
    29292929     */ 
    2930     int rcRT = RTR3Init(true, ~(size_t)0); 
     2930    int rcRT = RTR3InitAndSUPLib(); 
    29312931    if (VBOX_FAILURE(rcRT)) 
    29322932    { 
     
    47564756            // /* send Ctrl-Alt-Fx to guest */ 
    47574757            com::SafeArray<LONG> keys(6); 
    4758              
     4758 
    47594759            keys[0] = 0x1d; // Ctrl down 
    47604760            keys[1] = 0x38; // Alt down 
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r11737 r11822  
    272272int main (int argc, char **argv, char **envp) 
    273273{ 
    274     /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we 
     274    /* Initialize VBox Runtime. Initialize the SUPLib as well only if we 
    275275     * are really about to start a VM. Don't do this if we are only starting 
    276276     * the selector window. */ 
    277     bool fInitGC = false; 
     277    bool fInitSUPLib = false; 
    278278    for (int i = 0; i < argc; i++) 
    279279    { 
    280280        if (!::strcmp (argv[i], "-startvm" )) 
    281281        { 
    282             fInitGC = true; 
     282            fInitSUPLib = true; 
    283283            break; 
    284284        } 
    285285    } 
    286     RTR3Init (fInitGC, ~(size_t)0); 
     286 
     287    if (!fInitSUPLib) 
     288        RTR3Init(); 
     289    else 
     290        RTR3InitAndSUPLib(); 
    287291 
    288292    return TrustedMain (argc, argv, envp); 
  • trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp

    r11737 r11822  
    291291int main (int argc, char **argv, char **envp) 
    292292{ 
    293     /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we 
     293    /* Initialize VBox Runtime. Initialize the SUPLib as well only if we 
    294294     * are really about to start a VM. Don't do this if we are only starting 
    295295     * the selector window. */ 
    296     bool fInitGC = false; 
     296    bool fInitSUPLib = false; 
    297297    for (int i = 0; i < argc; i++) 
    298298    { 
    299299        if (!::strcmp (argv[i], "-startvm" )) 
    300300        { 
    301             fInitGC = true; 
     301            fInitSUPLib = true; 
    302302            break; 
    303303        } 
    304304    } 
    305     RTR3Init (fInitGC, ~(size_t)0); 
     305 
     306    if (!fInitSUPLib) 
     307        RTR3Init(); 
     308    else 
     309        RTR3InitAndSUPLib(); 
    306310 
    307311    return TrustedMain (argc, argv, envp); 
  • trunk/src/VBox/HostDrivers/Support/testcase/SUPInstall.cpp

    r8155 r11822  
    4141int main(int argc, char **argv) 
    4242{ 
    43     RTR3Init(false); 
     43    RTR3Init(); 
    4444    int rc = SUPInstall(); 
    4545    if (VBOX_SUCCESS(rc)) 
  • trunk/src/VBox/HostDrivers/Support/testcase/SUPUninstall.cpp

    r8155 r11822  
    4141int main(int argc, char **argv) 
    4242{ 
    43     RTR3Init(false); 
     43    RTR3Init(); 
    4444    int rc = SUPUninstall(); 
    4545    if (VBOX_SUCCESS(rc)) 
  • trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp

    r11794 r11822  
    4646    int rcRet = 0; 
    4747 
    48     RTR3Init(false); 
     48    RTR3Init(); 
    4949    rc = SUPR3Init(NULL); 
    5050    RTPrintf("tstContiguous: SUPR3Init -> rc=%Vrc\n", rc); 
  • trunk/src/VBox/HostDrivers/Support/testcase/tstGetPagingMode.cpp

    r11794 r11822  
    4343{ 
    4444    int rc; 
    45     RTR3Init(false); 
     45    RTR3Init(); 
    4646    rc = SUPR3Init(NULL); 
    4747    if (VBOX_SUCCESS(rc)) 
  • trunk/src/VBox/HostDrivers/Support/testcase/tstInit.cpp

    r11794 r11822  
    4343{ 
    4444    int rc; 
    45     RTR3Init(false); 
     45    RTR3Init(); 
    4646    rc = SUPR3Init(NULL); 
    4747    RTPrintf("tstInit: SUPR3Init -> rc=%d\n", rc); 
  • trunk/src/VBox/HostDrivers/Support/testcase/tstLow.cpp

    r11794 r11822  
    4747    int rcRet = 0; 
    4848 
    49     RTR3Init(false); 
     49    RTR3Init(); 
    5050    RTPrintf("tstLow: TESTING...\n"); 
    5151 
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp

    r11794 r11822  
    4545    int cErrors = 0; 
    4646    int rc = 0; 
    47     RTR3Init(true, _1M*168); 
     47    RTR3InitAndSUPLib(); 
    4848    rc = SUPR3Init(NULL); 
    4949    cErrors += rc != 0; 
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp

    r11794 r11822  
    4848    RTHCPHYS    HCPhys; 
    4949 
    50     RTR3Init(true, ~0); 
     50    RTR3InitAndSUPLib(); 
    5151    rc = SUPR3Init(NULL); 
    5252    RTPrintf("SUPR3Init -> rc=%d\n", rc); 
  • trunk/src/VBox/Main/darwin/iokit.cpp

    r11681 r11822  
    16311631int main(int argc, char **argv) 
    16321632{ 
    1633     RTR3Init(false); 
     1633    RTR3Init(); 
    16341634 
    16351635    if (1) 
     
    16461646            CFRelease(PrefsRef); 
    16471647        } 
    1648     }    
     1648    } 
    16491649 
    16501650    if (1) 
     
    16761676                        CFStringGetCString(SCNetworkInterfaceGetLocalizedDisplayName(IfRef), szDisplayName, sizeof(szDisplayName), kCFStringEncodingUTF8); 
    16771677 
    1678                     RTPrintf(" #%u ServiceName=\"%s\" IfBSDName=\"%s\" IfDisplayName=\"%s\"\n",  
     1678                    RTPrintf(" #%u ServiceName=\"%s\" IfBSDName=\"%s\" IfDisplayName=\"%s\"\n", 
    16791679                             i, szServiceName, szBSDName, szDisplayName); 
    16801680                } 
     
    16851685            CFRelease(PrefsRef); 
    16861686        } 
    1687     }    
     1687    } 
    16881688 
    16891689    if (1) 
     
    17061706                if (SCNetworkInterfaceGetLocalizedDisplayName(IfRef)) 
    17071707                    CFStringGetCString(SCNetworkInterfaceGetLocalizedDisplayName(IfRef), szDisplayName, sizeof(szDisplayName), kCFStringEncodingUTF8); 
    1708                 RTPrintf(" #%u BSDName=\"%s\" DisplayName=\"%s\"\n",  
     1708                RTPrintf(" #%u BSDName=\"%s\" DisplayName=\"%s\"\n", 
    17091709                         i, szBSDName, szDisplayName); 
    17101710            } 
     
    17121712            CFRelease(IfsRef); 
    17131713        } 
    1714     }    
     1714    } 
    17151715 
    17161716    if (1) 
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r11357 r11822  
    206206     * the support driver. 
    207207     */ 
    208     RTR3Init(false); 
     208    RTR3Init(); 
    209209 
    210210    HRESULT rc; 
  • trunk/src/VBox/Main/testcase/tstCollector.cpp

    r11181 r11822  
    6969     * the support driver. 
    7070     */ 
    71     int rc = RTR3Init(false); 
     71    int rc = RTR3Init(); 
    7272    if (RT_FAILURE(rc)) 
    7373    { 
  • trunk/src/VBox/Main/win/svcmain.cpp

    r10868 r11822  
    163163     * the support driver. 
    164164     */ 
    165     RTR3Init(false); 
     165    RTR3Init(); 
    166166 
    167167    lpCmdLine = GetCommandLine(); /* this line necessary for _ATL_MIN_CRT */ 
  • trunk/src/VBox/Main/xpcom/server.cpp

    r11820 r11822  
    999999     * the support driver 
    10001000     */ 
    1001     RTR3Init(false); 
     1001    RTR3Init(); 
    10021002 
    10031003    nsresult rc; 
  • trunk/src/VBox/Runtime/r3/init.cpp

    r11794 r11822  
    103103 
    104104/** 
    105  * Initalizes the runtime library. 
    106  * 
    107  * @returns iprt status code. 
    108  * 
    109  * @param   fInitSUPLib     Set if SUPR3Init() shall be called during init (default). 
    110  *                          Clear if not to call it. 
    111  * @param   cbReserve       Ignored. 
    112  */ 
    113 RTR3DECL(int) RTR3Init(bool fInitSUPLib, size_t cbReserve) 
     105 * Internal initialization worker. 
     106 * 
     107 * @returns IPRT status code. 
     108 * @param   fInitSUPLib     Whether to call SUPR3Init. 
     109 * @param   pszProgramPath  The program path, NULL if not specified. 
     110 */ 
     111static int rtR3Init(bool fInitSUPLib, const char *pszProgramPath) 
    114112{ 
    115113    /* no entry log flow, because prefixes and thread may freak out. */ 
     
    230228} 
    231229 
     230 
     231RTR3DECL(int) RTR3Init(void) 
     232{ 
     233    return rtR3Init(false /* fInitSUPLib */, NULL); 
     234} 
     235 
     236 
     237RTR3DECL(int) RTR3InitWithProgramPath(const char *pszProgramPath) 
     238{ 
     239    return rtR3Init(false /* fInitSUPLib */, pszProgramPath); 
     240} 
     241 
     242 
     243RTR3DECL(int) RTR3InitAndSUPLib(void) 
     244{ 
     245    return rtR3Init(true /* fInitSUPLib */, NULL /* pszProgramPath */); 
     246} 
     247 
     248 
     249RTR3DECL(int) RTR3InitAndSUPLibWithProgramPath(const char *pszProgramPath) 
     250{ 
     251    return rtR3Init(true /* fInitSUPLib */, pszProgramPath); 
     252} 
     253 
     254 
     255#if 0 /** @todo implement RTR3Term. */ 
     256RTR3DECL(void) RTR3Term(void) 
     257{ 
     258} 
     259#endif 
     260 
  • trunk/src/VBox/Runtime/testcase/tstHandleTable.cpp

    r11127 r11822  
    453453     * Init the runtime and parse the arguments. 
    454454     */ 
    455     RTR3Init(false, 0); 
     455    RTR3Init(); 
    456456 
    457457    static RTOPTIONDEF const s_aOptions[] = 
  • trunk/src/VBox/Runtime/testcase/tstMemAutoPtr.cpp

    r11024 r11822  
    129129int main() 
    130130{ 
    131     RTR3Init(false); 
     131    RTR3Init(); 
    132132    RTPrintf("tstMemAutoPtr: TESTING...\n"); 
    133133 
  • trunk/src/VBox/Runtime/testcase/tstRand.cpp

    r11523 r11822  
    358358int main() 
    359359{ 
    360     RTR3Init(false); 
     360    RTR3Init(); 
    361361    RTPrintf("tstRand: TESTING...\n"); 
    362362 
  • trunk/src/VBox/Runtime/testcase/tstSemMutex.cpp

    r8245 r11822  
    208208int main(int argc, char **argv) 
    209209{ 
    210     int rc = RTR3Init(false, 0); 
     210    int rc = RTR3Init(); 
    211211    if (RT_FAILURE(rc)) 
    212212    { 
  • trunk/src/VBox/Runtime/testcase/tstSystemQueryOsInfo.cpp

    r11355 r11822  
    4646int main() 
    4747{ 
    48     RTR3Init(false /*fInitSUPLib */); 
     48    RTR3Init(); 
    4949 
    5050    RTPrintf("tstSystemQueryOsInfo: TESTINGS...\n"); 
  • trunk/src/VBox/Runtime/testcase/tstThread-1.cpp

    r10794 r11822  
    5454int main(int argc, const char * const *argv) 
    5555{ 
    56     RTR3Init(false, 0); 
     56    RTR3Init(); 
    5757 
    5858    /* 
  • trunk/src/VBox/Runtime/testcase/tstTime-2.cpp

    r8245 r11822  
    4444    unsigned cErrors = 0; 
    4545    int i; 
    46     RTR3Init(); 
     46    RTR3InitAndSUPLib(); 
    4747    RTPrintf("tstTime-2: TESTING...\n"); 
    4848 
  • trunk/src/VBox/Runtime/testcase/tstTime-3.cpp

    r8245 r11822  
    7373int main(int argc, char **argv) 
    7474{ 
    75     RTR3Init(); 
     75    RTR3InitAndSUPLib(); 
    7676 
    7777    if (argc <= 1) 
  • trunk/src/VBox/Runtime/testcase/tstTime-4.cpp

    r8245 r11822  
    4444    unsigned cErrors = 0; 
    4545 
    46     RTR3Init(); 
     46    RTR3InitAndSUPLib(); 
    4747    RTPrintf("tstTime-4: TESTING...\n"); 
    4848 
    4949    /* 
    50      * Check that RTTimeSystemNanoTS doesn't go backwards and  
     50     * Check that RTTimeSystemNanoTS doesn't go backwards and 
    5151     * isn't too far from RTTimeNanoTS(). 
    5252     */ 
  • trunk/src/VBox/Runtime/testcase/tstTime.cpp

    r8245 r11822  
    4343    unsigned cErrors = 0; 
    4444    int i; 
    45     RTR3Init(); 
     45    RTR3InitAndSUPLib(); 
    4646    RTPrintf("tstTime: TESTING...\n"); 
    4747 
  • trunk/src/VBox/Runtime/testcase/tstUtf8.cpp

    r8245 r11822  
    906906int main() 
    907907{ 
    908     RTR3Init(false); 
     908    RTR3Init(); 
    909909 
    910910    InitStrings(); 
  • trunk/src/VBox/VMM/testcase/tstAnimate.cpp

    r11311 r11822  
    619619    int rcRet = 1; 
    620620    int rc; 
    621     RTR3Init(); 
     621    RTR3InitAndSUPLib(); 
    622622 
    623623    /* 
  • trunk/src/VBox/VMM/testcase/tstCFGM.cpp

    r11794 r11822  
    4343     * Init runtime. 
    4444     */ 
    45     RTR3Init(); 
     45    RTR3InitAndSUPLib(); 
    4646 
    4747    /* 
  • trunk/src/VBox/VMM/testcase/tstGlobalConfig.cpp

    r11794 r11822  
    4545int main(int argc, char **argv) 
    4646{ 
    47     RTR3Init(false, 0); 
     47    RTR3Init(); 
    4848 
    4949    /* 
  • trunk/src/VBox/VMM/testcase/tstMicro.cpp

    r9193 r11822  
    341341    int     rcRet = 0;                  /* error count. */ 
    342342 
    343     RTR3Init(); 
     343    RTR3InitAndSUPLib(); 
    344344 
    345345    /* 
  • trunk/src/VBox/VMM/testcase/tstSSM.cpp

    r11794 r11822  
    613613     * Init runtime and static data. 
    614614     */ 
    615     RTR3Init(); 
     615    RTR3InitAndSUPLib(); 
    616616    RTPrintf("tstSSM: TESTING...\n"); 
    617617    initBigMem(); 
  • trunk/src/VBox/VMM/testcase/tstVMM-2.cpp

    r8155 r11822  
    288288    int         fPowerOn = 0; 
    289289 
    290     RTR3Init(); 
     290    RTR3InitAndSUPLib(); 
    291291 
    292292 
  • trunk/src/VBox/VMM/testcase/tstVMM-HwAccm.cpp

    r10917 r11822  
    6969    int     rcRet = 0;                  /* error count. */ 
    7070 
    71     RTR3Init(); 
     71    RTR3InitAndSUPLib(); 
    7272 
    7373    /* 
  • trunk/src/VBox/VMM/testcase/tstVMM.cpp

    r8155 r11822  
    4747    int     rcRet = 0;                  /* error count. */ 
    4848 
    49     RTR3Init(); 
     49    RTR3InitAndSUPLib(); 
    5050 
    5151    /* 
  • trunk/src/VBox/VMM/testcase/tstVMMFork.cpp

    r8155 r11822  
    5353     * Initialize the runtime. 
    5454     */ 
    55     RTR3Init(); 
     55    RTR3InitAndSUPLib(); 
    5656 
    5757#ifndef AUTO_TEST_ARGS 
     
    9090        ppszArgs[2] = NULL; 
    9191#endif 
    92          
     92 
    9393        RTPrintf(TESTCASE ": forking current process...\n"); 
    9494        pid_t pid = fork(); 
     
    101101        else if (pid == 0) 
    102102        { 
    103             /*  
     103            /* 
    104104             * The child process. 
    105105             * Write to some local variables to trigger copy-on-write if it's used. 
     
    119119        else 
    120120        { 
    121             /*  
     121            /* 
    122122             * The parent process. 
    123123             * Wait for child & run VMM test to ensure things are fine. 
     
    131131                rcErrors++; 
    132132            } 
    133              
     133 
    134134            if (rcErrors == 0) 
    135135            { 
     
    149149        else 
    150150            RTPrintf(TESTCASE ": fork() and VM test, SUCCESS.\n"); 
    151          
     151 
    152152        /* 
    153153         * Cleanup. 
     
    165165        rcErrors++; 
    166166    } 
    167      
     167 
    168168    return rcErrors; 
    169169} 
  • trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp

    r8155 r11822  
    9797     * Init. 
    9898     */ 
    99     RTR3Init(false); 
     99    RTR3Init(); 
    100100    RTPrintf("tstVMMR0CallHost-1: Testing...\n"); 
    101101    g_Jmp.pvSavedStack = (RTR0PTR)&g_Stack[0]; 
  • trunk/src/VBox/VMM/testcase/tstVMREQ.cpp

    r11311 r11822  
    219219int main(int argc, char **argv) 
    220220{ 
    221     RTR3Init(); 
     221    RTR3InitAndSUPLib(); 
    222222    RTPrintf(TESTCASE ": TESTING...\n"); 
    223223 
  • trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcLog.cpp

    r3181 r11822  
    5252#undef PAGE_SIZE 
    5353#endif 
    54 #include <iprt/runtime.h> // for RTR3Init 
     54#include <iprt/initterm.h> // for RTR3Init 
    5555#else // !VBOX 
    5656PRBool ipcLogEnabled = PR_FALSE; 
     
    122122#ifdef VBOX 
    123123    // initialize VBox Runtime 
    124     RTR3Init(false); 
     124    RTR3Init(); 
    125125 
    126126    PL_strncpyz(ipcLogPrefix, prefix, sizeof(ipcLogPrefix)); 
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prlog.c