Changeset 39543 in vbox
- Timestamp:
- Dec 6, 2011 5:00:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.cpp
r39542 r39543 117 117 extern int testRTDirClose(PRTDIR pDir) 118 118 { 119 /* RTPrintf("%s: pDir=%p\n", __ func__, pDir); */119 /* RTPrintf("%s: pDir=%p\n", __PRETTY_FUNCTION__, pDir); */ 120 120 testRTDirClosepDir = pDir; 121 121 return VINF_SUCCESS; … … 127 127 extern int testRTDirCreate(const char *pszPath, RTFMODE fMode) 128 128 { 129 /* RTPrintf("%s: pszPath=%s, fMode=0x%llx\n", __ func__, pszPath,129 /* RTPrintf("%s: pszPath=%s, fMode=0x%llx\n", __PRETTY_FUNCTION__, pszPath, 130 130 LLUIFY(fMode)); */ 131 131 ARRAY_FROM_PATH(testRTDirCreatePath, pszPath); … … 138 138 extern int testRTDirOpen(PRTDIR *ppDir, const char *pszPath) 139 139 { 140 /* RTPrintf("%s: pszPath=%s\n", __ func__, pszPath); */140 /* RTPrintf("%s: pszPath=%s\n", __PRETTY_FUNCTION__, pszPath); */ 141 141 ARRAY_FROM_PATH(testRTDirOpenName, pszPath); 142 142 *ppDir = testRTDirOpenpDir; … … 151 151 RTFSOBJATTRADD enmAdditionalAttribs) 152 152 { 153 /* RTPrintf("%s: pDir=%p, enmAdditionalAttribs=0x%llx\n", __ func__, pDir,154 LLUIFY(enmAdditionalAttribs)); */153 /* RTPrintf("%s: pDir=%p, enmAdditionalAttribs=0x%llx\n", __PRETTY_FUNCTION__, 154 pDir, LLUIFY(enmAdditionalAttribs)); */ 155 155 testRTDirQueryInfoDir = pDir; 156 156 RT_ZERO(*pObjInfo); … … 160 160 } 161 161 162 extern int testRTDirRemove(const char *pszPath) { RTPrintf("%s\n", __ func__); return 0; }162 extern int testRTDirRemove(const char *pszPath) { RTPrintf("%s\n", __PRETTY_FUNCTION__); return 0; } 163 163 164 164 static PRTDIR testRTDirReadExDir; … … 170 170 { 171 171 /* RTPrintf("%s: pDir=%p, pcbDirEntry=%d, enmAdditionalAttribs=%llu, fFlags=0x%llx\n", 172 __ func__, pDir, pcbDirEntry ? (int) *pcbDirEntry : -1,172 __PRETTY_FUNCTION__, pDir, pcbDirEntry ? (int) *pcbDirEntry : -1, 173 173 LLUIFY(enmAdditionalAttribs), LLUIFY(fFlags)); */ 174 174 testRTDirReadExDir = pDir; … … 178 178 static RTTIMESPEC testRTDirSetTimesATime; 179 179 180 RTR3DECL(int)testRTDirSetTimes(PRTDIR pDir, PCRTTIMESPEC pAccessTime,180 extern int testRTDirSetTimes(PRTDIR pDir, PCRTTIMESPEC pAccessTime, 181 181 PCRTTIMESPEC pModificationTime, 182 182 PCRTTIMESPEC pChangeTime, … … 184 184 { 185 185 /* RTPrintf("%s: pDir=%p, *pAccessTime=%lli, *pModificationTime=%lli, *pChangeTime=%lli, *pBirthTime=%lli\n", 186 __ func__, pDir,186 __PRETTY_FUNCTION__, pDir, 187 187 pAccessTime ? (long long)RTTimeSpecGetNano(pAccessTime) : -1, 188 188 pModificationTime … … 201 201 extern int testRTFileClose(RTFILE File) 202 202 { 203 /* RTPrintf("%s: File=%p\n", __ func__, File); */203 /* RTPrintf("%s: File=%p\n", __PRETTY_FUNCTION__, File); */ 204 204 testRTFileCloseFile = File; 205 205 return 0; 206 206 } 207 207 208 extern int testRTFileDelete(const char *pszFilename) { RTPrintf("%s\n", __ func__); return 0; }208 extern int testRTFileDelete(const char *pszFilename) { RTPrintf("%s\n", __PRETTY_FUNCTION__); return 0; } 209 209 210 210 static RTFILE testRTFileFlushFile; … … 212 212 extern int testRTFileFlush(RTFILE File) 213 213 { 214 /* RTPrintf("%s: File=%p\n", __ func__, File); */214 /* RTPrintf("%s: File=%p\n", __PRETTY_FUNCTION__, File); */ 215 215 testRTFileFlushFile = File; 216 216 return VINF_SUCCESS; … … 225 225 uint64_t cbLock) 226 226 { 227 /* RTPrintf("%s: hFile=%p, fLock=%u, offLock=%lli, cbLock=%llu\n", __func__, 228 hFile, fLock, (long long) offLock, LLUIFY(cbLock)); */ 227 /* RTPrintf("%s: hFile=%p, fLock=%u, offLock=%lli, cbLock=%llu\n", 228 __PRETTY_FUNCTION__, hFile, fLock, (long long) offLock, 229 LLUIFY(cbLock)); */ 229 230 testRTFileLockFile = hFile; 230 231 testRTFileLockfLock = fLock; … … 241 242 uint64_t fOpen) 242 243 { 243 /* RTPrintf("%s, pszFilename=%s, fOpen=0x%llx\n", __ func__, pszFilename,244 LLUIFY(fOpen)); */244 /* RTPrintf("%s, pszFilename=%s, fOpen=0x%llx\n", __PRETTY_FUNCTION__, 245 pszFilename, LLUIFY(fOpen)); */ 245 246 ARRAY_FROM_PATH(testRTFileOpenName, pszFilename); 246 247 testRTFileOpenFlags = fOpen; … … 256 257 extern int testRTFileQueryInfo(RTFILE hFile, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAdditionalAttribs) 257 258 { 258 /* RTPrintf("%s, hFile=%p, enmAdditionalAttribs=0x%llx\n", __func__,259 hFile, LLUIFY(enmAdditionalAttribs)); */259 /* RTPrintf("%s, hFile=%p, enmAdditionalAttribs=0x%llx\n", 260 __PRETTY_FUNCTION__, hFile, LLUIFY(enmAdditionalAttribs)); */ 260 261 testRTFileQueryInfoFile = hFile; 261 262 RT_ZERO(*pObjInfo); … … 272 273 size_t *pcbRead) 273 274 { 274 /* RTPrintf("%s : File=%p, cbToRead=%llu\n", __ func__, File,275 /* RTPrintf("%s : File=%p, cbToRead=%llu\n", __PRETTY_FUNCTION__, File, 275 276 LLUIFY(cbToRead)); */ 276 277 bufferFromPath(pvBuf, cbToRead, testRTFileReadData); … … 284 285 uint64_t *poffActual) 285 286 { 286 /* RTPrintf("%s : hFile=%p, offSeek=%llu, uMethod=%u\n", __ func__, hFile,287 LLUIFY(offSeek), uMethod); */287 /* RTPrintf("%s : hFile=%p, offSeek=%llu, uMethod=%u\n", __PRETTY_FUNCTION__, 288 hFile, LLUIFY(offSeek), uMethod); */ 288 289 if (poffActual) 289 290 *poffActual = 0; … … 295 296 extern int testRTFileSetMode(RTFILE File, RTFMODE fMode) 296 297 { 297 /* RTPrintf("%s: fMode=%llu\n", __ func__, LLUIFY(fMode)); */298 /* RTPrintf("%s: fMode=%llu\n", __PRETTY_FUNCTION__, LLUIFY(fMode)); */ 298 299 testRTFileSetFMode = fMode; 299 300 return VINF_SUCCESS; … … 305 306 extern int testRTFileSetSize(RTFILE File, uint64_t cbSize) 306 307 { 307 /* RTPrintf("%s: File=%llu, cbSize=%llu\n", __ func__, LLUIFY(File),308 /* RTPrintf("%s: File=%llu, cbSize=%llu\n", __PRETTY_FUNCTION__, LLUIFY(File), 308 309 LLUIFY(cbSize)); */ 309 310 testRTFileSetSizeFile = File; … … 320 321 { 321 322 /* RTPrintf("%s: pFile=%p, *pAccessTime=%lli, *pModificationTime=%lli, *pChangeTime=%lli, *pBirthTime=%lli\n", 322 __ func__,323 __PRETTY_FUNCTION__, 323 324 pAccessTime ? (long long)RTTimeSpecGetNano(pAccessTime) : -1, 324 325 pModificationTime … … 339 340 extern int testRTFileUnlock(RTFILE File, int64_t offLock, uint64_t cbLock) 340 341 { 341 /* RTPrintf("%s: hFile=%p, ofLock=%lli, cbLock=%llu\n", __ func__,342 /* RTPrintf("%s: hFile=%p, ofLock=%lli, cbLock=%llu\n", __PRETTY_FUNCTION__, 342 343 File, (long long) offLock, LLUIFY(cbLock)); */ 343 344 testRTFileUnlockFile = File; … … 352 353 size_t *pcbWritten) 353 354 { 354 /* RTPrintf("%s: File=%p, pvBuf=%.*s, cbToWrite=%llu\n", __ func__, File,355 cbToWrite, (const char *)pvBuf, LLUIFY(cbToWrite)); */355 /* RTPrintf("%s: File=%p, pvBuf=%.*s, cbToWrite=%llu\n", __PRETTY_FUNCTION__, 356 File, cbToWrite, (const char *)pvBuf, LLUIFY(cbToWrite)); */ 356 357 ARRAY_FROM_PATH(testRTFileWriteData, (const char *)pvBuf); 357 358 if (pcbWritten) … … 360 361 } 361 362 362 RTR3DECL(int)testRTFsQueryProperties(const char *pszFsPath,363 extern int testRTFsQueryProperties(const char *pszFsPath, 363 364 PRTFSPROPERTIES pProperties) 364 365 { 365 /* RTPrintf("%s, pszFsPath=%s\n", __ func__, pszFsPath);366 /* RTPrintf("%s, pszFsPath=%s\n", __PRETTY_FUNCTION__, pszFsPath); 366 367 RT_ZERO(*pProperties); */ 367 368 pProperties->cbMaxComponent = 256; … … 370 371 } 371 372 372 RTR3DECL(int)testRTFsQuerySerial(const char *pszFsPath, uint32_t *pu32Serial)373 { RTPrintf("%s\n", __ func__); return 0; }374 RTR3DECL(int)testRTFsQuerySizes(const char *pszFsPath, PRTFOFF pcbTotal,373 extern int testRTFsQuerySerial(const char *pszFsPath, uint32_t *pu32Serial) 374 { RTPrintf("%s\n", __PRETTY_FUNCTION__); return 0; } 375 extern int testRTFsQuerySizes(const char *pszFsPath, PRTFOFF pcbTotal, 375 376 RTFOFF *pcbFree, uint32_t *pcbBlock, 376 uint32_t *pcbSector) { RTPrintf("%s\n", __ func__); return 0; }377 378 RTR3DECL(int)testRTPathQueryInfoEx(const char *pszPath,377 uint32_t *pcbSector) { RTPrintf("%s\n", __PRETTY_FUNCTION__); return 0; } 378 379 extern int testRTPathQueryInfoEx(const char *pszPath, 379 380 PRTFSOBJINFO pObjInfo, 380 381 RTFSOBJATTRADD enmAdditionalAttribs, … … 382 383 { 383 384 /* RTPrintf("%s: pszPath=%s, enmAdditionalAttribs=0x%x, fFlags=0x%x\n", 384 __ func__, pszPath, (unsigned) enmAdditionalAttribs,385 __PRETTY_FUNCTION__, pszPath, (unsigned) enmAdditionalAttribs, 385 386 (unsigned) fFlags); */ 386 387 RT_ZERO(*pObjInfo); … … 388 389 } 389 390 390 extern int testRTSymlinkDelete(const char *pszSymlink) { RTPrintf("%s\n", __ func__); return 0; }391 extern int testRTSymlinkDelete(const char *pszSymlink) { RTPrintf("%s\n", __PRETTY_FUNCTION__); return 0; } 391 392 extern int testRTSymlinkRead(const char *pszSymlink, char *pszTarget, 392 size_t cbTarget) { RTPrintf("%s\n", __ func__); return 0; }393 size_t cbTarget) { RTPrintf("%s\n", __PRETTY_FUNCTION__); return 0; } 393 394 394 395 /******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.