1 | /* $Id: VBoxGuest-haiku-stubs.c 43363 2012-09-20 09:56:07Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxGuest kernel module, Haiku Guest Additions, stubs.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.alldomusa.eu.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | /*
|
---|
19 | * This code is based on:
|
---|
20 | *
|
---|
21 | * VirtualBox Guest Additions for Haiku.
|
---|
22 | * Copyright (c) 2011 Mike Smith <[email protected]>
|
---|
23 | * François Revol <[email protected]>
|
---|
24 | *
|
---|
25 | * Permission is hereby granted, free of charge, to any person
|
---|
26 | * obtaining a copy of this software and associated documentation
|
---|
27 | * files (the "Software"), to deal in the Software without
|
---|
28 | * restriction, including without limitation the rights to use,
|
---|
29 | * copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
30 | * copies of the Software, and to permit persons to whom the
|
---|
31 | * Software is furnished to do so, subject to the following
|
---|
32 | * conditions:
|
---|
33 | *
|
---|
34 | * The above copyright notice and this permission notice shall be
|
---|
35 | * included in all copies or substantial portions of the Software.
|
---|
36 | *
|
---|
37 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
38 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
---|
39 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
40 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
---|
41 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
---|
42 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
43 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
44 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
45 | */
|
---|
46 |
|
---|
47 |
|
---|
48 | /*
|
---|
49 | * This file provides stubs for calling VBox runtime functions through the vboxguest module.
|
---|
50 | * It should be linked into any driver or module that uses the VBox runtime, except vboxguest
|
---|
51 | * itself (which contains the actual library and therefore doesn't need stubs to call it).
|
---|
52 | */
|
---|
53 |
|
---|
54 | #include "VBoxGuest-haiku.h"
|
---|
55 | #include "VBoxGuestInternal.h"
|
---|
56 | #include <VBox/log.h>
|
---|
57 | #include <iprt/assert.h>
|
---|
58 | #include <iprt/initterm.h>
|
---|
59 | #include <iprt/process.h>
|
---|
60 | #include <iprt/mem.h>
|
---|
61 | #include <iprt/asm.h>
|
---|
62 | #include <iprt/mp.h>
|
---|
63 | #include <iprt/power.h>
|
---|
64 | #include <iprt/thread.h>
|
---|
65 |
|
---|
66 | // >>> file('/tmp/stubs.c', 'w').writelines([re.sub(r'^(?P<returntype>[^(]+) \(\*_(?P<functionname>[A-Za-z0-9_]+)\)\((?P<params>[^)]+)\);', lambda m: '%s %s(%s) {\n\t%sg_VBoxGuest->_%s(%s);\n}\n' % (m.group(1), m.group(2), m.group(3), ('return ' if m.group(1) != 'void' else ''), m.group(2), (', '.join(a.split(' ')[-1].replace('*', '') for a in m.group(3).split(',')) if m.group(3) != 'void' else '')), f) for f in functions])
|
---|
67 |
|
---|
68 | struct vboxguest_module_info *g_VBoxGuest;
|
---|
69 |
|
---|
70 | size_t RTLogBackdoorPrintf(const char *pszFormat, ...) {
|
---|
71 | va_list args;
|
---|
72 | size_t cb;
|
---|
73 |
|
---|
74 | va_start(args, pszFormat);
|
---|
75 | cb = g_VBoxGuest->_RTLogBackdoorPrintf(pszFormat, args);
|
---|
76 | va_end(args);
|
---|
77 |
|
---|
78 | return cb;
|
---|
79 | }
|
---|
80 | size_t RTLogBackdoorPrintfV(const char *pszFormat, va_list args) {
|
---|
81 | return g_VBoxGuest->_RTLogBackdoorPrintfV(pszFormat, args);
|
---|
82 | }
|
---|
83 | int RTLogSetDefaultInstanceThread(PRTLOGGER pLogger, uintptr_t uKey) {
|
---|
84 | return g_VBoxGuest->_RTLogSetDefaultInstanceThread(pLogger, uKey);
|
---|
85 | }
|
---|
86 | int RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) {
|
---|
87 | return g_VBoxGuest->_RTMemAllocExTag(cb, cbAlignment, fFlags, pszTag, ppv);
|
---|
88 | }
|
---|
89 | void * RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) {
|
---|
90 | return g_VBoxGuest->_RTMemContAlloc(pPhys, cb);
|
---|
91 | }
|
---|
92 | void RTMemContFree(void *pv, size_t cb) {
|
---|
93 | g_VBoxGuest->_RTMemContFree(pv, cb);
|
---|
94 | }
|
---|
95 | void RTMemFreeEx(void *pv, size_t cb) {
|
---|
96 | g_VBoxGuest->_RTMemFreeEx(pv, cb);
|
---|
97 | }
|
---|
98 | bool RTMpIsCpuPossible(RTCPUID idCpu) {
|
---|
99 | return g_VBoxGuest->_RTMpIsCpuPossible(idCpu);
|
---|
100 | }
|
---|
101 | int RTMpNotificationDeregister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser) {
|
---|
102 | return g_VBoxGuest->_RTMpNotificationDeregister(pfnCallback, pvUser);
|
---|
103 | }
|
---|
104 | int RTMpNotificationRegister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser) {
|
---|
105 | return g_VBoxGuest->_RTMpNotificationRegister(pfnCallback, pvUser);
|
---|
106 | }
|
---|
107 | int RTMpOnAll(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2) {
|
---|
108 | return g_VBoxGuest->_RTMpOnAll(pfnWorker, pvUser1, pvUser2);
|
---|
109 | }
|
---|
110 | int RTMpOnOthers(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2) {
|
---|
111 | return g_VBoxGuest->_RTMpOnOthers(pfnWorker, pvUser1, pvUser2);
|
---|
112 | }
|
---|
113 | int RTMpOnSpecific(RTCPUID idCpu, PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2) {
|
---|
114 | return g_VBoxGuest->_RTMpOnSpecific(idCpu, pfnWorker, pvUser1, pvUser2);
|
---|
115 | }
|
---|
116 | int RTPowerNotificationDeregister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser) {
|
---|
117 | return g_VBoxGuest->_RTPowerNotificationDeregister(pfnCallback, pvUser);
|
---|
118 | }
|
---|
119 | int RTPowerNotificationRegister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser) {
|
---|
120 | return g_VBoxGuest->_RTPowerNotificationRegister(pfnCallback, pvUser);
|
---|
121 | }
|
---|
122 | int RTPowerSignalEvent(RTPOWEREVENT enmEvent) {
|
---|
123 | return g_VBoxGuest->_RTPowerSignalEvent(enmEvent);
|
---|
124 | }
|
---|
125 | void RTR0AssertPanicSystem(void) {
|
---|
126 | g_VBoxGuest->_RTR0AssertPanicSystem();
|
---|
127 | }
|
---|
128 | int RTR0Init(unsigned fReserved) {
|
---|
129 | return g_VBoxGuest->_RTR0Init(fReserved);
|
---|
130 | }
|
---|
131 | void * RTR0MemObjAddress(RTR0MEMOBJ MemObj) {
|
---|
132 | return g_VBoxGuest->_RTR0MemObjAddress(MemObj);
|
---|
133 | }
|
---|
134 | RTR3PTR RTR0MemObjAddressR3(RTR0MEMOBJ MemObj) {
|
---|
135 | return g_VBoxGuest->_RTR0MemObjAddressR3(MemObj);
|
---|
136 | }
|
---|
137 | int RTR0MemObjAllocContTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag) {
|
---|
138 | return g_VBoxGuest->_RTR0MemObjAllocContTag(pMemObj, cb, fExecutable, pszTag);
|
---|
139 | }
|
---|
140 | int RTR0MemObjAllocLowTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag) {
|
---|
141 | return g_VBoxGuest->_RTR0MemObjAllocLowTag(pMemObj, cb, fExecutable, pszTag);
|
---|
142 | }
|
---|
143 | int RTR0MemObjAllocPageTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag) {
|
---|
144 | return g_VBoxGuest->_RTR0MemObjAllocPageTag(pMemObj, cb, fExecutable, pszTag);
|
---|
145 | }
|
---|
146 | int RTR0MemObjAllocPhysExTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment, const char *pszTag) {
|
---|
147 | return g_VBoxGuest->_RTR0MemObjAllocPhysExTag(pMemObj, cb, PhysHighest, uAlignment, pszTag);
|
---|
148 | }
|
---|
149 | int RTR0MemObjAllocPhysNCTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag) {
|
---|
150 | return g_VBoxGuest->_RTR0MemObjAllocPhysNCTag(pMemObj, cb, PhysHighest, pszTag);
|
---|
151 | }
|
---|
152 | int RTR0MemObjAllocPhysTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag) {
|
---|
153 | return g_VBoxGuest->_RTR0MemObjAllocPhysTag(pMemObj, cb, PhysHighest, pszTag);
|
---|
154 | }
|
---|
155 | int RTR0MemObjEnterPhysTag(PRTR0MEMOBJ pMemObj, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, const char *pszTag) {
|
---|
156 | return g_VBoxGuest->_RTR0MemObjEnterPhysTag(pMemObj, Phys, cb, uCachePolicy, pszTag);
|
---|
157 | }
|
---|
158 | int RTR0MemObjFree(RTR0MEMOBJ MemObj, bool fFreeMappings) {
|
---|
159 | return g_VBoxGuest->_RTR0MemObjFree(MemObj, fFreeMappings);
|
---|
160 | }
|
---|
161 | RTHCPHYS RTR0MemObjGetPagePhysAddr(RTR0MEMOBJ MemObj, size_t iPage) {
|
---|
162 | return g_VBoxGuest->_RTR0MemObjGetPagePhysAddr(MemObj, iPage);
|
---|
163 | }
|
---|
164 | bool RTR0MemObjIsMapping(RTR0MEMOBJ MemObj) {
|
---|
165 | return g_VBoxGuest->_RTR0MemObjIsMapping(MemObj);
|
---|
166 | }
|
---|
167 | int RTR0MemObjLockKernelTag(PRTR0MEMOBJ pMemObj, void *pv, size_t cb, uint32_t fAccess, const char *pszTag) {
|
---|
168 | return g_VBoxGuest->_RTR0MemObjLockKernelTag(pMemObj, pv, cb, fAccess, pszTag);
|
---|
169 | }
|
---|
170 | int RTR0MemObjLockUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process, const char *pszTag) {
|
---|
171 | return g_VBoxGuest->_RTR0MemObjLockUserTag(pMemObj, R3Ptr, cb, fAccess, R0Process, pszTag);
|
---|
172 | }
|
---|
173 | int RTR0MemObjMapKernelExTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, size_t offSub, size_t cbSub, const char *pszTag) {
|
---|
174 | return g_VBoxGuest->_RTR0MemObjMapKernelExTag(pMemObj, MemObjToMap, pvFixed, uAlignment, fProt, offSub, cbSub, pszTag);
|
---|
175 | }
|
---|
176 | int RTR0MemObjMapKernelTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, const char *pszTag) {
|
---|
177 | return g_VBoxGuest->_RTR0MemObjMapKernelTag(pMemObj, MemObjToMap, pvFixed, uAlignment, fProt, pszTag);
|
---|
178 | }
|
---|
179 | int RTR0MemObjMapUserTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process, const char *pszTag) {
|
---|
180 | return g_VBoxGuest->_RTR0MemObjMapUserTag(pMemObj, MemObjToMap, R3PtrFixed, uAlignment, fProt, R0Process, pszTag);
|
---|
181 | }
|
---|
182 | int RTR0MemObjProtect(RTR0MEMOBJ hMemObj, size_t offSub, size_t cbSub, uint32_t fProt) {
|
---|
183 | return g_VBoxGuest->_RTR0MemObjProtect(hMemObj, offSub, cbSub, fProt);
|
---|
184 | }
|
---|
185 | int RTR0MemObjReserveKernelTag(PRTR0MEMOBJ pMemObj, void *pvFixed, size_t cb, size_t uAlignment, const char *pszTag) {
|
---|
186 | return g_VBoxGuest->_RTR0MemObjReserveKernelTag(pMemObj, pvFixed, cb, uAlignment, pszTag);
|
---|
187 | }
|
---|
188 | int RTR0MemObjReserveUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process, const char *pszTag) {
|
---|
189 | return g_VBoxGuest->_RTR0MemObjReserveUserTag(pMemObj, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
|
---|
190 | }
|
---|
191 | size_t RTR0MemObjSize(RTR0MEMOBJ MemObj) {
|
---|
192 | return g_VBoxGuest->_RTR0MemObjSize(MemObj);
|
---|
193 | }
|
---|
194 | RTR0PROCESS RTR0ProcHandleSelf(void) {
|
---|
195 | return g_VBoxGuest->_RTR0ProcHandleSelf();
|
---|
196 | }
|
---|
197 | void RTR0Term(void) {
|
---|
198 | g_VBoxGuest->_RTR0Term();
|
---|
199 | }
|
---|
200 | void RTR0TermForced(void) {
|
---|
201 | g_VBoxGuest->_RTR0TermForced();
|
---|
202 | }
|
---|
203 | RTPROCESS RTProcSelf(void) {
|
---|
204 | return g_VBoxGuest->_RTProcSelf();
|
---|
205 | }
|
---|
206 | uint32_t RTSemEventGetResolution(void) {
|
---|
207 | return g_VBoxGuest->_RTSemEventGetResolution();
|
---|
208 | }
|
---|
209 | uint32_t RTSemEventMultiGetResolution(void) {
|
---|
210 | return g_VBoxGuest->_RTSemEventMultiGetResolution();
|
---|
211 | }
|
---|
212 | int RTSemEventMultiWaitEx(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout) {
|
---|
213 | return g_VBoxGuest->_RTSemEventMultiWaitEx(hEventMultiSem, fFlags, uTimeout);
|
---|
214 | }
|
---|
215 | int RTSemEventMultiWaitExDebug(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL) {
|
---|
216 | return g_VBoxGuest->_RTSemEventMultiWaitExDebug(hEventMultiSem, fFlags, uTimeout, uId, pszFile, iLine, pszFunction);
|
---|
217 | }
|
---|
218 | int RTSemEventWaitEx(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout) {
|
---|
219 | return g_VBoxGuest->_RTSemEventWaitEx(hEventSem, fFlags, uTimeout);
|
---|
220 | }
|
---|
221 | int RTSemEventWaitExDebug(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL) {
|
---|
222 | return g_VBoxGuest->_RTSemEventWaitExDebug(hEventSem, fFlags, uTimeout, uId, pszFile, iLine, pszFunction);
|
---|
223 | }
|
---|
224 | bool RTThreadIsInInterrupt(RTTHREAD hThread) {
|
---|
225 | return g_VBoxGuest->_RTThreadIsInInterrupt(hThread);
|
---|
226 | }
|
---|
227 | void RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) {
|
---|
228 | g_VBoxGuest->_RTThreadPreemptDisable(pState);
|
---|
229 | }
|
---|
230 | bool RTThreadPreemptIsEnabled(RTTHREAD hThread) {
|
---|
231 | return g_VBoxGuest->_RTThreadPreemptIsEnabled(hThread);
|
---|
232 | }
|
---|
233 | bool RTThreadPreemptIsPending(RTTHREAD hThread) {
|
---|
234 | return g_VBoxGuest->_RTThreadPreemptIsPending(hThread);
|
---|
235 | }
|
---|
236 | bool RTThreadPreemptIsPendingTrusty(void) {
|
---|
237 | return g_VBoxGuest->_RTThreadPreemptIsPendingTrusty();
|
---|
238 | }
|
---|
239 | bool RTThreadPreemptIsPossible(void) {
|
---|
240 | return g_VBoxGuest->_RTThreadPreemptIsPossible();
|
---|
241 | }
|
---|
242 | void RTThreadPreemptRestore(PRTTHREADPREEMPTSTATE pState) {
|
---|
243 | g_VBoxGuest->_RTThreadPreemptRestore(pState);
|
---|
244 | }
|
---|
245 | uint32_t RTTimerGetSystemGranularity(void) {
|
---|
246 | return g_VBoxGuest->_RTTimerGetSystemGranularity();
|
---|
247 | }
|
---|
248 | int RTTimerReleaseSystemGranularity(uint32_t u32Granted) {
|
---|
249 | return g_VBoxGuest->_RTTimerReleaseSystemGranularity(u32Granted);
|
---|
250 | }
|
---|
251 | int RTTimerRequestSystemGranularity(uint32_t u32Request, uint32_t *pu32Granted) {
|
---|
252 | return g_VBoxGuest->_RTTimerRequestSystemGranularity(u32Request, pu32Granted);
|
---|
253 | }
|
---|
254 | void RTSpinlockAcquire(RTSPINLOCK Spinlock) {
|
---|
255 | g_VBoxGuest->_RTSpinlockAcquire(Spinlock);
|
---|
256 | }
|
---|
257 | void RTSpinlockRelease(RTSPINLOCK Spinlock) {
|
---|
258 | g_VBoxGuest->_RTSpinlockRelease(Spinlock);
|
---|
259 | }
|
---|
260 | void RTSpinlockReleaseNoInts(RTSPINLOCK Spinlock) {
|
---|
261 | g_VBoxGuest->_RTSpinlockReleaseNoInts(Spinlock);
|
---|
262 | }
|
---|
263 | void * RTMemTmpAllocTag(size_t cb, const char *pszTag) {
|
---|
264 | return g_VBoxGuest->_RTMemTmpAllocTag(cb, pszTag);
|
---|
265 | }
|
---|
266 | void RTMemTmpFree(void *pv) {
|
---|
267 | g_VBoxGuest->_RTMemTmpFree(pv);
|
---|
268 | }
|
---|
269 | PRTLOGGER RTLogDefaultInstance(void) {
|
---|
270 | return g_VBoxGuest->_RTLogDefaultInstance();
|
---|
271 | }
|
---|
272 | PRTLOGGER RTLogRelDefaultInstance(void) {
|
---|
273 | return g_VBoxGuest->_RTLogRelDefaultInstance();
|
---|
274 | }
|
---|
275 | int RTErrConvertToErrno(int iErr) {
|
---|
276 | return g_VBoxGuest->_RTErrConvertToErrno(iErr);
|
---|
277 | }
|
---|
278 | int VBoxGuestCommonIOCtl(unsigned iFunction, PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, void *pvData, size_t cbData, size_t *pcbDataReturned) {
|
---|
279 | return g_VBoxGuest->_VBoxGuestCommonIOCtl(iFunction, pDevExt, pSession, pvData, cbData, pcbDataReturned);
|
---|
280 | }
|
---|
281 | int VBoxGuestCreateUserSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION *ppSession) {
|
---|
282 | return g_VBoxGuest->_VBoxGuestCreateUserSession(pDevExt, ppSession);
|
---|
283 | }
|
---|
284 | void VBoxGuestCloseSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession) {
|
---|
285 | g_VBoxGuest->_VBoxGuestCloseSession(pDevExt, pSession);
|
---|
286 | }
|
---|
287 | void * VBoxGuestIDCOpen(uint32_t *pu32Version) {
|
---|
288 | return g_VBoxGuest->_VBoxGuestIDCOpen(pu32Version);
|
---|
289 | }
|
---|
290 | int VBoxGuestIDCClose(void *pvSession) {
|
---|
291 | return g_VBoxGuest->_VBoxGuestIDCClose(pvSession);
|
---|
292 | }
|
---|
293 | int VBoxGuestIDCCall(void *pvSession, unsigned iCmd, void *pvData, size_t cbData, size_t *pcbDataReturned) {
|
---|
294 | return g_VBoxGuest->_VBoxGuestIDCCall(pvSession, iCmd, pvData, cbData, pcbDataReturned);
|
---|
295 | }
|
---|
296 | void RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) {
|
---|
297 | g_VBoxGuest->_RTAssertMsg1Weak(pszExpr, uLine, pszFile, pszFunction);
|
---|
298 | }
|
---|
299 | void RTAssertMsg2Weak(const char *pszFormat, ...) {
|
---|
300 | va_list va;
|
---|
301 | va_start(va, pszFormat);
|
---|
302 | RTAssertMsg2WeakV(pszFormat, va);
|
---|
303 | va_end(va);
|
---|
304 | }
|
---|
305 | void RTAssertMsg2WeakV(const char *pszFormat, va_list va) {
|
---|
306 | g_VBoxGuest->_RTAssertMsg2WeakV(pszFormat, va);
|
---|
307 | }
|
---|
308 | bool RTAssertShouldPanic(void) {
|
---|
309 | return g_VBoxGuest->_RTAssertShouldPanic();
|
---|
310 | }
|
---|
311 | int RTSemFastMutexCreate(PRTSEMFASTMUTEX phFastMtx) {
|
---|
312 | return g_VBoxGuest->_RTSemFastMutexCreate(phFastMtx);
|
---|
313 | }
|
---|
314 | int RTSemFastMutexDestroy(RTSEMFASTMUTEX hFastMtx) {
|
---|
315 | return g_VBoxGuest->_RTSemFastMutexDestroy(hFastMtx);
|
---|
316 | }
|
---|
317 | int RTSemFastMutexRelease(RTSEMFASTMUTEX hFastMtx) {
|
---|
318 | return g_VBoxGuest->_RTSemFastMutexRelease(hFastMtx);
|
---|
319 | }
|
---|
320 | int RTSemFastMutexRequest(RTSEMFASTMUTEX hFastMtx) {
|
---|
321 | return g_VBoxGuest->_RTSemFastMutexRequest(hFastMtx);
|
---|
322 | }
|
---|
323 | int RTSemMutexCreate(PRTSEMMUTEX phFastMtx) {
|
---|
324 | return g_VBoxGuest->_RTSemMutexCreate(phFastMtx);
|
---|
325 | }
|
---|
326 | int RTSemMutexDestroy(RTSEMMUTEX hFastMtx) {
|
---|
327 | return g_VBoxGuest->_RTSemMutexDestroy(hFastMtx);
|
---|
328 | }
|
---|
329 | int RTSemMutexRelease(RTSEMMUTEX hFastMtx) {
|
---|
330 | return g_VBoxGuest->_RTSemMutexRelease(hFastMtx);
|
---|
331 | }
|
---|
332 | int RTSemMutexRequest(RTSEMMUTEX hFastMtx, RTMSINTERVAL cMillies) {
|
---|
333 | return g_VBoxGuest->_RTSemMutexRequest(hFastMtx, cMillies);
|
---|
334 | }
|
---|
335 | int RTHeapSimpleRelocate(RTHEAPSIMPLE hHeap, uintptr_t offDelta) {
|
---|
336 | return g_VBoxGuest->_RTHeapSimpleRelocate(hHeap, offDelta);
|
---|
337 | }
|
---|
338 | int RTHeapOffsetInit(PRTHEAPOFFSET phHeap, void *pvMemory, size_t cbMemory) {
|
---|
339 | return g_VBoxGuest->_RTHeapOffsetInit(phHeap, pvMemory, cbMemory);
|
---|
340 | }
|
---|
341 | int RTHeapSimpleInit(PRTHEAPSIMPLE pHeap, void *pvMemory, size_t cbMemory) {
|
---|
342 | return g_VBoxGuest->_RTHeapSimpleInit(pHeap, pvMemory, cbMemory);
|
---|
343 | }
|
---|
344 | void * RTHeapOffsetAlloc(RTHEAPOFFSET hHeap, size_t cb, size_t cbAlignment) {
|
---|
345 | return g_VBoxGuest->_RTHeapOffsetAlloc(hHeap, cb, cbAlignment);
|
---|
346 | }
|
---|
347 | void * RTHeapSimpleAlloc(RTHEAPSIMPLE Heap, size_t cb, size_t cbAlignment) {
|
---|
348 | return g_VBoxGuest->_RTHeapSimpleAlloc(Heap, cb, cbAlignment);
|
---|
349 | }
|
---|
350 | void RTHeapOffsetFree(RTHEAPOFFSET hHeap, void *pv) {
|
---|
351 | g_VBoxGuest->_RTHeapOffsetFree(hHeap, pv);
|
---|
352 | }
|
---|
353 | void RTHeapSimpleFree(RTHEAPSIMPLE Heap, void *pv) {
|
---|
354 | g_VBoxGuest->_RTHeapSimpleFree(Heap, pv);
|
---|
355 | }
|
---|