VirtualBox

Changeset 6429 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 21, 2008 10:22:11 PM (17 years ago)
Author:
vboxsync
Message:

r=bird: file sizes and offets are given as RTFOFF now (the uint64_t use is just legacy that will have to be removed sooner or later). Added a Ex version and filled in the missing documentation. Added a todo about the function *not* working on Windows (vista at least).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/file.h

    r6421 r6429  
    266266
    267267/**
    268  * Determine the maximum file size depending on the file system the file is stored on.
    269  */
    270 RTR3DECL(uint64_t) RTFileGetMaxSize(RTFILE File);
     268 * Determine the maximum file size.
     269 * 
     270 * @returns The max size of the file.
     271 *          -1 on failure, the file position is undefined.
     272 * @param   File        Handle to the file.
     273 * @see     RTFileGetMaxSizeEx.
     274 */
     275RTR3DECL(RTFOFF) RTFileGetMaxSize(RTFILE File);
     276
     277/**
     278 * Determine the maximum file size.
     279 * 
     280 * @returns IPRT status code.
     281 * @param   File        Handle to the file.
     282 * @param   pcbMax      Where to store the max file size.
     283 * @see     RTFileGetMaxSize.
     284 */
     285RTR3DECL(int) RTFileGetMaxSizeEx(RTFILE File, PRTFOFF pcbMax);
     286
     287/**
     288 * Determine the maximum file size depending on the file system the file is stored on.
     289 * 
     290 * @returns The max size of the file.
     291 *          -1 on failure.
     292 * @param   File        Handle to the file.         
     293 */
     294RTR3DECL(RTFOFF) RTFileGetMaxSize(RTFILE File);
    271295
    272296/**
Note: See TracChangeset for help on using the changeset viewer.

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