Searched defs:pszFilename (Results 1 - 25 of 114) sorted by relevance

12345

/vbox/src/VBox/Runtime/generic/
H A DRTFileReadAll-generic.cpp35 RTDECL(int) RTFileReadAll(const char *pszFilename, void **ppvFile, size_t *pcbFile) argument
37 return RTFileReadAllEx(pszFilename, 0, RTFOFF_MAX, RTFILE_RDALL_O_DENY_NONE, ppvFile, pcbFile);
H A DRTFileReadAllEx-generic.cpp38 RTDECL(int) RTFileReadAllEx(const char *pszFilename, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile) argument
43 int rc = RTFileOpen(&File, pszFilename, RTFILE_O_READ | RTFILE_O_OPEN | (fFlags & RTFILE_RDALL_O_DENY_MASK));
H A Dcreatetemp-generic.cpp60 char *pszFilename = RTPathFilename(pszTemplate); local
61 if ( pszFilename
62 && (size_t)(pszX - pszFilename) > 3)
65 pszFilename += 3;
76 } while (pszXEnd-- != pszFilename);
/vbox/src/VBox/Runtime/testcase/
H A DtstRTProcIsRunningByName.cpp77 char *pszFilename = RTPathFilename(szExecPath); local
78 if (pszFilename)
80 if (RTProcIsRunningByName(pszFilename))
81 RTPrintf("tstRTProcIsRunningByName: Process '%s' (self) is running\n", pszFilename);
84 RTPrintf("tstRTProcIsRunningByName: FAILURE - Process '%s' (self) is not running!\n", pszFilename);
H A DtstRTFileGetSize-1.cpp39 static void test1(const char *pszSubTest, const char *pszFilename) argument
45 rc = RTFileOpen(&hFile, pszFilename, RTFILE_O_READ | RTFILE_O_DENY_NONE | RTFILE_O_OPEN);
52 RTTestIPrintf(RTTESTLVL_ALWAYS, "Cannot access '%s', skipping.", pszFilename);
55 RTTESTI_CHECK_RC_RETV(RTFileOpen(&hFile, pszFilename, RTFILE_O_READ | RTFILE_O_DENY_NONE | RTFILE_O_OPEN), VINF_SUCCESS);
H A DtstRTZip.cpp44 static void testFile(const char *pszFilename) argument
49 int rc = RTFileReadAll(pszFilename, &pvSrc, &cbSrc);
H A DtstRTLdrVerifyPeImage.cpp67 const char *pszFilename = RTPathFilename(pszFullName); local
68 RTTestSub(hTest, pszFilename);
95 RTTestFailed(hTest, "%s: %s (rc=%Rrc)", pszFilename, ErrInfo.Core.pszMsg, rc);
H A DtstLdr-2.cpp90 * @param pszFilename The file to load the mess with.
92 static int testLdrOne(const char *pszFilename) argument
95 int rc = RTLdrOpen(pszFilename, 0, RTLDRARCH_WHATEVER, &hLdrMod);
98 RTPrintf("tstLdr: Failed to open '%s', rc=%Rrc. aborting test.\n", pszFilename, rc);
134 pszFilename, Addr2, Addr, rc);
141 "Entrypoint", pszFilename, off, Value);
144 RTPrintf("tstLdr: Failed to resolve symbol '%s' in '%s', rc=%Rrc.\n", "Entrypoint", pszFilename, rc);
147 RTPrintf("tstLdr: Failed to get bits for '%s', rc=%Rrc. aborting test\n", pszFilename, rc);
151 RTPrintf("tstLdr: Out of memory '%s' cb=%d. aborting test.\n", pszFilename, cb);
154 RTPrintf("tstLdr: Size is odd, '%s'. aborting test.\n", pszFilename);
[all...]
H A DtstLdr-4.cpp99 * @param pszFilename The file to load the mess with.
101 static int testLdrOne(const char *pszFilename) argument
129 rc = RTLdrOpenkLdr(pszFilename, 0, RTLDRARCH_WHATEVER, &aLoads[i].hLdrMod);
131 rc = RTLdrOpen(pszFilename, 0, RTLDRARCH_WHATEVER, &aLoads[i].hLdrMod);
134 RTPrintf("tstLdr-4: Failed to open '%s'/%d, rc=%Rrc. aborting test.\n", pszFilename, i, rc);
144 RTPrintf("tstLdr-4: Size mismatch '%s'/%d. aborting test.\n", pszFilename, i);
154 RTPrintf("tstLdr-4: Out of memory '%s'/%d cbImage=%d. aborting test.\n", pszFilename, i, cbImage);
163 RTPrintf("tstLdr-4: Failed to get bits for '%s'/%d, rc=%Rrc. aborting test\n", pszFilename, i, rc);
190 RTPrintf("tstLdr-4: pfnDisasmTest1=%p / add-symbol-file %s %#x\n", pfnDisasmTest1, pszFilename, aLoads[i].pvBits);
215 RTPrintf("tstLdr-4: Failed to close '%s' i=%d, rc=%Rrc.\n", pszFilename,
[all...]
H A DtstRTPrfIO.cpp128 DECL_FORCE_INLINE(int) benchmarkFileOpenCloseOp(const char *pszFilename) argument
131 int rc = RTFileOpen(&hFile, pszFilename, RTFILE_O_READ | RTFILE_O_DENY_NONE | RTFILE_O_OPEN);
/vbox/src/VBox/Runtime/common/checksum/
H A Dmanifest-file.cpp46 RTDECL(int) RTManifestReadStandardFromFile(RTMANIFEST hManifest, const char *pszFilename) argument
50 int rc = RTFileOpen(&hFile, pszFilename, fFlags);
66 RTDECL(int) RTManifestWriteStandardToFile(RTMANIFEST hManifest, const char *pszFilename) argument
70 int rc = RTFileOpen(&hFile, pszFilename, fFlags);
/vbox/src/VBox/Runtime/common/crypto/
H A DRTCrStoreCertAddFromFile.cpp48 RTDECL(int) RTCrX509Certificates_ReadFromFile(const char *pszFilename, uint32_t fFlags,
53 int rc = RTCrPemReadFile(pszFilename, 0, g_aCertificateMarkers, RT_ELEMENTS(g_aCertificateMarkers), &pSectionHead, pErrInfo);
72 RTDECL(int) RTCrStoreCertAddFromFile(RTCRSTORE hStore, uint32_t fFlags, const char *pszFilename, PRTERRINFO pErrInfo) argument
77 int rc = RTCrX509Certificates_ReadFromFile(pszFilename, 0, &Certs, pErrInfo);
96 int rc = RTCrPemReadFile(pszFilename, 0, g_aCertificateMarkers, RT_ELEMENTS(g_aCertificateMarkers), &pSectionHead, pErrInfo);
H A Dx509-file.cpp48 RTDECL(int) RTCrX509Certificate_ReadFromFile(PRTCRX509CERTIFICATE pCertificate, const char *pszFilename, uint32_t fFlags, argument
53 int rc = RTCrPemReadFile(pszFilename, 0, g_aCertificateMarkers, RT_ELEMENTS(g_aCertificateMarkers), &pSectionHead, pErrInfo);
59 pErrInfo, pAllocator, RTASN1CURSOR_FLAGS_DER, RTPathFilename(pszFilename));
83 RTDECL(int) RTCrX509Certificates_ReadFromFile(const char *pszFilename, uint32_t fFlags,
88 int rc = RTCrPemReadFile(pszFilename, 0, g_aCertificateMarkers, RT_ELEMENTS(g_aCertificateMarkers), &pSectionHead, pErrInfo);
/vbox/src/VBox/VMM/testcase/
H A DtstSSM-2.cpp31 static RTEXITCODE extractUnit(const char *pszFilename, const char *pszUnitname, const char *pszOutputFilename) argument
34 int rc = SSMR3Open(pszFilename, 0, &pSSM);
68 RTPrintf("Cannot open SSM file '%s' (%Rrc)\n", pszFilename, rc);
/vbox/src/bldprogs/
H A Dscmdiff.h32 const char *pszFilename; member in struct:SCMDIFFSTATE
54 size_t ScmDiffStreams(const char *pszFilename, PSCMSTREAM pLeft, PSCMSTREAM pRight, bool fIgnoreEol,
/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxOemHookStatusCodeLib/
H A DVBoxOemHookStatusCodeLib.c134 CHAR8 *pszFilename; local
141 if (ReportStatusCodeExtractAssertInfo(Type, Value, Data, &pszFilename,
146 if (pszFilename)
149 VBoxPrintString(pszFilename);
/vbox/src/VBox/Runtime/tools/
H A DRTManifest.cpp141 * @param pszFilename The name of the file to add.
144 static int rtManifestAddFileToManifest(RTMANIFEST hManifest, const char *pszFilename, uint32_t fAttr) argument
148 int rc = RTVfsChainOpenIoStream(pszFilename, RTFILE_O_READ | RTFILE_O_DENY_WRITE | RTFILE_O_OPEN, &hVfsIos, &pszError);
155 rc, pszFilename, pszError - pszFilename, "");
157 RTMsgError("Failed with %Rrc opening '%s'", rc, pszFilename);
161 rc = RTManifestEntryAddIoStream(hManifest, hVfsIos, pszFilename, fAttr);
/vbox/src/VBox/Storage/testcase/
H A Dvditool.cpp70 static int FilenameToUtf8(char **pszUtf8Filename, const char *pszFilename) argument
72 int rc = RTStrCurrentCPToUtf8(pszUtf8Filename, pszFilename);
75 pszFilename, rc);
95 static int NewImage(const char *pszFilename, uint64_t cMBs) argument
98 pszFilename, cMBs);
102 int rc = FilenameToUtf8(&pszUtf8Filename, pszFilename);
123 static int ConvertDDImage(const char *pszFilename, const char *pszDDFilename)
126 pszDDFilename, pszFilename);
130 int rc = FilenameToUtf8(&pszUtf8Filename, pszFilename);
222 static int ConvertOldImage(const char *pszFilename)
[all...]
H A DtstVDShareable.cpp62 static int tstVDCreateShareDelete(const char *pszBackend, const char *pszFilename, argument
96 rc = VDCreateBase(pVD, pszBackend, pszFilename, cbSize,
103 rc = VDOpen(pVD, pszBackend, pszFilename, VD_OPEN_FLAGS_SHAREABLE, NULL);
105 rc = VDOpen(pVD2, pszBackend, pszFilename, VD_OPEN_FLAGS_SHAREABLE, NULL);
/vbox/src/VBox/Runtime/common/ldr/
H A DldrNative.cpp106 * @param pszFilename Image filename.
109 RTDECL(int) RTLdrLoad(const char *pszFilename, PRTLDRMOD phLdrMod) argument
111 return RTLdrLoadEx(pszFilename, phLdrMod, RTLDRLOAD_FLAGS_LOCAL, NULL);
116 RTDECL(int) RTLdrLoadEx(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, PRTERRINFO pErrInfo) argument
118 LogFlow(("RTLdrLoadEx: pszFilename=%p:{%s} phLdrMod=%p fFlags=%#x pErrInfo=%p\n", pszFilename, pszFilename, phLdrMod, fFlags, pErrInfo));
124 AssertPtrReturn(pszFilename, VERR_INVALID_POINTER);
159 rc = rtldrNativeLoad(pszFilename, &pMod->hNative, fFlags, pErrInfo);
178 RTDECL(int) RTLdrLoadSystem(const char *pszFilename, boo argument
325 RTLdrIsLoadable(const char *pszFilename) argument
[all...]
/vbox/src/VBox/Runtime/r3/posix/
H A DldrNative-posix.cpp43 int rtldrNativeLoad(const char *pszFilename, uintptr_t *phHandle, uint32_t fFlags, PRTERRINFO pErrInfo) argument
48 if (!RTPathHasSuffix(pszFilename))
59 size_t cch = strlen(pszFilename);
63 memcpy(psz, pszFilename, cch);
65 pszFilename = psz;
76 void *pvMod = dlopen(pszFilename, fFlagsNative);
85 LogRel(("rtldrNativeLoad: dlopen('%s', RTLD_NOW | RTLD_LOCAL) failed: %s\n", pszFilename, pszDlError));
122 int rtldrNativeLoadSystem(const char *pszFilename, const char *pszExt, uint32_t fFlags, PRTLDRMOD phLdrMod) argument
/vbox/src/VBox/Runtime/r3/win/
H A DldrNative-win.cpp49 int rtldrNativeLoad(const char *pszFilename, uintptr_t *phHandle, uint32_t fFlags, PRTERRINFO pErrInfo) argument
53 AssertLogRelMsgReturn(RTPathStartsWithRoot(pszFilename), /* Relative names will still be applied to the search path. */
54 ("pszFilename='%s'\n", pszFilename), local
60 if (!RTPathHasSuffix(pszFilename))
62 size_t cch = strlen(pszFilename);
66 memcpy(psz, pszFilename, cch);
68 pszFilename = psz;
74 HMODULE hmod = LoadLibrary(pszFilename);
117 int rtldrNativeLoadSystem(const char *pszFilename, cons argument
[all...]
/vbox/src/VBox/Debugger/
H A DDBGPlugInCommonELFTmpl.cpp.h48 * @param pszFilename The filename. optional.
71 int DBGDiggerCommonParseElfMod(PUVM pUVM, const char *pszModName, const char *pszFilename, uint32_t fFlags, argument
79 AssertPtrReturn(pszFilename, VERR_INVALID_POINTER);
/vbox/src/VBox/Devices/Storage/
H A DDrvMediaISO.cpp53 char *pszFilename; member in struct:DRVMEDIAISO
66 LogFlow(("drvMediaISOGetSize: '%s'\n", pThis->pszFilename));
72 LogFlow(("drvMediaISOGetSize: returns %lld (%s)\n", cbFile, pThis->pszFilename));
76 AssertMsgFailed(("Error querying ISO file size, rc=%Rrc. (%s)\n", rc, pThis->pszFilename));
117 LogFlow(("drvMediaISORead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n", off, pvBuf, cbRead, pThis->pszFilename));
129 off, pvBuf, cbRead, pThis->pszFilename,
133 pThis->hFile, off, pvBuf, cbRead, rc, pThis->pszFilename));
196 LogFlow(("drvMediaISODestruct: '%s'\n", pThis->pszFilename));
205 if (pThis->pszFilename)
207 MMR3HeapFree(pThis->pszFilename);
[all...]
H A DDrvRawImage.cpp47 char *pszFilename; member in struct:DRVRAWIMAGE
62 LogFlow(("drvRawImageGetSize: '%s'\n", pThis->pszFilename));
68 LogFlow(("drvRawImageGetSize: returns %lld (%s)\n", cbFile, pThis->pszFilename));
72 AssertMsgFailed(("Error querying Raw image file size, rc=%Rrc. (%s)\n", rc, pThis->pszFilename));
113 LogFlow(("drvRawImageRead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n", off, pvBuf, cbRead, pThis->pszFilename));
129 off, pvBuf, cbRead, pThis->pszFilename,
134 pThis->hFile, pvBuf, cbRead, rc, off, pThis->pszFilename));
147 LogFlow(("drvRawImageWrite: off=%#llx pvBuf=%p cbWrite=%#x (%s)\n", off, pvBuf, cbWrite, pThis->pszFilename));
163 off, pvBuf, cbWrite, pThis->pszFilename,
168 pThis->hFile, pvBuf, cbWrite, rc, off, pThis->pszFilename));
[all...]

Completed in 81 milliseconds

12345