VirtualBox

Changeset 80585 in vbox for trunk/src/VBox/Devices/PC


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/Devices/PC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp

    r76553 r80585  
    307307             */
    308308            uint64_t cbAmlFile = 0;
    309             rc = RTFileGetSize(FileAml, &cbAmlFile);
     309            rc = RTFileQuerySize(FileAml, &cbAmlFile);
    310310
    311311            cbAmlCode = (size_t)cbAmlFile;
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r80531 r80585  
    31183118    if (RT_SUCCESS(rc))
    31193119    {
    3120         rc = RTFileGetSize(FileCUSTBin, pcbCustBin);
     3120        rc = RTFileQuerySize(FileCUSTBin, pcbCustBin);
    31213121        if (RT_SUCCESS(rc))
    31223122        {
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r80531 r80585  
    14841484            /* Figure the size and check restrictions. */
    14851485            uint64_t cbPcBios;
    1486             rc = RTFileGetSize(hFilePcBios, &cbPcBios);
     1486            rc = RTFileQuerySize(hFilePcBios, &cbPcBios);
    14871487            if (RT_SUCCESS(rc))
    14881488            {
     
    16791679            if (RT_SUCCESS(rc))
    16801680            {
    1681                 rc = RTFileGetSize(hFileLanBoot, &cbFileLanBoot);
     1681                rc = RTFileQuerySize(hFileLanBoot, &cbFileLanBoot);
    16821682                if (RT_SUCCESS(rc))
    16831683                {
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