Changeset 9140 in vbox for trunk/src/VBox
- Timestamp:
- May 27, 2008 7:46:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp
r9126 r9140 161 161 * Try open the BSD device. 162 162 */ 163 # if defined(VBOX_VBGLR3_XFREE86)163 # if defined(VBOX_VBGLR3_XFREE86) 164 164 int File = 0; 165 # else165 # else 166 166 RTFILE File = 0; 167 # endif167 # endif 168 168 int rc; 169 169 char szDevice[sizeof(VBOXGUEST_DEVICE_NAME) + 16]; … … 171 171 { 172 172 RTStrPrintf(szDevice, sizeof(szDevice), VBOXGUEST_DEVICE_NAME "%d", iUnit); 173 # if defined(VBOX_VBGLR3_XFREE86)173 # if defined(VBOX_VBGLR3_XFREE86) 174 174 File = xf86open(szDevice, XF86_O_RDWR); 175 175 if (File >= 0) 176 176 break; 177 # else177 # else 178 178 rc = RTFileOpen(&File, szDevice, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); 179 179 if (RT_SUCCESS(rc)) 180 180 break; 181 # endif181 # endif 182 182 } 183 183 184 # if defined(VBOX_VBGLR3_XFREE86)184 # if defined(VBOX_VBGLR3_XFREE86) 185 185 if (File == -1) 186 186 return VERR_OPEN_FAILED; 187 # else187 # else 188 188 if (RT_FAILURE(rc)) 189 189 return rc; 190 # endif190 # endif 191 191 192 192 g_File = File; 193 193 194 #else 194 195 /* the default implemenation. (linux, solaris) */ … … 201 202 #endif 202 203 203 /* Create release logger */ 204 PRTLOGGER loggerRelease; 204 /* 205 * Create release logger 206 */ 207 PRTLOGGER pReleaseLogger; 205 208 static const char * const s_apszGroups[] = VBOX_LOGGROUP_NAMES; 206 int r rc = RTLogCreate(&loggerRelease, 0, "all", "VBOXGUEST_RELEASE_LOG",207 RT_ELEMENTS(s_apszGroups), &s_apszGroups[0],208 RTLOGDEST_USER, NULL);209 int rc2 = RTLogCreate(&pReleaseLogger, 0, "all", "VBOX_RELEASE_LOG", 210 RT_ELEMENTS(s_apszGroups), &s_apszGroups[0], 211 RTLOGDEST_USER, NULL); 209 212 /* This may legitimately fail if we are using the mini-runtime. */ 210 if (RT_SUCCESS(r rc))211 RTLogRelSetDefaultInstance( loggerRelease);213 if (RT_SUCCESS(rc2)) 214 RTLogRelSetDefaultInstance(pReleaseLogger); 212 215 213 216 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.