VirtualBox

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/fileio.cpp

    r77825 r80585  
    227227 *          -1 on failure, the file position is undefined.
    228228 * @param   File        Handle to the file.
    229  * @see     RTFileGetMaxSizeEx.
     229 * @see     RTFileQueryMaxSizeEx.
    230230 */
    231231RTR3DECL(RTFOFF) RTFileGetMaxSize(RTFILE File)
    232232{
    233233    RTFOFF cbMax;
    234     int rc = RTFileGetMaxSizeEx(File, &cbMax);
     234    int rc = RTFileQueryMaxSizeEx(File, &cbMax);
    235235    return RT_SUCCESS(rc) ? cbMax : -1;
    236236}
     
    317317     */
    318318    uint64_t cbFile1;
    319     int rc = RTFileGetSize(hFile1, &cbFile1);
     319    int rc = RTFileQuerySize(hFile1, &cbFile1);
    320320    if (RT_FAILURE(rc))
    321321        return rc;
    322322
    323323    uint64_t cbFile2;
    324     rc = RTFileGetSize(hFile1, &cbFile2);
     324    rc = RTFileQuerySize(hFile1, &cbFile2);
    325325    if (RT_FAILURE(rc))
    326326        return rc;
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