Changeset 43363 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Sep 20, 2012 9:56:07 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80827
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp
r43016 r43363 38 38 39 39 #elif defined(RT_OS_FREEBSD) \ 40 || defined(RT_OS_HAIKU) \ 40 41 || defined(RT_OS_LINUX) \ 41 42 || defined(RT_OS_SOLARIS) … … 198 199 #else 199 200 200 /* The default implementation. (linux, solaris, freebsd ) */201 /* The default implementation. (linux, solaris, freebsd, haiku) */ 201 202 RTFILE File; 202 203 int rc = RTFileOpen(&File, pszDeviceName, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); … … 381 382 return rc; 382 383 384 #elif defined(RT_OS_HAIKU) 385 /* The ioctl hook in Haiku does take the len parameter when specified, 386 * so just use it. 387 */ 388 int rc = ioctl((int)g_File, iFunction, pvData, cbData); 389 if (RT_LIKELY(rc == 0)) 390 return VINF_SUCCESS; 391 392 /* Positive values are negated VBox error status codes. */ 393 if (rc > 0) 394 rc = -rc; 395 else 396 rc = RTErrConvertFromErrno(errno); 397 return rc; 398 383 399 #elif defined(VBOX_VBGLR3_XFREE86) 384 400 /* PORTME - This is preferred over the RTFileIOCtl variant below, just be careful with the (int). */
Note:
See TracChangeset
for help on using the changeset viewer.