VirtualBox

Ignore:
Timestamp:
Jan 30, 2019 3:38:53 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128490
Message:

iprt/isomaker: Optimized native handle (file descriptor) usage when adding real directories.

Location:
trunk/src/VBox/Runtime/common/vfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r76553 r77047  
    25192519
    25202520
     2521RTDECL(void *) RTVfsDirToPrivate(RTVFSDIR hVfsDir, PCRTVFSDIROPS pDirOps)
     2522{
     2523    RTVFSDIRINTERNAL *pThis = hVfsDir;
     2524    AssertPtrReturn(pThis, NULL);
     2525    AssertReturn(pThis->uMagic == RTVFSDIR_MAGIC, NULL);
     2526    if (pThis->pOps != pDirOps)
     2527        return NULL;
     2528    return pThis->Base.pvThis;
     2529}
     2530
     2531
    25212532#ifdef DEBUG
    25222533# undef RTVfsDirRetain
  • trunk/src/VBox/Runtime/common/vfs/vfsstddir.cpp

    r76553 r77047  
    753753
    754754
     755RTDECL(bool) RTVfsDirIsStdDir(RTVFSDIR hVfsDir)
     756{
     757    return RTVfsDirToPrivate(hVfsDir, &g_rtVfsStdDirOps) != NULL;
     758}
     759
     760
    755761/**
    756762 * @interface_method_impl{RTVFSCHAINELEMENTREG,pfnValidate}
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