VirtualBox

Changeset 75652 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Nov 21, 2018 9:00:31 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126831
Message:

IPRT/dir: Adding RTDirRewind for use with shared folders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp

    r73097 r75652  
    649649
    650650
     651RTDECL(int) RTDirRewind(RTDIR hDir)
     652{
     653    PRTDIRINTERNAL pDir = hDir;
     654
     655    /*
     656     * Validate and digest input.
     657     */
     658    if (!rtDirValidHandle(pDir))
     659        return VERR_INVALID_PARAMETER;
     660
     661    /*
     662     * Do the rewinding.
     663     */
     664    /** @todo OS/2 does not rescan the directory as it should. */
     665    rewinddir(pDir->pDir);
     666    pDir->fDataUnread = false;
     667
     668    return VINF_SUCCESS;
     669}
     670
     671
    651672RTDECL(int) RTDirRename(const char *pszSrc, const char *pszDst, unsigned fRename)
    652673{
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