Changeset 10486 in vbox
- Timestamp:
- Jul 10, 2008 8:59:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r10478 r10486 54 54 VBGLR3DECL(int) VbglR3WriteLog(const char *pch, size_t cb) 55 55 { 56 #if defined(RT_OS_WINDOWS) /** @todo more OSes could take this route (solaris and freebsd for instance). */ 57 /* 58 * Handle the entire request in one go. 59 */ 60 return vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cb), (char *)pch, cb); 61 62 #else 63 /* 64 * *BSD does not accept more than 4KB per ioctl request, while 65 * Linux can't express sizes above 8KB, so, split it up into 2KB chunks. 66 */ 67 # define STEP 2048 56 68 int rc = VINF_SUCCESS; 57 58 #if defined(RT_OS_WINDOWS)59 60 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cb), (char *)pch, cb);61 #else62 63 /*64 * *BSD does not accept more than 4KB per ioctl request,65 * so, split it up into 2KB chunks.66 */67 #define STEP 204868 69 for (size_t off = 0; off < cb && RT_SUCCESS(rc); off += STEP) 69 70 { … … 71 72 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cbStep), (char *)pch + off, cbStep); 72 73 } 73 #undef STEP 74 # undef STEP 75 return rc; 74 76 #endif 75 return rc;76 77 } 77 78 … … 86 87 VBGLR3DECL(int) VbglR3CtlFilterMask(uint32_t fOr, uint32_t fNot) 87 88 { 89 #if defined(RT_OS_WINDOWS) 90 /** @todo Not yet implemented. */ 91 return VERR_NOT_SUPPORTED; 88 92 89 #if defined(RT_OS_WINDOWS)90 91 /* @todo Not yet implemented. */92 return VINF_SUCCESS;93 93 #else 94 94 … … 107 107 * @param fOr Capabilities which have been added. 108 108 * @param fNot Capabilities which have been removed. 109 * 110 * @todo Move to a different file. 109 111 */ 110 112 VBGLR3DECL(int) VbglR3SetGuestCaps(uint32_t fOr, uint32_t fNot)
Note:
See TracChangeset
for help on using the changeset viewer.