Changeset 57274 in vbox for trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
- Timestamp:
- Aug 11, 2015 1:46:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
r56699 r57274 216 216 if (!pThis) 217 217 return VERR_NO_MEMORY; 218 IPRT_DARWIN_SAVE_EFL_AC(); 218 219 219 220 errno_t rc; … … 257 258 default: 258 259 AssertMsgFailed(("RTFileOpen received an invalid RW value, fOpen=%#x\n", fOpen)); 260 IPRT_DARWIN_RESTORE_EFL_AC(); 259 261 return VERR_INVALID_PARAMETER; 260 262 } … … 265 267 { 266 268 *phFile = pThis; 269 IPRT_DARWIN_RESTORE_EFL_AC(); 267 270 return VINF_SUCCESS; 268 271 } … … 274 277 RTMemFree(pThis); 275 278 279 IPRT_DARWIN_RESTORE_EFL_AC(); 276 280 return rc; 277 281 } … … 288 292 pThis->u32Magic = ~RTFILE_MAGIC; 289 293 294 IPRT_DARWIN_SAVE_EFL_AC(); 290 295 errno_t rc = vnode_close(pThis->hVnode, pThis->fOpenMode & (FREAD | FWRITE), pThis->hVfsCtx); 296 IPRT_DARWIN_RESTORE_EFL_AC(); 291 297 292 298 RTMemFree(pThis); … … 303 309 off_t offNative = (off_t)off; 304 310 AssertReturn((RTFOFF)offNative == off, VERR_OUT_OF_RANGE); 311 IPRT_DARWIN_SAVE_EFL_AC(); 305 312 306 313 #if 0 /* Added in 10.6, grr. */ … … 316 323 *pcbRead = cbToRead - cbLeft; 317 324 } 325 IPRT_DARWIN_RESTORE_EFL_AC(); 318 326 return !rc ? VINF_SUCCESS : RTErrConvertFromErrno(rc); 319 327 … … 321 329 uio_t hUio = uio_create(1, offNative, UIO_SYSSPACE, UIO_READ); 322 330 if (!hUio) 331 { 332 IPRT_DARWIN_RESTORE_EFL_AC(); 323 333 return VERR_NO_MEMORY; 334 } 324 335 errno_t rc; 325 336 if (uio_addiov(hUio, (user_addr_t)(uintptr_t)pvBuf, cbToRead) == 0) … … 334 345 rc = VERR_INTERNAL_ERROR_3; 335 346 uio_free(hUio); 347 IPRT_DARWIN_RESTORE_EFL_AC(); 336 348 return rc; 337 349
Note:
See TracChangeset
for help on using the changeset viewer.