Searched defs:pDir (Results 1 - 25 of 32) sorted by relevance

12

/vbox/src/VBox/Runtime/generic/
H A DRTDirQueryInfo-generic.cpp47 RTR3DECL(int) RTDirQueryInfo(PRTDIR pDir, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAdditionalAttribs) argument
52 if (!rtDirValidHandle(pDir))
54 return RTPathQueryInfoEx(pDir->pszPath, pObjInfo, enmAdditionalAttribs, RTPATH_F_FOLLOW_LINK);
H A DRTDirSetTimes-generic.cpp48 RTR3DECL(int) RTDirSetTimes(PRTDIR pDir, PCRTTIMESPEC pAccessTime, PCRTTIMESPEC pModificationTime, argument
54 if (!rtDirValidHandle(pDir))
56 return RTPathSetTimes(pDir->pszPath, pAccessTime, pModificationTime, pChangeTime, pBirthTime);
/vbox/src/VBox/Runtime/testcase/
H A DtstDir-2.cpp43 PRTDIR pDir; local
44 int rc = RTDirOpenFiltered(&pDir, argv[i], RTDIRFILTER_WINNT, 0);
50 rc = RTDirRead(pDir, &DirEntry, NULL);
80 rc = RTDirClose(pDir);
H A DtstDir.cpp75 PRTDIR pDir; local
78 rc = RTDirOpen(&pDir, argv[i]);
80 rc = RTDirOpenFiltered(&pDir, argv[i], RTDIRFILTER_WINNT, 0);
89 rc = RTDirRead(pDir, &DirEntry, NULL);
120 rc = RTDirReadEx(pDir, &DirEntry, NULL, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK);
196 rc = RTDirClose(pDir);
H A DtstDir-3.cpp38 PRTDIR pDir; local
39 int rc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT, 0);
45 rc = RTDirRead(pDir, &DirEntry, NULL);
58 rc = RTDirClose(pDir);
/vbox/src/VBox/Runtime/r3/
H A Ddir2.cpp64 PRTDIR pDir; local
65 int rc = RTDirOpen(&pDir, pszBuf);
68 while (RT_SUCCESS(rc = RTDirRead(pDir, pDirEntry, NULL)))
132 RTDirClose(pDir);
H A Ddir.cpp49 static DECLCALLBACK(bool) rtDirFilterWinNtMatch(PRTDIR pDir, const char *pszName);
50 static DECLCALLBACK(bool) rtDirFilterWinNtMatchNoWildcards(PRTDIR pDir, const char *pszName);
116 * @param pDir The directory handle.
119 static DECLCALLBACK(bool) rtDirFilterWinNtMatchNoWildcards(PRTDIR pDir, const char *pszName) argument
124 PCRTUNICP pucFilter = pDir->puszFilter;
446 * @param pDir The directory handle.
449 static DECLCALLBACK(bool) rtDirFilterWinNtMatch(PRTDIR pDir, const char *pszName) argument
451 return rtDirFilterWinNtMatchBase(0, pszName, pDir->puszFilter);
460 * @param pDir The directory handle (not yet opened).
462 static PFNRTDIRFILTER rtDirFilterWinNtInit(PRTDIR pDir) argument
571 PRTDIR pDir = (PRTDIR)RTMemAllocZ(cbAllocated); local
[all...]
/vbox/src/VBox/Runtime/r3/linux/
H A DRTProcIsRunningByName-linux.cpp55 PRTDIR pDir; local
56 int rc = RTDirOpen(&pDir, "/proc");
61 while (RT_SUCCESS(RTDirRead(pDir, &DirEntry, NULL)))
105 RTDirClose(pDir);
111 RTDirClose(pDir);
/vbox/src/VBox/Runtime/r3/win/
H A Ddirenum-win.cpp53 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf) argument
64 if (pDir->enmFilter == RTDIRFILTER_WINNT)
66 pszExpr = pDir->pszFilter;
67 cbExpr = pDir->cchFilter + 1;
74 if (pDir->cchPath + cbExpr > RTPATH_MAX)
76 memcpy(pszPathBuf + pDir->cchPath, pszExpr, cbExpr);
87 pDir->hDir = FindFirstFileW((LPCWSTR)pwszName, &pDir->Data);
88 if (pDir->hDir != INVALID_HANDLE_VALUE)
89 pDir
107 RTDirClose(PRTDIR pDir) argument
138 RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry) argument
222 RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) argument
[all...]
/vbox/src/VBox/Runtime/include/internal/
H A Ddir.h40 * @param pDir The directory handle.
43 typedef DECLCALLBACK(bool) FNRTDIRFILTER(PRTDIR pDir, const char *pszName);
130 DIR *pDir; member in struct:RTDIR
144 DECLINLINE(bool) rtDirValidHandle(PRTDIR pDir) argument
146 AssertMsgReturn(VALID_PTR(pDir), ("%p\n", pDir), false); local
147 AssertMsgReturn(pDir->u32Magic == RTDIR_MAGIC, ("%#RX32\n", pDir->u32Magic), false);
157 * @param pDir The directory to open. The pszPath member contains the
163 int rtDirNativeOpen(PRTDIR pDir, cha
[all...]
/vbox/src/VBox/Runtime/r3/nt/
H A Ddirenum-r3-nt.cpp82 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf) argument
88 pDir->pNtFilterStr = NULL;
89 if ( pDir->cchFilter > 0
90 && pDir->enmFilter == RTDIRFILTER_WINNT)
93 rc = RTStrToUtf16(pDir->pszFilter, &pwszTmp);
96 pDir->NtFilterStr.Buffer = pwszTmp;
97 pDir->NtFilterStr.Length = pDir->NtFilterStr.MaximumLength = (uint16_t)(RTUtf16Len(pwszTmp) * sizeof(RTUTF16));
98 pDir->pNtFilterStr = &pDir
134 RTDirClose(PRTDIR pDir) argument
426 RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry) argument
522 RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) argument
[all...]
/vbox/src/VBox/HostServices/SharedFolders/testcase/
H A DtstShflCase.cpp122 int rtDirClose(PRTDIR pDir) argument
128 int rtDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) argument
/vbox/src/VBox/Additions/common/VBoxService/
H A DVBoxServiceCpuHotPlug.cpp71 PRTDIR pDir; member in struct:SYSFSCPUPATH
267 rc = RTDirOpenFiltered(&pAcpiCpuPathLvl->pDir, pszPath, RTDIRFILTER_WINNT, 0);
277 rc = RTDirRead(pAcpiCpuPathLvl->pDir, &DirFolderContent, NULL);
336 Assert(!pAcpiCpuPathLvl->pDir);
353 rc = RTDirOpenFiltered(&pAcpiCpuPathLvl->pDir, pszPathDir, RTDIRFILTER_WINNT, 0);
363 RTDirClose(pAcpiCpuPathLvl->pDir);
365 pAcpiCpuPathLvl->pDir = NULL;
378 if (g_aAcpiCpuPath[i].pDir)
379 RTDirClose(g_aAcpiCpuPath[i].pDir);
382 g_aAcpiCpuPath[i].pDir
[all...]
H A DVBoxServiceToolBox.cpp675 PRTDIR pDir; local
676 rc = RTDirOpen(&pDir, szPathAbs);
694 rc = RTDirReadEx(pDir, &DirEntry, NULL, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK);
711 int rc2 = RTDirClose(pDir);
/vbox/include/iprt/
H A Ddir.h360 * @param pDir Pointer to open directory returned by RTDirOpen() or RTDirOpenFiltered().
362 RTDECL(int) RTDirClose(PRTDIR pDir); variable
373 * @param pDir Pointer to the open directory.
389 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry);
400 * @param pDir Pointer to the open directory.
420 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags);
493 * @param pDir Pointer to the open directory.
498 RTR3DECL(int) RTDirQueryInfo(PRTDIR pDir, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAdditionalAttribs);
507 * @param pDir Pointer to the open directory.
524 RTR3DECL(int) RTDirSetTimes(PRTDIR pDir, PCRTTIMESPE
[all...]
/vbox/src/VBox/Runtime/r3/posix/
H A Ddir-posix.cpp215 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf) argument
223 int rc = rtPathToNative(&pszNativePath, pDir->pszPath, NULL);
226 pDir->pDir = opendir(pszNativePath);
227 if (pDir->pDir)
232 pDir->fDataUnread = false; /* spelling it out */
237 rtPathFreeNative(pszNativePath, pDir->pszPath);
244 RTDECL(int) RTDirClose(PRTDIR pDir) argument
249 if (!pDir)
280 rtDirReadMore(PRTDIR pDir) argument
359 RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry) argument
456 RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) argument
[all...]
/vbox/src/VBox/Devices/PC/
H A DDrvACPI.cpp527 PRTDIR pDir = NULL; local
538 int rc = RTDirOpen(&pDir, "/sys/class/power_supply/");
546 rc = RTDirRead(pDir, &DirEntry, NULL);
667 RTDirClose(pDir);
677 rc = RTDirOpen(&pDir, "/proc/acpi/ac_adapter/");
683 rc = RTDirRead(pDir, &DirEntry, NULL);
713 RTDirClose(pDir);
720 rc = RTDirOpen(&pDir, "/proc/acpi/battery/");
729 rc = RTDirRead(pDir, &DirEntry, NULL);
849 RTDirClose(pDir);
[all...]
/vbox/src/VBox/Additions/x11/vboxvideo/
H A Dgetmode.c547 DIR *pDir; local
552 pDir = opendir("/dev/input");
553 if (pDir == NULL)
555 for (pDirent = readdir(pDir); pDirent != NULL; pDirent = readdir(pDir))
590 closedir(pDir);
/vbox/src/VBox/Main/src-server/
H A DVFSExplorerImpl.cpp297 PRTDIR pDir = NULL; local
300 int vrc = RTDirOpen(&pDir, m->strPath.c_str());
309 vrc = RTDirReadEx(pDir, &entry, NULL, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);
331 if (pDir)
332 RTDirClose(pDir);
/vbox/src/VBox/Devices/Graphics/testcase/
H A Ddump-vmwgfx.c453 DIR *pDir = opendir(g_szDir); local
454 if (pDir)
462 while ((pEntry = readdir(pDir)) != NULL)
483 closedir(pDir);
498 closedir(pDir);
/vbox/src/VBox/ImageMounter/VBoxFUSE/
H A DVBoxFUSE.cpp88 struct VBOXFUSEDIR *pDir; member in struct:VBOXFUSENODE
190 PVBOXFUSEDIR pDir = (PVBOXFUSEDIR)pNode; local
191 RTMemFree(pDir->paEntries);
192 pDir->paEntries = NULL;
193 pDir->cEntries = 0;
355 * @param pDir The directory (parent).
358 static int vboxfuseNodeAlloc(size_t cbNode, const char *pszName, VBOXFUSETYPE enmType, PVBOXFUSEDIR pDir, argument
385 pNode->pDir = pDir;
411 * @param pDir Th
415 vboxfuseDirInsertChild(PVBOXFUSEDIR pDir, PVBOXFUSENODE pNode) argument
736 PVBOXFUSEDIR pDir = g_pTreeRoot; local
819 PVBOXFUSEDIR pDir; local
909 PVBOXFUSEDIR pDir = (PVBOXFUSEDIR)(uintptr_t)pInfo->fh; local
967 PVBOXFUSEDIR pDir = (PVBOXFUSEDIR)(uintptr_t)pInfo->fh; local
[all...]
/vbox/src/VBox/Runtime/tools/
H A DRTDbgSymCache.cpp949 PRTDIR pDir; local
959 rc = RTDirOpenFiltered(&pDir, pszPath, RTDIRFILTER_WINNT, 0 /*fFlags*/);
962 rc = RTDirOpen(&pDir, pszPath);
971 rc2 = RTDirReadEx(pDir, pDirEntry, NULL, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
1050 rc2 = RTDirClose(pDir);
/vbox/src/VBox/Main/src-server/linux/
H A DHostHardwareLinux.cpp750 PRTDIR pDir = NULL; local
757 rc = RTDirOpen(&pDir, "/sys/block");
765 rc = RTDirRead(pDir, &entry, NULL);
788 RTDirClose(pDir);
822 * @a pDir to the vector @a pvecpchDevs using either the full path or the
824 static int readFilePathsFromDir(const char *pcszPath, DIR *pDir, argument
830 for (err = readdir_r(pDir, &entry, &pResult); pResult;
831 err = readdir_r(pDir, &entry, &pResult))
862 DIR *pDir; local
869 pDir
[all...]
/vbox/src/bldprogs/
H A Dscm.cpp1269 PRTDIR pDir; local
1270 rc = RTDirOpenFiltered(&pDir, pszBuf, RTDIRFILTER_NONE, 0);
1279 rc = RTDirRead(pDir, pEntry, NULL);
1344 RTDirClose(pDir);
/vbox/src/VBox/Debugger/
H A DDBGCCommands.cpp2020 PRTDIR pDir; local
2021 rc = RTDirOpenFiltered(&pDir, szPath, RTDIRFILTER_WINNT, 0);
2028 while (RT_SUCCESS(RTDirRead(pDir, &DirEntry, NULL)))
2041 RTDirClose(pDir);

Completed in 151 milliseconds

12