VirtualBox

Changeset 26402 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Feb 10, 2010 8:06:45 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57497
Message:

SUPLib: ahDummy.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h

    r26362 r26402  
    5353
    5454#ifdef RT_OS_SOLARIS
    55 /** Number of dummy files to open (2:ip4, 1:ip6, 1:extra) see #4650 */
    56 #define SUPLIB_FLT_DUMMYFILES 4
     55/** Number of dummy files to open (2:ip4, 1:ip6, 1:extra) see
     56 *  @bugref{4650}. */
     57# define SUPLIB_FLT_DUMMYFILES 4
    5758#endif
    5859
     
    194195    bool                fSysMadviseWorks;
    195196#elif defined(RT_OS_SOLARIS)
    196     /** Extra dummy file descriptors to prevent growing file-descriptor table on clean up (see #4650) */
    197     int                 hDummy[SUPLIB_FLT_DUMMYFILES];
     197    /** Extra dummy file descriptors to prevent growing file-descriptor table on
     198     *  clean up (see @bugref{4650}). */
     199    int                 ahDummy[SUPLIB_FLT_DUMMYFILES];
    198200#elif defined(RT_OS_WINDOWS)
    199201#endif
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPLib-solaris.cpp

    r26381 r26402  
    8787    for (int i = 0; i < SUPLIB_FLT_DUMMYFILES; i++)
    8888    {
    89         pThis->hDummy[i] = -1;
     89        pThis->ahDummy[i] = -1;
    9090        int hDummy = open("/dev/null", O_RDWR, 0);
    9191        if (hDummy >= 0)
    9292        {
    93             if (fcntl(hDummy, F_SETFD, FD_CLOEXEC) == 0)
    94                 pThis->hDummy[i] = hDummy;
     93            if (fcntl(ahDummy, F_SETFD, FD_CLOEXEC) == 0)
     94                pThis->ahDummy[i] = hDummy;
    9595            else
    9696            {
     
    152152    for (int i = 0; i < SUPLIB_FLT_DUMMYFILES; i++)
    153153    {
    154         if (pThis->hDummy[i] != -1)
     154        if (pThis->ahDummy[i] != -1)
    155155        {
    156             close(pThis->hDummy[i]);
    157             pThis->hDummy[i] = -1;
     156            close(pThis->ahDummy[i]);
     157            pThis->ahDummy[i] = -1;
    158158        }
    159159    }
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