VirtualBox

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

SUPLib: ahDummy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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