VirtualBox

Changeset 69677 in vbox for trunk


Ignore:
Timestamp:
Nov 13, 2017 3:44:20 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:
3 edited

Legend:

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

    r69674 r69677  
    721721 * @param   hDirSrc         The directory the source path is relative to.
    722722 * @param   pszSrc          The source path, relative to @a hDirSrc.
    723  * @param   hDirSrc         The directory the destination path is relative to.
     723 * @param   hDirDst         The directory the destination path is relative to.
    724724 * @param   pszDst          The destination path, relative to @a hDirDst.
    725725 * @param   fRename         Rename flags, RTPATHRENAME_FLAGS_XXX.
  • trunk/include/iprt/vfs.h

    r69674 r69677  
    484484 * @param   fLeaveOpen      Whether to leave the handle open when the VFS
    485485 *                          directory is released, or to close it (@c false).
    486  * @param   phVfsDi         Where to return the VFS directory handle.
     486 * @param   phVfsDir        Where to return the VFS directory handle.
    487487 */
    488488RTDECL(int) RTVfsDirFromRTDir(PRTDIR hDir, bool fLeaveOpen, PRTVFSDIR phVfsDir);
     
    494494 * @param   hDir            The standard IPRT directory handle.
    495495 * @param   fFlags          RTDIR_F_XXX.
    496  * @param   fLeaveOpen      Whether to leave the handle open when the VFS
    497  *                          directory is released, or to close it (@c false).
    498  * @param   phVfsDi         Where to return the VFS directory handle.
     496 * @param   phVfsDir        Where to return the VFS directory handle.
    499497 */
    500498RTDECL(int) RTVfsDirOpenNormal(const char *pszFilename, uint32_t fFlags, PRTVFSDIR phVfsDir);
  • trunk/src/VBox/Runtime/r3/generic/dirrel-r3-generic.cpp

    r69674 r69677  
    417417 * @param   hDirSrc         The directory the source path is relative to.
    418418 * @param   pszSrc          The source path, relative to @a hDirSrc.
    419  * @param   hDirSrc         The directory the destination path is relative to.
     419 * @param   hDirDst         The directory the destination path is relative to.
    420420 * @param   pszDst          The destination path, relative to @a hDirDst.
    421421 * @param   fRename         Rename flags, RTPATHRENAME_FLAGS_XXX.
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