Changeset 41357 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- May 19, 2012 11:26:39 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78043
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv-dtrace.cpp
r41354 r41357 68 68 # define intptr_t dtrace_intptr_t 69 69 # include "dtrace.h" 70 # define FIX_UEK_RC(a_rc) (-(a_rc)) 70 71 #else 71 72 # include <sys/dtrace.h> 73 #endif 74 75 76 /** 77 * The UEK DTrace port is trying to be smart and seems to have turned all 78 * errno return codes negative. While this conforms to the linux kernel way of 79 * doing things, it breaks with the way the interfaces work on Solaris and 80 * Mac OS X. 81 */ 82 #ifndef FIX_UEK_RC 83 # define FIX_UEK_RC(a_rc) (a_rc) 72 84 #endif 73 85 … … 925 937 { 926 938 pCore->TracerData.DTrace.idProvider = 0; 927 rc = RTErrConvertFromErrno( rc);939 rc = RTErrConvertFromErrno(FIX_UEK_RC(rc)); 928 940 } 929 941 … … 951 963 else 952 964 { 953 AssertMsg( rc== EBUSY, ("%d\n", rc));965 AssertMsg(FIX_UEK_RC(rc) == EBUSY, ("%d\n", rc)); 954 966 pCore->TracerData.DTrace.fZombie = true; 955 967 rc = VERR_TRY_AGAIN; … … 979 991 else 980 992 { 981 AssertMsg( rc== EBUSY, ("%d\n", rc));993 AssertMsg(FIX_UEK_RC(rc) == EBUSY, ("%d\n", rc)); 982 994 rc = VERR_TRY_AGAIN; 983 995 }
Note:
See TracChangeset
for help on using the changeset viewer.