Changeset 38636 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Sep 5, 2011 1:49:45 PM (13 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h
r37596 r38636 277 277 * 278 278 * This is dynamically resolved and invoked by the static library before it 279 * calls RTR3Init and thereby SUPR3Init.279 * calls RTR3InitEx and thereby SUPR3Init. 280 280 * 281 281 * @returns IPRT status code. -
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp
r38076 r38636 79 79 #include <VBox/err.h> 80 80 #include <iprt/string.h> 81 #include <iprt/initterm.h> 81 82 #include <iprt/param.h> 82 83 … … 110 111 *******************************************************************************/ 111 112 /** @see RTR3InitEx */ 112 typedef DECLCALLBACK(int) FNRTR3INITEX(uint32_t iVersion, const char *pszProgramPath, bool fInitSUPLib); 113 typedef DECLCALLBACK(int) FNRTR3INITEX(uint32_t iVersion, uint32_t fFlags, int cArgs, 114 char **papszArgs, const char *pszProgramPath); 113 115 typedef FNRTR3INITEX *PFNRTR3INITEX; 114 116 … … 826 828 /** 827 829 * Loads the VBoxRT DLL/SO/DYLIB, hands it the open driver, 828 * and calls RTR3Init .830 * and calls RTR3InitEx. 829 831 * 830 832 * @param fFlags The SUPR3HardenedMain fFlags argument, passed to supR3PreInit. … … 896 898 pszExePath = g_szSupLibHardenedExePath; 897 899 #endif 898 rc = pfnRTInitEx(0, pszExePath, !(fFlags & SUPSECMAIN_FLAGS_DONT_OPEN_DEV)); 900 rc = pfnRTInitEx(RTR3INIT_VER_1, 901 fFlags & SUPSECMAIN_FLAGS_DONT_OPEN_DEV ? 0 : RTR3INIT_FLAGS_SUPLIB, 902 0 /*cArgs*/, NULL /*papszArgs*/, pszExePath); 899 903 if (RT_FAILURE(rc)) 900 904 supR3HardenedFatalMsg("supR3HardenedMainInitRuntime", kSupInitOp_IPRT, rc, 901 "RTR3Init failed with rc=%d", rc);905 "RTR3InitEx failed with rc=%d", rc); 902 906 } 903 907 … … 1085 1089 /* 1086 1090 * Load the IPRT, hand the SUPLib part the open driver and 1087 * call RTR3Init .1091 * call RTR3InitEx. 1088 1092 */ 1089 1093 supR3HardenedMainInitRuntime(fFlags); -
trunk/src/VBox/HostDrivers/Support/testcase/SUPInstall.cpp
r28800 r38636 37 37 int main(int argc, char **argv) 38 38 { 39 RTR3Init ();39 RTR3InitExeNoArguments(0); 40 40 int rc = SUPR3Install(); 41 41 if (RT_SUCCESS(rc)) -
trunk/src/VBox/HostDrivers/Support/testcase/SUPLoggerCtl.cpp
r28800 r38636 58 58 int main(int argc, char **argv) 59 59 { 60 RTR3Init AndSUPLib();60 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB); 61 61 62 62 /* -
trunk/src/VBox/HostDrivers/Support/testcase/SUPUninstall.cpp
r28800 r38636 37 37 int main(int argc, char **argv) 38 38 { 39 RTR3Init ();39 RTR3InitExeNoArguments(0); 40 40 int rc = SUPR3Uninstall(); 41 41 if (RT_SUCCESS(rc)) -
trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp
r28800 r38636 42 42 int rcRet = 0; 43 43 44 RTR3Init ();44 RTR3InitExe(argc, &argv, 0); 45 45 rc = SUPR3Init(NULL); 46 46 RTPrintf("tstContiguous: SUPR3Init -> rc=%Rrc\n", rc); -
trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp
r33595 r38636 43 43 int main(int argc, char **argv) 44 44 { 45 RTR3Init ();45 RTR3InitExe(argc, &argv, 0); 46 46 47 47 /* -
trunk/src/VBox/HostDrivers/Support/testcase/tstGetPagingMode.cpp
r28800 r38636 38 38 { 39 39 int rc; 40 RTR3Init ();40 RTR3InitExe(argc, &argv, 0); 41 41 rc = SUPR3Init(NULL); 42 42 if (RT_SUCCESS(rc)) -
trunk/src/VBox/HostDrivers/Support/testcase/tstInit.cpp
r28800 r38636 38 38 { 39 39 int rc; 40 RTR3Init ();40 RTR3InitExe(argc, &argv, 0); 41 41 rc = SUPR3Init(NULL); 42 42 RTPrintf("tstInit: SUPR3Init -> rc=%d\n", rc); -
trunk/src/VBox/HostDrivers/Support/testcase/tstInt.cpp
r35346 r38636 78 78 * Init. 79 79 */ 80 RTR3Init ();80 RTR3InitExe(argc, &argv, 0); 81 81 PSUPDRVSESSION pSession; 82 82 rc = SUPR3Init(&pSession); -
trunk/src/VBox/HostDrivers/Support/testcase/tstLow.cpp
r28800 r38636 42 42 int rcRet = 0; 43 43 44 RTR3Init ();44 RTR3InitExe(argc, &argv, 0); 45 45 RTPrintf("tstLow: TESTING...\n"); 46 46 -
trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp
r28800 r38636 39 39 { 40 40 int cErrors = 0; 41 int rc = 0; 42 RTR3Init AndSUPLib();43 rc = SUPR3Init(NULL);41 42 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB); 43 int rc = SUPR3Init(NULL); 44 44 cErrors += rc != 0; 45 45 if (!rc) -
trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
r28800 r38636 46 46 RTHCPHYS HCPhys; 47 47 48 RTR3Init AndSUPLib();48 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB); 49 49 rc = SUPR3Init(NULL); 50 50 RTPrintf("SUPR3Init -> rc=%d\n", rc); -
trunk/src/VBox/HostDrivers/Support/testcase/tstSupLoadModule.cpp
r35188 r38636 45 45 * Init. 46 46 */ 47 int rc = RTR3Init AndSUPLib();47 int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB); 48 48 if (RT_FAILURE(rc)) 49 { 50 RTMsgError("RTR3InitAndSUPLib failed with rc=%Rrc\n", rc); 51 return 1; 52 } 49 return RTMsgInitFailure(rc); 53 50 54 51 /* -
trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem-Zombie.cpp
r28800 r38636 95 95 * Init. 96 96 */ 97 int rc = RTR3Init AndSUPLib();97 int rc = RTR3InitExeNoArguments(RTR3INIT_FLAGS_SUPLIB); 98 98 if (RT_FAILURE(rc)) 99 99 { 100 RTPrintf("tstSupSem-Zombie-Child: fatal error: RTR3Init AndSUPLibfailed with rc=%Rrc\n", rc);100 RTPrintf("tstSupSem-Zombie-Child: fatal error: RTR3InitExeNoArguments failed with rc=%Rrc\n", rc); 101 101 return 1; 102 102 } -
trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem.cpp
r33383 r38636 34 34 #include <iprt/err.h> 35 35 #include <iprt/initterm.h> 36 #include <iprt/message.h> 36 37 #include <iprt/stream.h> 37 38 #include <iprt/test.h> … … 79 80 * Init. 80 81 */ 81 int rc = RTR3Init AndSUPLib();82 int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB); 82 83 if (RT_FAILURE(rc)) 83 { 84 RTPrintf("tstSupSem: fatal error: RTR3InitAndSUPLib failed with rc=%Rrc\n", rc); 85 return 1; 86 } 84 return RTMsgInitFailure(rc); 87 85 88 86 if (argc == 2 && !strcmp(argv[1], "child")) -
trunk/src/VBox/HostDrivers/Support/win/SUPSvc-win.cpp
r33540 r38636 775 775 RTEnvSet("VBOX_LOG_FLAGS", "unbuffered thread msprog"); 776 776 #endif 777 int rc = RTR3Init ();777 int rc = RTR3InitExe(argc, &argv, 0); 778 778 if (RT_FAILURE(rc)) 779 779 { 780 supSvcLogError("RTR3Init failed with rc=%Rrc", rc);780 supSvcLogError("RTR3InitExe failed with rc=%Rrc", rc); 781 781 return 1; 782 782 }
Note:
See TracChangeset
for help on using the changeset viewer.