Changeset 25465 in vbox for trunk/src/VBox/HostDrivers/Support/solaris
- Timestamp:
- Dec 17, 2009 2:49:34 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56131
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r25278 r25465 839 839 * 840 840 * @returns corresponding solaris error code. 841 * @param rc supdrv error code (SUPDRV_ERR_* defines).841 * @param rc IPRT status code. 842 842 */ 843 843 static int VBoxSupDrvErr2SolarisErr(int rc) … … 845 845 switch (rc) 846 846 { 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; 857 857 } 858 858
Note:
See TracChangeset
for help on using the changeset viewer.