VirtualBox

Changeset 28688 in vbox for trunk/include


Ignore:
Timestamp:
Apr 24, 2010 6:12:55 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: Added RTDirFlush and RTDirFlushParent.

File:
1 edited

Legend:

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

    r27247 r28688  
    125125#define RTDIRRMREC_F_VALID_MASK     UINT32_C(0x00000001)
    126126/** @} */
     127
     128/**
     129 * Flushes the specified directory.
     130 *
     131 * This API is not implemented on all systems.  On some systems it may be
     132 * unnecessary if you've already flushed the file.  If you really care for your
     133 * data and is entering dangerous territories, it doesn't hurt calling it after
     134 * flushing and closing the file.
     135 *
     136 * @returns IPRT status code.
     137 * @retval  VERR_NOT_IMPLEMENTED must be expected.
     138 * @retval  VERR_NOT_SUPPORTED must be expected.
     139 * @param   pszPath     Path to the directory.
     140 */
     141RTDECL(int) RTDirFlush(const char *pszPath);
     142
     143/**
     144 * Flushes the parent directory of the specified file.
     145 *
     146 * This is just a wrapper around RTDirFlush.
     147 *
     148 * @returns IPRT status code, see RTDirFlush for details.
     149 * @param   pszChild    Path to the file which parent should be flushed.
     150 */
     151RTDECL(int) RTDirFlushParent(const char *pszChild);
    127152
    128153
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