Changeset 80585 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Sep 4, 2019 2:05:50 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133105
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/fileio.cpp
r77825 r80585 227 227 * -1 on failure, the file position is undefined. 228 228 * @param File Handle to the file. 229 * @see RTFile GetMaxSizeEx.229 * @see RTFileQueryMaxSizeEx. 230 230 */ 231 231 RTR3DECL(RTFOFF) RTFileGetMaxSize(RTFILE File) 232 232 { 233 233 RTFOFF cbMax; 234 int rc = RTFile GetMaxSizeEx(File, &cbMax);234 int rc = RTFileQueryMaxSizeEx(File, &cbMax); 235 235 return RT_SUCCESS(rc) ? cbMax : -1; 236 236 } … … 317 317 */ 318 318 uint64_t cbFile1; 319 int rc = RTFile GetSize(hFile1, &cbFile1);319 int rc = RTFileQuerySize(hFile1, &cbFile1); 320 320 if (RT_FAILURE(rc)) 321 321 return rc; 322 322 323 323 uint64_t cbFile2; 324 rc = RTFile GetSize(hFile1, &cbFile2);324 rc = RTFileQuerySize(hFile1, &cbFile2); 325 325 if (RT_FAILURE(rc)) 326 326 return rc; -
trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
r79155 r80585 670 670 671 671 672 RTR3DECL(int) RTFile GetSize(RTFILE hFile, uint64_t *pcbSize)672 RTR3DECL(int) RTFileQuerySize(RTFILE hFile, uint64_t *pcbSize) 673 673 { 674 674 /* … … 746 746 747 747 748 RTR3DECL(int) RTFile GetMaxSizeEx(RTFILE hFile, PRTFOFF pcbMax)748 RTR3DECL(int) RTFileQueryMaxSizeEx(RTFILE hFile, PRTFOFF pcbMax) 749 749 { 750 750 /* -
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r79155 r80585 798 798 799 799 800 RTR3DECL(int) RTFile GetSize(RTFILE hFile, uint64_t *pcbSize)800 RTR3DECL(int) RTFileQuerySize(RTFILE hFile, uint64_t *pcbSize) 801 801 { 802 802 /* … … 849 849 850 850 851 RTR3DECL(int) RTFile GetMaxSizeEx(RTFILE hFile, PRTFOFF pcbMax)851 RTR3DECL(int) RTFileQueryMaxSizeEx(RTFILE hFile, PRTFOFF pcbMax) 852 852 { 853 853 /** @todo r=bird: -
trunk/src/VBox/Runtime/r3/xml.cpp
r79677 r80585 2290 2290 /* Make a backup of any existing file (ignore failure). */ 2291 2291 uint64_t cbPrevFile; 2292 rc = RTFileQuerySize (pcszFilename, &cbPrevFile);2292 rc = RTFileQuerySizeByPath(pcszFilename, &cbPrevFile); 2293 2293 if (RT_SUCCESS(rc) && cbPrevFile >= 16) 2294 2294 RTFileRename(pcszFilename, szPrevFilename, RTPATHRENAME_FLAGS_REPLACE);
Note:
See TracChangeset
for help on using the changeset viewer.