VirtualBox

Ignore:
Timestamp:
Dec 17, 2009 2:49:34 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56131
Message:

SUPDrv,++: Made SUPDrv.c platform agnostic and renamed SUPDrvAgnostic.c to SUPDrvSem.c. dprintf and dprintf2 are no more (Log/Log2), while OSDBGPRINT simply calls SUPR0Printf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r25278 r25465  
    839839 *
    840840 * @returns corresponding solaris error code.
    841  * @param   rc  supdrv error code (SUPDRV_ERR_* defines).
     841 * @param   rc      IPRT status code.
    842842 */
    843843static int VBoxSupDrvErr2SolarisErr(int rc)
     
    845845    switch (rc)
    846846    {
    847         case 0:                             return 0;
    848         case SUPDRV_ERR_GENERAL_FAILURE:    return EACCES;
    849         case SUPDRV_ERR_INVALID_PARAM:      return EINVAL;
    850         case SUPDRV_ERR_INVALID_MAGIC:      return EILSEQ;
    851         case SUPDRV_ERR_INVALID_HANDLE:     return ENXIO;
    852         case SUPDRV_ERR_INVALID_POINTER:    return EFAULT;
    853         case SUPDRV_ERR_LOCK_FAILED:        return ENOLCK;
    854         case SUPDRV_ERR_ALREADY_LOADED:     return EEXIST;
    855         case SUPDRV_ERR_PERMISSION_DENIED:  return EPERM;
    856         case SUPDRV_ERR_VERSION_MISMATCH:   return ENOSYS;
     847        case VINF_SUCCESS:              return 0;
     848        case VERR_GENERAL_FAILURE:      return EACCES;
     849        case VERR_INVALID_PARAMETER:    return EINVAL;
     850        case VERR_INVALID_MAGIC:        return EILSEQ;
     851        case VERR_INVALID_HANDLE:       return ENXIO;
     852        case VERR_INVALID_POINTER:      return EFAULT;
     853        case VERR_LOCK_FAILED:          return ENOLCK;
     854        case VERR_ALREADY_LOADED:       return EEXIST;
     855        case VERR_PERMISSION_DENIED:    return EPERM;
     856        case VERR_VERSION_MISMATCH:     return ENOSYS;
    857857    }
    858858
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