VirtualBox

Ignore:
Timestamp:
Jul 3, 2009 1:23:29 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49502
Message:

VBoxGuest-linux.c,VBoxGuestR3Lib.cpp: Fixed ioctl error check for linux. Made sure no more VBox error status codes are lost in translation (linux only, but the principle is portable to *BSD and Solaris).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r21170 r21199  
    330330{
    331331    bool fTaken = VBoxGuestCommonISR(&g_DevExt);
    332     /** @todo  if (vboxDev->irqAckRequest->events &
    333      *             VMMDEV_EVENT_MOUSE_POSITION_CHANGED)
    334      *             kill_fasync(&vboxDev->async_queue, SIGIO, POLL_IN);
    335      */
    336332    return IRQ_RETVAL(fTaken);
    337333}
     
    458454    /*
    459455     * Create the release log.
     456     * (We do that here instead of common code because we want to log               .
     457     * early failures using the LogRel macro.)
    460458     */
    461459    rc = RTLogCreate(&pRelLogger, 0 /* fFlags */, "all",
     
    647645         * Copy ioctl data and output buffer back to user space.
    648646         */
    649         if (RT_LIKELY(!rc))
     647        if (RT_SUCCESS(rc))
    650648        {
    651649            rc = 0;
     
    668666        {
    669667            Log(("vboxguestLinuxIOCtl: pFilp=%p uCmd=%#x ulArg=%p failed, rc=%d\n", pFilp, uCmd, (void *)ulArg, rc));
    670             rc = vboxguestLinuxConvertToNegErrno(rc);
     668            rc = -rc; Assert(rc > 0); /* Positive returns == negated VBox error status codes. */
    671669        }
    672670    }
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