VirtualBox

Changeset 69679 in vbox


Ignore:
Timestamp:
Nov 13, 2017 3:53:01 PM (7 years ago)
Author:
vboxsync
Message:

iprt: A bunch of basic function for working the file system relative to an open directory. There is only a default implementation currently, the path race conditions will first be eliminated/reduced with platform specific implementations (POSIX, NT). Also added a VFS wrapper around RTDIR handles, completing RTVfsChainOpenDir and making RTLs work on normal directories too (instead of only isofs and fat). [build fix]

Location:
trunk
Files:
2 edited

Legend:

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

    r69677 r69679  
    492492 *
    493493 * @returns IPRT status code.
    494  * @param   hDir            The standard IPRT directory handle.
     494 * @param   pszPath         The path to the directory.
    495495 * @param   fFlags          RTDIR_F_XXX.
    496496 * @param   phVfsDir        Where to return the VFS directory handle.
    497497 */
    498 RTDECL(int) RTVfsDirOpenNormal(const char *pszFilename, uint32_t fFlags, PRTVFSDIR phVfsDir);
     498RTDECL(int) RTVfsDirOpenNormal(const char *pszPath, uint32_t fFlags, PRTVFSDIR phVfsDir);
    499499
    500500/**
  • trunk/src/VBox/Runtime/common/vfs/vfsstddir.cpp

    r69674 r69679  
    569569
    570570
    571 RTDECL(int) RTVfsDirOpenNormal(const char *pszFilename, uint32_t fFlags, PRTVFSDIR phVfsDir)
     571RTDECL(int) RTVfsDirOpenNormal(const char *pszPath, uint32_t fFlags, PRTVFSDIR phVfsDir)
    572572{
    573573    /*
     
    575575     */
    576576    PRTDIR hDir;
    577     int rc = RTDirOpenFiltered(&hDir, pszFilename, RTDIRFILTER_NONE, fFlags);
     577    int rc = RTDirOpenFiltered(&hDir, pszPath, RTDIRFILTER_NONE, fFlags);
    578578    if (RT_SUCCESS(rc))
    579579    {
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