VirtualBox

Changeset 80585 in vbox for trunk/src/VBox/Runtime/tools


Ignore:
Timestamp:
Sep 4, 2019 2:05:50 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133105
Message:

Runtime: Some renaming to stay consistent (*Get* always returns what is asked for while *Query* returns a status code and where to store the value on success is given as a pointer)

  • RTVfsFileGetSize -> RTVfsFileQuerySize
  • RTFileQuerySize -> RTFileQuerySizeByPath
  • RTFileGetSize -> RTFileQuerySize
  • RTFileGetSizeMaxEx -> RTFileQuerySizeMaxEx
Location:
trunk/src/VBox/Runtime/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTLdrCheckImports.cpp

    r76553 r80585  
    277277                /* Read it into a memory buffer. */
    278278                uint64_t cbFile;
    279                 rc = RTVfsFileGetSize(hVfsFile, &cbFile);
     279                rc = RTVfsFileQuerySize(hVfsFile, &cbFile);
    280280                if (RT_SUCCESS(rc))
    281281                {
     
    375375                }
    376376                else
    377                     RTMsgError("%s: %s: RTVfsFileGetSize failed on export file: %Rrc", pszImage, szPath, rc);
     377                    RTMsgError("%s: %s: RTVfsFileQuerySize failed on export file: %Rrc", pszImage, szPath, rc);
    378378                RTVfsFileRelease(hVfsFile);
    379379                return rc;
  • trunk/src/VBox/Runtime/tools/RTSignTool.cpp

    r76553 r80585  
    781781                            uint32_t const  cbWinCert = RT_UOFFSETOF(WIN_CERTIFICATE, bCertificate);
    782782                            uint64_t        offCur    = 0;
    783                             rc = RTFileGetSize(hFile, &offCur);
     783                            rc = RTFileQuerySize(hFile, &offCur);
    784784                            if (   RT_SUCCESS(rc)
    785785                                && offCur < _2G)
     
    860860                                RTMsgError("File to big: %'RU64 bytes", offCur);
    861861                            else
    862                                 RTMsgError("RTFileGetSize failed: %Rrc", rc);
     862                                RTMsgError("RTFileQuerySize failed: %Rrc", rc);
    863863                        }
    864864                    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette