Changeset 4823 in vbox
- Timestamp:
- Sep 15, 2007 11:59:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPLib-solaris.cpp
r4811 r4823 117 117 { 118 118 AssertMsg(g_hDevice != -1, ("SUPLIB not initiated successfully!\n")); 119 120 /* 121 * Issue device iocontrol. 122 */ 123 if (RT_LIKELY(ioctl(g_hDevice, uFunction, &pvReq) >= 0)) 119 if (RT_LIKELY(ioctl(g_hDevice, uFunction, pvReq) >= 0)) 124 120 return VINF_SUCCESS; 125 126 /* This is the reverse operation of the one found in SUPDrv-solaris.c */127 switch (errno)128 {129 case EACCES: return VERR_GENERAL_FAILURE;130 case EINVAL: return VERR_INVALID_PARAMETER;131 case EILSEQ: return VERR_INVALID_MAGIC;132 case ENOSYS: return VERR_VERSION_MISMATCH;133 case ENXIO: return VERR_INVALID_HANDLE;134 case EFAULT: return VERR_INVALID_POINTER;135 case ENOLCK: return VERR_LOCK_FAILED;136 case EEXIST: return VERR_ALREADY_LOADED;137 case EPERM: return VERR_PERMISSION_DENIED;138 }139 140 121 return RTErrConvertFromErrno(errno); 141 122 }
Note:
See TracChangeset
for help on using the changeset viewer.