/vbox/src/VBox/Runtime/common/misc/ |
H A D | RTFileOpenF.cpp | 35 RTR3DECL(int) RTFileOpenF(PRTFILE pFile, uint64_t fOpen, const char *pszFilenameFmt, ...) argument 39 int rc = RTFileOpenV(pFile, fOpen, pszFilenameFmt, va);
|
H A D | RTFileOpenV.cpp | 39 RTR3DECL(int) RTFileOpenV(PRTFILE pFile, uint64_t fOpen, const char *pszFilenameFmt, va_list va) argument 45 return RTFileOpen(pFile, szFilename, fOpen);
|
H A D | aiomgr.cpp | 188 PRTAIOMGRFILEINT pFile; member in struct:RTAIOMGRREQ 234 static int rtAioMgrReqsEnqueue(PRTAIOMGRINT pThis, PRTAIOMGRFILEINT pFile, 244 static bool rtAioMgrFileRemove(PRTAIOMGRFILEINT pFile) argument 247 if (!pFile->AioMgr.cReqsActive) 249 RTListNodeRemove(&pFile->AioMgr.NodeAioMgrFiles); 284 RTAioMgrFileRelease(pReq->pFile); 292 PRTAIOMGRFILEINT pFile; local 294 pFile = pReq->pFile; 296 pFile 413 rtAioMgrReqsEnqueue(PRTAIOMGRINT pThis, PRTAIOMGRFILEINT pFile, PRTFILEAIOREQ pahReqs, unsigned cReqs) argument 473 rtAioMgrFileAddReqsToWaitingList(PRTAIOMGRFILEINT pFile, PRTAIOMGRREQ pReqsHead) argument 493 rtAioMgrReqPrepareNonBuffered(PRTAIOMGRFILEINT pFile, PRTAIOMGRREQ pReq) argument 572 PRTAIOMGRFILEINT pFile = pReq->pFile; local 605 rtAioMgrPrepareNewReqs(PRTAIOMGRINT pThis, PRTAIOMGRFILEINT pFile, PRTAIOMGRREQ pReqsNew) argument 670 rtAioMgrQueueWaitingReqs(PRTAIOMGRINT pThis, PRTAIOMGRFILEINT pFile) argument 730 rtAioMgrQueueReqs(PRTAIOMGRINT pThis, PRTAIOMGRFILEINT pFile) argument 793 PRTAIOMGRFILEINT pFile = ASMAtomicReadPtrT(&pThis->BlockingEventData.pFileAdd, PRTAIOMGRFILEINT); local 802 PRTAIOMGRFILEINT pFile = ASMAtomicReadPtrT(&pThis->BlockingEventData.pFileClose, PRTAIOMGRFILEINT); local 927 rtAioMgrAddFile(PRTAIOMGRINT pThis, PRTAIOMGRFILEINT pFile) argument 950 rtAioMgrCloseFile(PRTAIOMGRINT pThis, PRTAIOMGRFILEINT pFile) argument 1051 PRTAIOMGRFILEINT pFile = hAioMgrFile; local [all...] |
/vbox/src/bldprogs/ |
H A D | VBoxPeSetVersion.cpp | 32 FILE *pFile = fopen(argv[1], "r+b"); 33 if (!pFile) 36 if (fread(&MzHdr, sizeof(MzHdr), 1, pFile) != 1) 39 if (fseek(pFile, MzHdr.e_lfanew, SEEK_SET) != 0) 43 if (fread(&NtHdrs, sizeof(NtHdrs), 1, pFile) != 1) 72 if (fseek(pFile, MzHdr.e_lfanew, SEEK_SET) != 0) 74 if (fwrite(&NtHdrsNew, sizeof(NtHdrsNew), 1, pFile) != 1) 78 if (fclose(pFile) != 0)
|
H A D | filesplitter.cpp | 96 FILE *pFile= fopen(pcszPath, "w"); local 97 if (!pFile) 100 if (fprintf(pFile, "%s := \\\n", pcszVariableName) <= 0) 102 fclose(pFile); 106 *ppFile = pFile; 115 * @param pFile The file stream of the makefile list. 118 static int addFileToMakefileList(FILE *pFile, char *pszFilename) argument 120 if (pFile) 126 if (fprintf(pFile, "\t%s \\\n", pszFilename) <= 0) 137 * @param pFile Th 140 closeMakefileList(FILE *pFile, int rc) argument 159 FILE *pFile; local 241 FILE *pFile = fopen(pcszFilename, "w"); local [all...] |
H A D | VBoxCmp.cpp | 55 FILE *pFile = fopen(pszFile, "rb"); local 57 FILE *pFile = fopen(pszFile, "r"); 59 if (!pFile) 61 return pFile;
|
H A D | bin2c.c | 33 * @param pFile File to size. 35 static size_t fsize(FILE *pFile) argument 38 off_t Pos = ftell(pFile); 40 && !fseek(pFile, 0, SEEK_END)) 42 cbFile = ftell(pFile); 44 && !fseek(pFile, 0, SEEK_SET))
|
H A D | preload.cpp | 168 FILE *pFile = fopen(&argv[i][1], "r"); local 169 if (pFile) 172 while (fgets(szLine, sizeof(szLine), pFile)) 189 fclose(pFile);
|
/vbox/src/VBox/Runtime/r3/ |
H A D | isofs.cpp | 43 * @param pFile ISO handle. 45 static void rtIsoFsDestroyPathCache(PRTISOFSFILE pFile) argument 47 PRTISOFSPATHTABLEENTRY pNode = RTListGetFirst(&pFile->listPaths, RTISOFSPATHTABLEENTRY, Node); 51 bool fLast = RTListNodeIsLast(&pFile->listPaths, &pNode->Node); 146 * @param pFile ISO handle. 148 static int rtIsoFsUpdatePathCache(PRTISOFSFILE pFile) argument 150 AssertPtrReturn(pFile, VERR_INVALID_PARAMETER); 151 rtIsoFsDestroyPathCache(pFile); 153 RTListInit(&pFile->listPaths); 157 Assert(pFile 219 RTIsoFsOpen(PRTISOFSFILE pFile, const char *pszFileName) argument 283 RTIsoFsClose(PRTISOFSFILE pFile) argument 306 rtIsoFsFindEntry(PRTISOFSFILE pFile, const char *pszFileName, uint32_t uExtentSector, uint32_t cbExtent , PRTISOFSDIRRECORD *ppRec) argument 403 rtIsoFsResolvePath(PRTISOFSFILE pFile, const char *pszPath, uint32_t *puSector) argument 484 rtIsoFsGetDirectoryRecord(PRTISOFSFILE pFile, const char *pszPath, PRTISOFSDIRRECORD *ppRecord) argument 521 RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath, uint32_t *pcbOffset, size_t *pcbLength) argument 551 RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszSource, const char *pszDest) argument [all...] |
H A D | stream.cpp | 86 FILE *pFile; member in struct:RTSTREAM 205 flockfile(pStream->pFile); 223 funlockfile(pStream->pFile); 322 pStream->pFile = fopen(pszFilename, pszMode); 323 if (pStream->pFile) 393 if (!fclose(pStream->pFile)) 396 pStream->pFile = NULL; 441 clearerr(pStream->pFile); 479 int fh = fileno(pStream->pFile); 513 int fh = fileno(pStream->pFile); [all...] |
/vbox/src/VBox/Runtime/r3/linux/ |
H A D | systemmem-linux.cpp | 66 FILE *pFile = fopen("/proc/meminfo", "r"); local 67 if (pFile) 75 while (fgets(sz, sizeof(sz), pFile)) 88 fclose(pFile);
|
/vbox/src/VBox/Additions/common/VBoxService/ |
H A D | VBoxServiceControlSession.cpp | 55 static int gstcntlSessionFileDestroy(PVBOXSERVICECTRLFILE pFile); 56 static int gstcntlSessionFileAdd(PVBOXSERVICECTRLSESSION pSession, PVBOXSERVICECTRLFILE pFile); 91 static int gstcntlSessionFileDestroy(PVBOXSERVICECTRLFILE pFile) argument 93 AssertPtrReturn(pFile, VERR_INVALID_POINTER); 95 int rc = RTFileClose(pFile->hFile); 99 RTListNodeRemove(&pFile->Node); 101 RTMemFree(pFile); 231 PVBOXSERVICECTRLFILE pFile = (PVBOXSERVICECTRLFILE)RTMemAllocZ(sizeof(VBOXSERVICECTRLFILE)); local 232 if (pFile) 238 && !RTStrPrintf(pFile 309 PVBOXSERVICECTRLFILE pFile = NULL; local 346 PVBOXSERVICECTRLFILE pFile = NULL; local 404 PVBOXSERVICECTRLFILE pFile = NULL; local 466 PVBOXSERVICECTRLFILE pFile = NULL; local 514 PVBOXSERVICECTRLFILE pFile = NULL; local 560 PVBOXSERVICECTRLFILE pFile = NULL; local 630 PVBOXSERVICECTRLFILE pFile = NULL; local 1593 PVBOXSERVICECTRLFILE pFile; local [all...] |
/vbox/include/iprt/ |
H A D | isofs.h | 181 * @param pFile Pointer to ISO handle. 184 RTR3DECL(int) RTIsoFsOpen(PRTISOFSFILE pFile, const char *pszFileName); 189 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 191 RTR3DECL(void) RTIsoFsClose(PRTISOFSFILE pFile); variable 200 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 205 RTR3DECL(int) RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath, 212 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 216 RTR3DECL(int) RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszSource,
|
/vbox/src/VBox/HostDrivers/VBoxPci/linux/ |
H A D | VBoxPci-linux.c | 424 struct file* pFile; local 462 pFile = vboxPciFileOpen(szFileBuf, O_WRONLY); 463 if (pFile) 469 vboxPciFileWrite(pFile, 0, szCmdBuf, iCmdLen); 470 vboxPciFileClose(pFile); 485 pFile = vboxPciFileOpen(szFileBuf, O_WRONLY); 486 if (pFile) 490 vboxPciFileWrite(pFile, 0, szCmdBuf, iCmdLen); 491 vboxPciFileClose(pFile); 500 pFile 534 struct file* pFile; local [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VfrCompile/Pccts/h/ |
H A D | slist.cpp | 109 int SList::printMessage(FILE* pFile, const char* pFormat, ...) argument 113 int iRet = vfprintf(pFile, pFormat, marker);
|
H A D | ATokenBuffer.h | 98 virtual int printMessage(FILE* pFile, const char* pFormat, ...); // MR23
|
H A D | SList.h | 69 virtual int printMessage(FILE* pFile, const char* pFormat, ...); // MR23
|
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VfrCompile/ |
H A D | VfrFormPkg.cpp | 355 IN FILE *pFile, 364 if ((pFile == NULL) || (LineHeader == NULL) || (BlkBuf == NULL)) { 370 fprintf (pFile, "\n%s", LineHeader); 372 fprintf (pFile, "0x%02X, ", (UINT8)BlkBuf[Index]); 378 IN FILE *pFile, 387 if ((BlkSize == 0) || (pFile == NULL) || (LineHeader == NULL) || (BlkBuf == NULL)) { 393 fprintf (pFile, "\n%s", LineHeader); 395 fprintf (pFile, "0x%02X, ", (UINT8)BlkBuf[Index]); 399 fprintf (pFile, "\n%s", LineHeader); 401 fprintf (pFile, " 354 _WRITE_PKG_LINE( IN FILE *pFile, IN UINT32 LineBytes, IN CONST CHAR8 *LineHeader, IN CHAR8 *BlkBuf, IN UINT32 BlkSize ) argument 377 _WRITE_PKG_END( IN FILE *pFile, IN UINT32 LineBytes, IN CONST CHAR8 *LineHeader, IN CHAR8 *BlkBuf, IN UINT32 BlkSize ) argument 407 GenCFile( IN CHAR8 *BaseName, IN FILE *pFile, IN PACKAGE_DATA *PkgData ) argument [all...] |
H A D | VfrCompiler.cpp | 624 FILE *pFile = NULL; local 631 if ((pFile = fopen (mOptions.PkgOutputFileName, "wb")) == NULL) { 635 if (gCFormPkg.BuildPkg (pFile, &gRBuffer) != VFR_RETURN_SUCCESS) { 636 fclose (pFile); 639 fclose (pFile); 666 FILE *pFile; local 674 if ((pFile = fopen (mOptions.COutputFileName, "w")) == NULL) { 680 fprintf (pFile, "%s\n", gSourceFileHeader[Index]); 684 gCVfrBufferConfig.OutputCFile (pFile, mOptions.VfrBaseFileName); 687 if (gCFormPkg.GenCFile (mOptions.VfrBaseFileName, pFile, [all...] |
/vbox/src/VBox/Runtime/VBox/ |
H A D | log-vbox.cpp | 330 FILE* pFile = fopen(szArgFileBuf, "rb"); local 331 if (pFile) 333 if (fread(&psi, sizeof(psi), 1, pFile) == 1) 344 fclose(pFile); 348 FILE *pFile = fopen("/proc/self/cmdline", "r"); local 349 if (pFile) 355 while (!feof(pFile) && (ch = fgetc(pFile)) != EOF) 372 fclose(pFile);
|
/vbox/src/VBox/HostDrivers/VBoxUSB/win/mon/ |
H A D | VBoxUsbMon.h | 56 typedef DECLCALLBACK(BOOLEAN) FNVBOXUSBMONDEVWALKER(PFILE_OBJECT pFile, PDEVICE_OBJECT pTopDo, PDEVICE_OBJECT pHubDo, PVOID pvContext);
|
/vbox/src/VBox/Runtime/common/string/ |
H A D | uniread.cpp | 479 FILE *pFile; local 488 pFile = fopen(pszFilename, "r"); 489 if (!pFile) 507 pFile = fopen(pszFullName, "r"); 508 if (!pFile) 514 return pFile; 524 * @param pFile The file to read from. 526 static char *GetLineFromFile(char *pszBuf, int cbBuf, FILE *pFile) argument 529 return fgets(pszBuf, cbBuf, pFile); 536 * @param pFile Th 538 CloseFile(FILE *pFile) argument 558 FILE *pFile = OpenFile(pszBasePath, pszFilename); local 816 FILE *pFile = OpenFile(pszBasePath, pszFilename); local [all...] |
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPR3HardenedVerify.cpp | 318 * @param pFile The file table entry. 324 static int supR3HardenedMakeFilePath(PCSUPINSTFILE pFile, char *pszDst, size_t cchDst, bool fWithFilename, bool fFatal) argument 329 int rc = supR3HardenedMakePath(pFile->enmDir, pszDst, cchDst, fFatal); 332 size_t cchFile = suplibHardenedStrLen(pFile->pszFile); 337 suplibHardenedMemCopy(&pszDst[off], pFile->pszFile, cchFile + 1); 342 pFile->pszFile, (long)off); 494 * @param pFile The file entry. 501 static int supR3HardenedVerifyFileOpen(PCSUPINSTFILE pFile, bool fFatal, intptr_t *phFile) argument 506 int rc = supR3HardenedMakeFilePath(pFile, szPath, sizeof(szPath), true /*fWithFilename*/, fFatal); 528 if ( !pFile 555 supR3HardenedVerifyFileSignature(PCSUPINSTFILE pFile, PSUPVERIFIEDFILE pVerified, bool fFatal, bool fLeaveFileOpen) argument 632 PCSUPINSTFILE pFile = &g_aSupInstallFiles[iFile]; local 765 PCSUPINSTFILE pFile = &g_aSupInstallFiles[iFile]; local [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTDigest.cpp | 82 static char *MyGetNextSignificantLine(PRTSTREAM pFile, char *pszBuf, size_t cbBuf, uint32_t *piLine, int *prc) argument 87 int rc = RTStrmGetLine(pFile, pszBuf, cbBuf); 453 PRTSTREAM pFile; 454 rc = RTStrmOpen(ValueUnion.psz, "r", &pFile); 469 psz = MyGetNextSignificantLine(pFile, s_szLine, sizeof(s_szLine), &iLine, &rc); 487 psz = MyGetNextSignificantLine(pFile, s_szLine, sizeof(s_szLine), &iLine, &rc); 505 psz = MyGetNextSignificantLine(pFile, s_szLine, sizeof(s_szLine), &iLine, &rc); 544 RTStrmClose(pFile);
|
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | fileio-posix.cpp | 102 RTR3DECL(int) RTFileOpen(PRTFILE pFile, const char *pszFilename, uint64_t fOpen) argument 107 AssertPtrReturn(pFile, VERR_INVALID_POINTER); 108 *pFile = NIL_RTFILE; 331 *pFile = (RTFILE)(uintptr_t)fh; 332 Assert((intptr_t)*pFile == fh); 334 pFile, *pFile, pszFilename, pszFilename, fOpen, rc)); 364 RTR3DECL(int) RTFileFromNative(PRTFILE pFile, RTHCINTPTR uNative) argument 366 AssertCompile(sizeof(uNative) == sizeof(*pFile)); 370 *pFile [all...] |