Searched refs:pDirEntry (Results 1 - 15 of 15) sorted by relevance

/vbox/src/VBox/Runtime/r3/win/
H A Ddirenum-win.cpp138 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry) argument
148 if (!pDirEntry)
150 AssertMsgFailed(("Invalid pDirEntry=%p\n", pDirEntry));
153 size_t cbDirEntry = sizeof(*pDirEntry);
211 pDirEntry->INodeId = 0; /** @todo we can use the fileid here if we must (see GetFileInformationByHandle). */
212 pDirEntry->enmType = pDir->Data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY
214 pDirEntry->cbName = (uint16_t)cchName;
215 Assert(pDirEntry->cbName == cchName);
216 memcpy(pDirEntry
222 RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) argument
[all...]
/vbox/src/VBox/Runtime/r3/
H A Ddir2.cpp54 * @param pDirEntry The dir entry buffer. (Shared to save stack.)
57 static int rtDirRemoveRecursiveSub(char *pszBuf, size_t cchDir, PRTDIRENTRY pDirEntry, PRTFSOBJINFO pObjInfo) argument
68 while (RT_SUCCESS(rc = RTDirRead(pDir, pDirEntry, NULL)))
70 if ( pDirEntry->szName[0] != '.'
71 || pDirEntry->cbName > 2
72 || ( pDirEntry->cbName == 2
73 && pDirEntry->szName[1] != '.')
77 if (cchDir + pDirEntry->cbName + 1 /* dir slash */ >= RTPATH_MAX)
82 memcpy(&pszBuf[cchDir], pDirEntry->szName, pDirEntry
[all...]
H A Ddir.cpp752 RTDECL(bool) RTDirEntryIsStdDotLink(PRTDIRENTRY pDirEntry) argument
754 if (pDirEntry->szName[0] != '.')
756 if (pDirEntry->cbName == 1)
758 if (pDirEntry->cbName != 2)
760 return pDirEntry->szName[1] == '.';
/vbox/src/VBox/Runtime/r3/nt/
H A Ddirenum-r3-nt.cpp426 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry) argument
435 AssertPtrReturn(pDirEntry, VERR_INVALID_POINTER);
436 size_t cbDirEntry = sizeof(*pDirEntry);
476 pDirEntry->cbName = (uint16_t)cchName; Assert(pDirEntry->cbName == cchName);
477 memcpy(pDirEntry->szName, pszName, cchName + 1);
479 pDirEntry->INodeId = pDir->enmInfoClass == FileIdBothDirectoryInformation
492 pDirEntry->enmType = RTDIRENTRYTYPE_FILE;
496 pDirEntry->enmType = RTDIRENTRYTYPE_DIRECTORY;
501 pDirEntry
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.cpp128 int rtDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) argument
136 pDirEntry->cbName = (uint16_t)strlen(pszDirListC[iDirFile]);
137 strcpy(pDirEntry->szName, pszDirListC[iDirFile++]);
142 pDirEntry->cbName = (uint16_t)strlen(pszDirListTestdir[iDirFile]);
143 strcpy(pDirEntry->szName, pszDirListTestdir[iDirFile++]);
148 pDirEntry->cbName = (uint16_t)strlen(pszDirListSUBDIR[iDirFile]);
149 strcpy(pDirEntry->szName, pszDirListSUBDIR[iDirFile++]);
194 PRTDIRENTRYEX pDirEntry = NULL; local
206 pDirEntry = (PRTDIRENTRYEX)RTMemAlloc(cbDirEntry);
207 if (pDirEntry
[all...]
H A DtstSharedFolderService.cpp178 extern int testRTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, argument
/vbox/src/VBox/Runtime/r3/posix/
H A Ddir-posix.cpp359 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry) argument
366 AssertMsgReturn(VALID_PTR(pDirEntry), ("%p\n", pDirEntry), VERR_INVALID_POINTER);
368 size_t cbDirEntry = sizeof(*pDirEntry);
397 pDirEntry->INodeId = pDir->Data.d_ino; /* may need #ifdefing later */
399 pDirEntry->enmType = rtDirType(pDir->Data.d_type);
401 pDirEntry->enmType = RTDIRENTRYTYPE_UNKNOWN;
403 pDirEntry->cbName = (uint16_t)cchName;
404 Assert(pDirEntry->cbName == cchName);
405 memcpy(pDirEntry
456 RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags) argument
[all...]
/vbox/src/VBox/Additions/WINNT/SharedFolders/driver/
H A Dinfo.c53 PSHFLDIRINFO pDirEntry; local
236 pDirEntry = (PSHFLDIRINFO)pHGCMBuffer;
242 while ((*pLengthRemaining) && (cFiles > 0) && (pDirEntry != NULL))
244 int cbEntry = RT_OFFSETOF(SHFLDIRINFO, name.String) + pDirEntry->name.u16Size;
263 cbToCopy += pDirEntry->name.u16Size;
269 pInfo->CreationTime.QuadPart = RTTimeSpecGetNtTime(&pDirEntry->Info.BirthTime); /* ridiculous name */
270 pInfo->LastAccessTime.QuadPart = RTTimeSpecGetNtTime(&pDirEntry->Info.AccessTime);
271 pInfo->LastWriteTime.QuadPart = RTTimeSpecGetNtTime(&pDirEntry->Info.ModificationTime);
272 pInfo->ChangeTime.QuadPart = RTTimeSpecGetNtTime(&pDirEntry->Info.ChangeTime);
273 pInfo->AllocationSize.QuadPart = pDirEntry
[all...]
/vbox/src/VBox/Runtime/common/path/
H A DRTPathRmCmd.cpp253 * @param pDirEntry Pointer to a directory entry buffer that is
256 static int rtPathRmRecursive(PRTPATHRMCMDOPTS pOpts, char *pszPath, size_t cchPath, PRTDIRENTRYEX pDirEntry) argument
283 rc = RTDirReadEx(hDir, pDirEntry, &cbEntry, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);
308 if ( pDirEntry->szName[0] == '.'
309 && ( pDirEntry->cbName == 1
310 || ( pDirEntry->cbName == 2
311 && pDirEntry->szName[1] == '.')))
315 if (cchPath + pDirEntry->cbName >= RTPATH_MAX)
321 memcpy(pszPath + cchPath, pDirEntry->szName, pDirEntry
[all...]
/vbox/include/iprt/
H A Ddir.h367 * @returns VINF_SUCCESS and data in pDirEntry on success.
374 * @param pDirEntry Where to store the information about the next
378 * On input the variable pointed to contains the size of the pDirEntry
382 * OFFSET(RTDIRENTRY, szName[pDirEntry->cbName + 1]).
389 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry);
394 * @returns VINF_SUCCESS and data in pDirEntry on success.
401 * @param pDirEntry Where to store the information about the next
405 * On input the variable pointed to contains the size of the pDirEntry
409 * OFFSET(RTDIRENTRYEX, szName[pDirEntry->cbName + 1]).
420 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_
461 RTDECL(bool) RTDirEntryIsStdDotLink(PRTDIRENTRY pDirEntry); variable
[all...]
H A Dvfslowlevel.h568 * @param pDirEntry Output buffer.
573 DECLCALLBACKMEMBER(int, pfnReadDir)(void *pvThis, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAddAttr);
/vbox/src/VBox/Runtime/r0drv/nt/
H A DntBldSymDb.cpp987 * @param pDirEntry Pointer to the directory buffer.
989 static RTEXITCODE processDirSub(char *pszDir, size_t cchDir, PRTDIRENTRYEX pDirEntry, int iLogDepth) argument
1018 rc = RTDirReadEx(pDir, pDirEntry, &cbDirEntry, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK);
1023 if ( (pDirEntry->cbName == 1 && pDirEntry->szName[0] == '.')
1024 || (pDirEntry->cbName == 2 && pDirEntry->szName[0] == '.' && pDirEntry->szName[1] == '.'))
1028 if (pDirEntry->cbName + cchDir + 3 >= RTPATH_MAX)
1030 rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Path too long: '%s' in '%.*s'\n", pDirEntry
[all...]
/vbox/src/VBox/Runtime/tools/
H A DRTDbgSymCache.cpp149 static int rtDbgSymCacheAddDirWorker(char *pszPath, size_t cchPath, PRTDIRENTRYEX pDirEntry, PCRTDBGSYMCACHEADDCFG pCfg);
727 * @param pDirEntry The directory entry buffer, for handling bundle
732 PRTDIRENTRYEX pDirEntry, PCRTDBGSYMCACHEADDCFG pCfg)
767 rc2 = rtDbgSymCacheAddDirWorker(pszPath, cchPath2, pDirEntry, pCfg);
941 * @param pDirEntry Pointer to the RTDIRENTRYEX structure to use.
944 static int rtDbgSymCacheAddDirWorker(char *pszPath, size_t cchPath, PRTDIRENTRYEX pDirEntry, PCRTDBGSYMCACHEADDCFG pCfg) argument
971 rc2 = RTDirReadEx(pDir, pDirEntry, NULL, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK);
984 if (RTDirEntryExIsStdDotLink(pDirEntry))
988 rc = RTStrCopy(&pszPath[cchPath], RTPATH_MAX, pDirEntry->szName);
992 RTMsgError("File name too long in '%s': '%s' (%Rrc)", pszPath, pDirEntry
731 rtDbgSymCacheAddImageBundle(char *pszPath, size_t cchPath, size_t cchName, PRTDIRENTRYEX pDirEntry, PCRTDBGSYMCACHEADDCFG pCfg) argument
[all...]
/vbox/src/VBox/HostServices/SharedFolders/
H A Dvbsf.cpp137 PRTDIRENTRYEX pDirEntry = (PRTDIRENTRYEX)RTMemAlloc(cbDirEntry); local
138 if (pDirEntry == NULL)
142 * Construct the search criteria in the szName member of pDirEntry.
149 int rc = RTPathJoinEx(pDirEntry->szName, cbDirEntry - RT_OFFSETOF(RTDIRENTRYEX, szName),
156 rc = RTDirOpenFiltered(&hSearch, pDirEntry->szName, RTDIRFILTER_WINNT, 0);
163 rc = RTDirReadEx(hSearch, pDirEntry, &cbDirEntrySize, RTFSOBJATTRADD_NOTHING, SHFL_RT_LINK(pClient));
177 Log2(("vbsfCorrectCasing: found %s\n", &pDirEntry->szName[0]));
178 if ( pDirEntry->cbName == cchComponent
179 && !RTStrICmp(pszStartComponent, &pDirEntry->szName[0]))
181 Log(("Found original name %s (%s)\n", &pDirEntry
1611 PRTDIRENTRYEX pDirEntry = 0, pDirEntryOrg; local
[all...]
H A Dteststubs.h42 extern int testRTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags);

Completed in 57 milliseconds