VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-haiku-stubs.c@ 98818

Last change on this file since 98818 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.1 KB
Line 
1/* $Id: VBoxGuest-haiku-stubs.c 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VBoxGuest kernel module, Haiku Guest Additions, stubs.
4 */
5
6/*
7 * Copyright (C) 2012-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * The contents of this file may alternatively be used under the terms
26 * of the Common Development and Distribution License Version 1.0
27 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28 * in the VirtualBox distribution, in which case the provisions of the
29 * CDDL are applicable instead of those of the GPL.
30 *
31 * You may elect to license modified versions of this file under the
32 * terms and conditions of either the GPL or the CDDL or both.
33 *
34 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35 */
36
37/*
38 * This code is based on:
39 *
40 * VirtualBox Guest Additions for Haiku.
41 * Copyright (c) 2011 Mike Smith <[email protected]>
42 * François Revol <[email protected]>
43 *
44 * Permission is hereby granted, free of charge, to any person
45 * obtaining a copy of this software and associated documentation
46 * files (the "Software"), to deal in the Software without
47 * restriction, including without limitation the rights to use,
48 * copy, modify, merge, publish, distribute, sublicense, and/or sell
49 * copies of the Software, and to permit persons to whom the
50 * Software is furnished to do so, subject to the following
51 * conditions:
52 *
53 * The above copyright notice and this permission notice shall be
54 * included in all copies or substantial portions of the Software.
55 *
56 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
57 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
58 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
59 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
60 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
61 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
62 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
63 * OTHER DEALINGS IN THE SOFTWARE.
64 */
65
66
67/*
68 * This file provides stubs for calling VBox runtime functions through the vboxguest module.
69 * It should be linked into any driver or module that uses the VBox runtime, except vboxguest
70 * itself (which contains the actual library and therefore doesn't need stubs to call it).
71 */
72
73#include "VBoxGuest-haiku.h"
74#include "VBoxGuestInternal.h"
75#include <VBox/log.h>
76#include <iprt/assert.h>
77#include <iprt/initterm.h>
78#include <iprt/process.h>
79#include <iprt/mem.h>
80#include <iprt/asm.h>
81#include <iprt/mp.h>
82#include <iprt/power.h>
83#include <iprt/thread.h>
84
85// >>> 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{\n %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])
86
87struct vboxguest_module_info *g_VBoxGuest;
88
89RTDECL(size_t) RTLogBackdoorPrintf(const char *pszFormat, ...)
90{
91 va_list args;
92 size_t cb;
93
94 va_start(args, pszFormat);
95 cb = g_VBoxGuest->_RTLogBackdoorPrintf(pszFormat, args);
96 va_end(args);
97
98 return cb;
99}
100RTDECL(size_t) RTLogBackdoorPrintfV(const char *pszFormat, va_list args)
101{
102 return g_VBoxGuest->_RTLogBackdoorPrintfV(pszFormat, args);
103}
104RTDECL(int) RTLogSetDefaultInstanceThread(PRTLOGGER pLogger, uintptr_t uKey)
105{
106 return g_VBoxGuest->_RTLogSetDefaultInstanceThread(pLogger, uKey);
107}
108RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv)
109{
110 return g_VBoxGuest->_RTMemAllocExTag(cb, cbAlignment, fFlags, pszTag, ppv);
111}
112RTR0DECL(void*) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb)
113{
114 return g_VBoxGuest->_RTMemContAlloc(pPhys, cb);
115}
116RTR0DECL(void) RTMemContFree(void *pv, size_t cb)
117{
118 g_VBoxGuest->_RTMemContFree(pv, cb);
119}
120RTDECL(void) RTMemFreeEx(void *pv, size_t cb)
121{
122 g_VBoxGuest->_RTMemFreeEx(pv, cb);
123}
124RTDECL(bool) RTMpIsCpuPossible(RTCPUID idCpu)
125{
126 return g_VBoxGuest->_RTMpIsCpuPossible(idCpu);
127}
128RTDECL(int) RTMpNotificationDeregister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser)
129{
130 return g_VBoxGuest->_RTMpNotificationDeregister(pfnCallback, pvUser);
131}
132RTDECL(int) RTMpNotificationRegister(PFNRTMPNOTIFICATION pfnCallback, void *pvUser)
133{
134 return g_VBoxGuest->_RTMpNotificationRegister(pfnCallback, pvUser);
135}
136RTDECL(int) RTMpOnAll(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
137{
138 return g_VBoxGuest->_RTMpOnAll(pfnWorker, pvUser1, pvUser2);
139}
140RTDECL(int) RTMpOnOthers(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
141{
142 return g_VBoxGuest->_RTMpOnOthers(pfnWorker, pvUser1, pvUser2);
143}
144RTDECL(int) RTMpOnSpecific(RTCPUID idCpu, PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
145{
146 return g_VBoxGuest->_RTMpOnSpecific(idCpu, pfnWorker, pvUser1, pvUser2);
147}
148RTDECL(int) RTPowerNotificationDeregister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser)
149{
150 return g_VBoxGuest->_RTPowerNotificationDeregister(pfnCallback, pvUser);
151}
152RTDECL(int) RTPowerNotificationRegister(PFNRTPOWERNOTIFICATION pfnCallback, void *pvUser)
153{
154 return g_VBoxGuest->_RTPowerNotificationRegister(pfnCallback, pvUser);
155}
156RTDECL(int) RTPowerSignalEvent(RTPOWEREVENT enmEvent)
157{
158 return g_VBoxGuest->_RTPowerSignalEvent(enmEvent);
159}
160RTR0DECL(void) RTR0AssertPanicSystem(void)
161{
162 g_VBoxGuest->_RTR0AssertPanicSystem();
163}
164RTR0DECL(int) RTR0Init(unsigned fReserved)
165{
166 return g_VBoxGuest->_RTR0Init(fReserved);
167}
168RTR0DECL(void*) RTR0MemObjAddress(RTR0MEMOBJ MemObj)
169{
170 return g_VBoxGuest->_RTR0MemObjAddress(MemObj);
171}
172RTR0DECL(RTR3PTR) RTR0MemObjAddressR3(RTR0MEMOBJ MemObj)
173{
174 return g_VBoxGuest->_RTR0MemObjAddressR3(MemObj);
175}
176RTR0DECL(int) RTR0MemObjAllocContTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
177{
178 return g_VBoxGuest->_RTR0MemObjAllocContTag(pMemObj, cb, fExecutable, pszTag);
179}
180RTR0DECL(int) RTR0MemObjAllocLowTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
181{
182 return g_VBoxGuest->_RTR0MemObjAllocLowTag(pMemObj, cb, fExecutable, pszTag);
183}
184RTR0DECL(int) RTR0MemObjAllocPageTag(PRTR0MEMOBJ pMemObj, size_t cb, bool fExecutable, const char *pszTag)
185{
186 return g_VBoxGuest->_RTR0MemObjAllocPageTag(pMemObj, cb, fExecutable, pszTag);
187}
188RTR0DECL(int) RTR0MemObjAllocPhysExTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment, const char *pszTag)
189{
190 return g_VBoxGuest->_RTR0MemObjAllocPhysExTag(pMemObj, cb, PhysHighest, uAlignment, pszTag);
191}
192RTR0DECL(int) RTR0MemObjAllocPhysNCTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag)
193{
194 return g_VBoxGuest->_RTR0MemObjAllocPhysNCTag(pMemObj, cb, PhysHighest, pszTag);
195}
196RTR0DECL(int) RTR0MemObjAllocPhysTag(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest, const char *pszTag)
197{
198 return g_VBoxGuest->_RTR0MemObjAllocPhysTag(pMemObj, cb, PhysHighest, pszTag);
199}
200RTR0DECL(int) RTR0MemObjEnterPhysTag(PRTR0MEMOBJ pMemObj, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, const char *pszTag)
201{
202 return g_VBoxGuest->_RTR0MemObjEnterPhysTag(pMemObj, Phys, cb, uCachePolicy, pszTag);
203}
204RTR0DECL(int) RTR0MemObjFree(RTR0MEMOBJ MemObj, bool fFreeMappings)
205{
206 return g_VBoxGuest->_RTR0MemObjFree(MemObj, fFreeMappings);
207}
208RTR0DECL(RTHCPHYS) RTR0MemObjGetPagePhysAddr(RTR0MEMOBJ MemObj, size_t iPage)
209{
210 return g_VBoxGuest->_RTR0MemObjGetPagePhysAddr(MemObj, iPage);
211}
212RTR0DECL(bool) RTR0MemObjIsMapping(RTR0MEMOBJ MemObj)
213{
214 return g_VBoxGuest->_RTR0MemObjIsMapping(MemObj);
215}
216RTR0DECL(int) RTR0MemObjLockKernelTag(PRTR0MEMOBJ pMemObj, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
217{
218 return g_VBoxGuest->_RTR0MemObjLockKernelTag(pMemObj, pv, cb, fAccess, pszTag);
219}
220RTR0DECL(int) RTR0MemObjLockUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process, const char *pszTag)
221{
222 return g_VBoxGuest->_RTR0MemObjLockUserTag(pMemObj, R3Ptr, cb, fAccess, R0Process, pszTag);
223}
224RTR0DECL(int) RTR0MemObjMapKernelExTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, size_t offSub, size_t cbSub, const char *pszTag)
225{
226 return g_VBoxGuest->_RTR0MemObjMapKernelExTag(pMemObj, MemObjToMap, pvFixed, uAlignment, fProt, offSub, cbSub, pszTag);
227}
228RTR0DECL(int) RTR0MemObjMapKernelTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, const char *pszTag)
229{
230 return g_VBoxGuest->_RTR0MemObjMapKernelTag(pMemObj, MemObjToMap, pvFixed, uAlignment, fProt, pszTag);
231}
232RTR0DECL(int) RTR0MemObjMapUserTag(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process, const char *pszTag)
233{
234 return g_VBoxGuest->_RTR0MemObjMapUserTag(pMemObj, MemObjToMap, R3PtrFixed, uAlignment, fProt, R0Process, pszTag);
235}
236RTR0DECL(int) RTR0MemObjProtect(RTR0MEMOBJ hMemObj, size_t offSub, size_t cbSub, uint32_t fProt)
237{
238 return g_VBoxGuest->_RTR0MemObjProtect(hMemObj, offSub, cbSub, fProt);
239}
240RTR0DECL(int) RTR0MemObjReserveKernelTag(PRTR0MEMOBJ pMemObj, void *pvFixed, size_t cb, size_t uAlignment, const char *pszTag)
241{
242 return g_VBoxGuest->_RTR0MemObjReserveKernelTag(pMemObj, pvFixed, cb, uAlignment, pszTag);
243}
244RTR0DECL(int) RTR0MemObjReserveUserTag(PRTR0MEMOBJ pMemObj, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process, const char *pszTag)
245{
246 return g_VBoxGuest->_RTR0MemObjReserveUserTag(pMemObj, R3PtrFixed, cb, uAlignment, R0Process, pszTag);
247}
248RTR0DECL(size_t) RTR0MemObjSize(RTR0MEMOBJ MemObj)
249{
250 return g_VBoxGuest->_RTR0MemObjSize(MemObj);
251}
252RTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void)
253{
254 return g_VBoxGuest->_RTR0ProcHandleSelf();
255}
256RTR0DECL(void) RTR0Term(void)
257{
258 g_VBoxGuest->_RTR0Term();
259}
260RTR0DECL(void) RTR0TermForced(void)
261{
262 g_VBoxGuest->_RTR0TermForced();
263}
264RTDECL(RTPROCESS) RTProcSelf(void)
265{
266 return g_VBoxGuest->_RTProcSelf();
267}
268RTDECL(uint32_t) RTSemEventGetResolution(void)
269{
270 return g_VBoxGuest->_RTSemEventGetResolution();
271}
272RTDECL(uint32_t) RTSemEventMultiGetResolution(void)
273{
274 return g_VBoxGuest->_RTSemEventMultiGetResolution();
275}
276RTDECL(int) RTSemEventMultiWaitEx(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout)
277{
278 return g_VBoxGuest->_RTSemEventMultiWaitEx(hEventMultiSem, fFlags, uTimeout);
279}
280RTDECL(int) RTSemEventMultiWaitExDebug(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL)
281{
282 return g_VBoxGuest->_RTSemEventMultiWaitExDebug(hEventMultiSem, fFlags, uTimeout, uId, pszFile, iLine, pszFunction);
283}
284RTDECL(int) RTSemEventWaitEx(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout)
285{
286 return g_VBoxGuest->_RTSemEventWaitEx(hEventSem, fFlags, uTimeout);
287}
288RTDECL(int) RTSemEventWaitExDebug(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout, RTHCUINTPTR uId, RT_SRC_POS_DECL)
289{
290 return g_VBoxGuest->_RTSemEventWaitExDebug(hEventSem, fFlags, uTimeout, uId, pszFile, iLine, pszFunction);
291}
292RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread)
293{
294 return g_VBoxGuest->_RTThreadIsInInterrupt(hThread);
295}
296RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState)
297{
298 g_VBoxGuest->_RTThreadPreemptDisable(pState);
299}
300RTDECL(bool) RTThreadPreemptIsEnabled(RTTHREAD hThread)
301{
302 return g_VBoxGuest->_RTThreadPreemptIsEnabled(hThread);
303}
304RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread)
305{
306 return g_VBoxGuest->_RTThreadPreemptIsPending(hThread);
307}
308RTDECL(bool) RTThreadPreemptIsPendingTrusty(void)
309{
310 return g_VBoxGuest->_RTThreadPreemptIsPendingTrusty();
311}
312RTDECL(bool) RTThreadPreemptIsPossible(void)
313{
314 return g_VBoxGuest->_RTThreadPreemptIsPossible();
315}
316RTDECL(void) RTThreadPreemptRestore(PRTTHREADPREEMPTSTATE pState)
317{
318 g_VBoxGuest->_RTThreadPreemptRestore(pState);
319}
320RTDECL(uint32_t) RTTimerGetSystemGranularity(void)
321{
322 return g_VBoxGuest->_RTTimerGetSystemGranularity();
323}
324RTDECL(int) RTTimerReleaseSystemGranularity(uint32_t u32Granted)
325{
326 return g_VBoxGuest->_RTTimerReleaseSystemGranularity(u32Granted);
327}
328RTDECL(int) RTTimerRequestSystemGranularity(uint32_t u32Request, uint32_t *pu32Granted)
329{
330 return g_VBoxGuest->_RTTimerRequestSystemGranularity(u32Request, pu32Granted);
331}
332RTDECL(void) RTSpinlockAcquire(RTSPINLOCK Spinlock)
333{
334 g_VBoxGuest->_RTSpinlockAcquire(Spinlock);
335}
336RTDECL(void) RTSpinlockRelease(RTSPINLOCK Spinlock)
337{
338 g_VBoxGuest->_RTSpinlockRelease(Spinlock);
339}
340RTDECL(void*) RTMemTmpAllocTag(size_t cb, const char *pszTag)
341{
342 return g_VBoxGuest->_RTMemTmpAllocTag(cb, pszTag);
343}
344RTDECL(void) RTMemTmpFree(void *pv)
345{
346 g_VBoxGuest->_RTMemTmpFree(pv);
347}
348RTDECL(PRTLOGGER) RTLogDefaultInstance(void)
349{
350 return g_VBoxGuest->_RTLogDefaultInstance();
351}
352RTDECL(PRTLOGGER) RTLogDefaultInstanceEx(uint32_t fFlagsAndGroup)
353{
354 return g_VBoxGuest->_RTLogDefaultInstanceEx(fFlagsAndGroup);
355}
356RTDECL(PRTLOGGER) RTLogRelGetDefaultInstance(void)
357{
358 return g_VBoxGuest->_RTLogRelGetDefaultInstance();
359}
360RTDECL(PRTLOGGER) RTLogRelGetDefaultInstance(uint32_t fFlags, uint32_t iGroup)
361{
362 return g_VBoxGuest->_RTLogRelGetDefaultInstanceEx(fFlags, iGroup);
363}
364RTDECL(int) RTErrConvertToErrno(int iErr)
365{
366 return g_VBoxGuest->_RTErrConvertToErrno(iErr);
367}
368int VGDrvCommonIoCtl(unsigned iFunction, PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession, void *pvData, size_t cbData, size_t *pcbDataReturned)
369{
370 return g_VBoxGuest->_VGDrvCommonIoCtl(iFunction, pDevExt, pSession, pvData, cbData, pcbDataReturned);
371}
372int VGDrvCommonCreateUserSession(PVBOXGUESTDEVEXT pDevExt, uint32_t fRequestor, PVBOXGUESTSESSION *ppSession)
373{
374 return g_VBoxGuest->_VGDrvCommonCreateUserSession(pDevExt, fRequestor, ppSession);
375}
376void VGDrvCommonCloseSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession)
377{
378 g_VBoxGuest->_VGDrvCommonCloseSession(pDevExt, pSession);
379}
380void* VBoxGuestIDCOpen(uint32_t *pu32Version)
381{
382 return g_VBoxGuest->_VBoxGuestIDCOpen(pu32Version);
383}
384int VBoxGuestIDCClose(void *pvSession)
385{
386 return g_VBoxGuest->_VBoxGuestIDCClose(pvSession);
387}
388int VBoxGuestIDCCall(void *pvSession, unsigned iCmd, void *pvData, size_t cbData, size_t *pcbDataReturned)
389{
390 return g_VBoxGuest->_VBoxGuestIDCCall(pvSession, iCmd, pvData, cbData, pcbDataReturned);
391}
392RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
393{
394 g_VBoxGuest->_RTAssertMsg1Weak(pszExpr, uLine, pszFile, pszFunction);
395}
396RTDECL(void) RTAssertMsg2Weak(const char *pszFormat, ...)
397{
398 va_list va;
399 va_start(va, pszFormat);
400 RTAssertMsg2WeakV(pszFormat, va);
401 va_end(va);
402}
403RTDECL(void) RTAssertMsg2WeakV(const char *pszFormat, va_list va)
404{
405 g_VBoxGuest->_RTAssertMsg2WeakV(pszFormat, va);
406}
407RTDECL(bool) RTAssertShouldPanic(void)
408{
409 return g_VBoxGuest->_RTAssertShouldPanic();
410}
411RTDECL(int) RTSemFastMutexCreate(PRTSEMFASTMUTEX phFastMtx)
412{
413 return g_VBoxGuest->_RTSemFastMutexCreate(phFastMtx);
414}
415RTDECL(int) RTSemFastMutexDestroy(RTSEMFASTMUTEX hFastMtx)
416{
417 return g_VBoxGuest->_RTSemFastMutexDestroy(hFastMtx);
418}
419RTDECL(int) RTSemFastMutexRelease(RTSEMFASTMUTEX hFastMtx)
420{
421 return g_VBoxGuest->_RTSemFastMutexRelease(hFastMtx);
422}
423RTDECL(int) RTSemFastMutexRequest(RTSEMFASTMUTEX hFastMtx)
424{
425 return g_VBoxGuest->_RTSemFastMutexRequest(hFastMtx);
426}
427RTDECL(int) RTSemMutexCreate(PRTSEMMUTEX phFastMtx)
428{
429 return g_VBoxGuest->_RTSemMutexCreate(phFastMtx);
430}
431RTDECL(int) RTSemMutexDestroy(RTSEMMUTEX hFastMtx)
432{
433 return g_VBoxGuest->_RTSemMutexDestroy(hFastMtx);
434}
435RTDECL(int) RTSemMutexRelease(RTSEMMUTEX hFastMtx)
436{
437 return g_VBoxGuest->_RTSemMutexRelease(hFastMtx);
438}
439RTDECL(int) RTSemMutexRequest(RTSEMMUTEX hFastMtx, RTMSINTERVAL cMillies)
440{
441 return g_VBoxGuest->_RTSemMutexRequest(hFastMtx, cMillies);
442}
443int RTHeapSimpleRelocate(RTHEAPSIMPLE hHeap, uintptr_t offDelta)
444{
445 return g_VBoxGuest->_RTHeapSimpleRelocate(hHeap, offDelta);
446}
447int RTHeapOffsetInit(PRTHEAPOFFSET phHeap, void *pvMemory, size_t cbMemory)
448{
449 return g_VBoxGuest->_RTHeapOffsetInit(phHeap, pvMemory, cbMemory);
450}
451int RTHeapSimpleInit(PRTHEAPSIMPLE pHeap, void *pvMemory, size_t cbMemory)
452{
453 return g_VBoxGuest->_RTHeapSimpleInit(pHeap, pvMemory, cbMemory);
454}
455void* RTHeapOffsetAlloc(RTHEAPOFFSET hHeap, size_t cb, size_t cbAlignment)
456{
457 return g_VBoxGuest->_RTHeapOffsetAlloc(hHeap, cb, cbAlignment);
458}
459void* RTHeapSimpleAlloc(RTHEAPSIMPLE Heap, size_t cb, size_t cbAlignment)
460{
461 return g_VBoxGuest->_RTHeapSimpleAlloc(Heap, cb, cbAlignment);
462}
463void RTHeapOffsetFree(RTHEAPOFFSET hHeap, void *pv)
464{
465 g_VBoxGuest->_RTHeapOffsetFree(hHeap, pv);
466}
467void RTHeapSimpleFree(RTHEAPSIMPLE Heap, void *pv)
468{
469 g_VBoxGuest->_RTHeapSimpleFree(Heap, pv);
470}
471
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette