VirtualBox

Changeset 21337 in vbox


Ignore:
Timestamp:
Jul 7, 2009 2:58:27 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,HostDrv,AddDrv: Export public IPRT symbols for the linux kernel (pain).

Location:
trunk/src/VBox
Files:
1 added
167 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r21260 r21337  
    216216            {
    217217#ifdef VBOX_WITH_HGCM
    218                 rc = vboxGuestInitFilterMask(pDevExt, VMMDEV_EVENT_HGCM | fEvents);
    219 #else
     218                fEvents |= VMMDEV_EVENT_HGCM;
     219#endif
    220220                rc = vboxGuestInitFilterMask(pDevExt, fEvents);
    221 #endif
    222221                if (RT_SUCCESS(rc))
    223222                {
  • trunk/src/VBox/Additions/common/VBoxGuest/linux/Makefile

    r21137 r21337  
    8383        r0drv/linux/initterm-r0drv-linux.o \
    8484        r0drv/linux/memobj-r0drv-linux.o \
     85        r0drv/linux/memuserkernel-r0drv-linux.o \
    8586        r0drv/linux/mp-r0drv-linux.o \
    8687        r0drv/linux/mpnotification-r0drv-linux.o \
  • trunk/src/VBox/Additions/common/VBoxGuest/linux/files_vboxguest

    r21263 r21337  
    7474    ${PATH_ROOT}/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp=>VMMDev.c \
    7575    ${PATH_ROOT}/src/VBox/Runtime/include/internal/initterm.h=>include/internal/initterm.h \
     76    ${PATH_ROOT}/src/VBox/Runtime/include/internal/iprt.h=>include/internal/iprt.h \
    7677    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
    7778    ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \
     
    113114    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c=>r0drv/linux/initterm-r0drv-linux.c \
    114115    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c=>r0drv/linux/memobj-r0drv-linux.c \
     116    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c=>r0drv/linux/memuserkernel-r0drv-linux.c \
    115117    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c=>r0drv/linux/mp-r0drv-linux.c \
    116118    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/mpnotification-r0drv-linux.c=>r0drv/linux/mpnotification-r0drv-linux.c \
  • trunk/src/VBox/Additions/linux/module/files_vboxadd

    r21326 r21337  
    6060    ${PATH_ROOT}/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestLog.h=>VBoxGuestLog.h \
    6161    ${PATH_ROOT}/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp=>VMMDev.c \
     62    ${PATH_ROOT}/src/VBox/Runtime/include/internal/iprt.h=>include/internal/iprt.h \
    6263    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
    6364    ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \
  • trunk/src/VBox/Additions/linux/sharedfolders/files_vboxvfs

    r21325 r21337  
    7272    ${PATH_ROOT}/src/VBox/Runtime/common/math/gcc/udivdi3.c=>udivdi3.c \
    7373    ${PATH_ROOT}/src/VBox/Runtime/common/math/gcc/umoddi3.c=>umoddi3.c \
     74    ${PATH_ROOT}/src/VBox/Runtime/include/internal/iprt.h=>include/internal/iprt.h \
    7475    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
    7576    ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \
  • trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv

    r21285 r21337  
    9191    ${PATH_ROOT}/src/VBox/Runtime/common/string/strtonum.cpp=>common/string/strtonum.c \
    9292    ${PATH_ROOT}/src/VBox/Runtime/include/internal/initterm.h=>include/internal/initterm.h \
     93    ${PATH_ROOT}/src/VBox/Runtime/include/internal/iprt.h=>include/internal/iprt.h \
    9394    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
    9495    ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/files_vboxnetadp

    r19013 r21337  
    9292    ${PATH_ROOT}/src/VBox/Runtime/common/string/strtonum.cpp=>common/string/strtonum.c \
    9393    ${PATH_ROOT}/src/VBox/Runtime/include/internal/initterm.h=>include/internal/initterm.h \
     94    ${PATH_ROOT}/src/VBox/Runtime/include/internal/iprt.h=>include/internal/iprt.h \
    9495    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
    9596    ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/files_vboxnetflt

    r14430 r21337  
    9797    ${PATH_ROOT}/src/VBox/Runtime/common/string/strtonum.cpp=>common/string/strtonum.c \
    9898    ${PATH_ROOT}/src/VBox/Runtime/include/internal/initterm.h=>include/internal/initterm.h \
     99    ${PATH_ROOT}/src/VBox/Runtime/include/internal/iprt.h=>include/internal/iprt.h \
    99100    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
    100101    ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \
  • trunk/src/VBox/Runtime/VBox/logbackdoor.cpp

    r21227 r21337  
    3333*******************************************************************************/
    3434#include <VBox/log.h>
     35#include "internal/iprt.h"
    3536#include <iprt/asm.h>
    3637#include <iprt/string.h>
     
    5859}
    5960
     61RT_EXPORT_SYMBOL(RTLogBackdoorPrintf);
     62
    6063
    6164RTDECL(size_t) RTLogBackdoorPrintfV(const char *pszFormat, va_list args)
     
    6366    return RTLogFormatV(rtLogBackdoorOutput, NULL, pszFormat, args);
    6467}
     68
     69RT_EXPORT_SYMBOL(RTLogBackdoorPrintfV);
    6570
    6671
     
    7681
    7782
    78 #ifdef IN_GUEST_R3
    79 
    8083RTDECL(void) RTLogWriteUser(const char *pch, size_t cb)
    8184{
     85#ifdef IN_GUEST_R3
    8286    VbglR3WriteLog(pch, cb);
    83 }
    84 
    8587#else  /* !IN_GUEST_R3 */
    86 
    87 RTDECL(void) RTLogWriteUser(const char *pch, size_t cb)
    88 {
    8988    const uint8_t *pau8 = (const uint8_t *)pch;
    9089    if (cb > 1)
     
    9291    else if (cb)
    9392        ASMOutU8(RTLOG_DEBUG_PORT, *pau8);
     93#endif /* !IN_GUEST_R3 */
    9494}
    9595
    96 # if defined(RT_OS_LINUX) && defined(IN_MODULE)
    97 /*
    98  * When we build this in the Linux kernel module, we wish to make the
    99  * symbols available to other modules as well.
    100  */
    101 #  include "the-linux-kernel.h"
    102 EXPORT_SYMBOL(RTLogBackdoorPrintf);
    103 EXPORT_SYMBOL(RTLogBackdoorPrintfV);
    104 EXPORT_SYMBOL(RTLogWriteUser);
    105 # endif /* RT_OS_LINUX && IN_MODULE */
    106 #endif /* !IN_GUEST_R3 */
     96RT_EXPORT_SYMBOL(RTLogWriteUser);
    10797
  • trunk/src/VBox/Runtime/common/alloc/alloc.cpp

    r11019 r21337  
    3333*   Header Files                                                               *
    3434*******************************************************************************/
    35 #include <iprt/alloc.h>
     35#include <iprt/mem.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739#include <iprt/string.h>
     
    5355    return pvDst;
    5456}
     57RT_EXPORT_SYMBOL(RTMemDup);
    5558
    5659
     
    7578    return pvDst;
    7679}
     80RT_EXPORT_SYMBOL(RTMemDupEx);
    7781
    7882
  • trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp

    r21292 r21337  
    3434*******************************************************************************/
    3535#define LOG_GROUP RTLOGGROUP_DEFAULT
    36 
    37 #if defined(IN_GUEST_R0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
    38 /* should come first to prevent warnings about duplicate definitions of PAGE_* */
    39 # include "the-linux-kernel.h"
    40 #endif
    41 
    4236#include <iprt/heap.h>
     37#include "internal/iprt.h"
     38
    4339#include <iprt/assert.h>
    4440#include <iprt/asm.h>
     
    349345    return VINF_SUCCESS;
    350346}
     347RT_EXPORT_SYMBOL(RTHeapSimpleInit);
    351348
    352349
     
    397394    return NULL;
    398395}
     396RT_EXPORT_SYMBOL(RTHeapSimpleAlloc);
    399397
    400398
     
    445443    return NULL;
    446444}
     445RT_EXPORT_SYMBOL(RTHeapSimpleAllocZ);
    447446
    448447
     
    665664    rtHeapSimpleFreeBlock(pHeapInt, pBlock);
    666665}
     666RT_EXPORT_SYMBOL(RTHeapSimpleFree);
    667667
    668668
     
    860860    return cbBlock;
    861861}
     862RT_EXPORT_SYMBOL(RTHeapSimpleSize);
    862863
    863864
     
    885886    return pHeapInt->cbHeap;
    886887}
     888RT_EXPORT_SYMBOL(RTHeapSimpleGetHeapSize);
    887889
    888890
     
    909911    return pHeapInt->cbFree;
    910912}
     913RT_EXPORT_SYMBOL(RTHeapSimpleGetFreeSize);
    911914
    912915
     
    941944    pfnPrintf("**** Done dumping Heap %p ****\n", Heap);
    942945}
    943 
    944 
    945 #if defined(IN_GUEST_R0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
    946 EXPORT_SYMBOL(RTHeapSimpleAlloc);
    947 EXPORT_SYMBOL(RTHeapSimpleInit);
    948 EXPORT_SYMBOL(RTHeapSimpleFree);
    949 #endif
     946RT_EXPORT_SYMBOL(RTHeapSimpleDump);
     947
  • trunk/src/VBox/Runtime/common/checksum/crc32.cpp

    r8245 r21337  
    8080#else
    8181# include <iprt/crc32.h>
     82# include "internal/iprt.h"
    8283#endif
    8384
     
    169170    return uCRC32 ^ ~0U;
    170171}
     172RT_EXPORT_SYMBOL(RTCrc32);
    171173
    172174
     
    180182    return ~0U;
    181183}
     184RT_EXPORT_SYMBOL(RTCrc32Start);
    182185
    183186
     
    197200    return uCRC32;
    198201}
     202RT_EXPORT_SYMBOL(RTCrc32Process);
    199203
    200204
     
    209213    return uCRC32 ^ ~0U;
    210214}
    211 
     215RT_EXPORT_SYMBOL(RTCrc32Finish);
     216
  • trunk/src/VBox/Runtime/common/checksum/crc64.cpp

    r8245 r21337  
    3434 */
    3535
     36
    3637/*******************************************************************************
    3738*   Header Files                                                               *
    3839*******************************************************************************/
    3940#include <iprt/crc64.h>
     41#include "internal/iprt.h"
    4042
    4143
     
    168170    return uCRC64;
    169171}
     172RT_EXPORT_SYMBOL(RTCrc64);
    170173
    171174
     
    179182    return 0ULL;
    180183}
     184RT_EXPORT_SYMBOL(RTCrc64Start);
    181185
    182186
     
    196200    return uCRC64;
    197201}
     202RT_EXPORT_SYMBOL(RTCrc64Process);
    198203
    199204
     
    208213    return uCRC64;
    209214}
    210 
     215RT_EXPORT_SYMBOL(RTCrc64Finish);
     216
  • trunk/src/VBox/Runtime/common/checksum/ipv4.cpp

    r12821 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/net.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/asm.h>
    3639#include <iprt/assert.h>
     
    8386    return (uint16_t)~u32Sum;
    8487}
     88RT_EXPORT_SYMBOL(RTNetIPv4HdrChecksum);
    8589
    8690
     
    124128    return true;
    125129}
     130RT_EXPORT_SYMBOL(RTNetIPv4IsHdrValid);
    126131
    127132
     
    159164    return rtNetIPv4PseudoChecksum(pIpHdr);
    160165}
     166RT_EXPORT_SYMBOL(RTNetIPv4PseudoChecksum);
    161167
    162168
     
    184190    return u32Sum;
    185191}
     192RT_EXPORT_SYMBOL(RTNetIPv4PseudoChecksumBits);
    186193
    187194
     
    214221    return rtNetIPv4AddUDPChecksum(pUdpHdr, u32Sum);
    215222}
     223RT_EXPORT_SYMBOL(RTNetIPv4AddUDPChecksum);
    216224
    217225
     
    275283    return rtNetIPv4AddTCPChecksum(pTcpHdr, u32Sum);
    276284}
     285RT_EXPORT_SYMBOL(RTNetIPv4AddTCPChecksum);
    277286
    278287
     
    343352    return rtNetIPv4AddDataChecksum(pvData, cbData, u32Sum, pfOdd);
    344353}
     354RT_EXPORT_SYMBOL(RTNetIPv4AddDataChecksum);
    345355
    346356
     
    370380    return rtNetIPv4FinalizeChecksum(u32Sum);
    371381}
     382RT_EXPORT_SYMBOL(RTNetIPv4FinalizeChecksum);
    372383
    373384
     
    391402    return rtNetIPv4FinalizeChecksum(u32Sum);
    392403}
     404RT_EXPORT_SYMBOL(RTNetIPv4UDPChecksum);
    393405
    394406
     
    431443    return rtNetIPv4IsUDPSizeValid(pIpHdr, pUdpHdr, cbPktMax);
    432444}
     445RT_EXPORT_SYMBOL(RTNetIPv4IsUDPSizeValid);
    433446
    434447
     
    456469    return true;
    457470}
     471RT_EXPORT_SYMBOL(RTNetIPv4IsUDPValid);
    458472
    459473
     
    481495    return rtNetIPv4FinalizeChecksum(u32Sum);
    482496}
     497RT_EXPORT_SYMBOL(RTNetIPv4TCPChecksum);
    483498
    484499
     
    526541    return rtNetIPv4IsTCPSizeValid(pIpHdr, pTcpHdr, cbHdrMax, cbPktMax);
    527542}
     543RT_EXPORT_SYMBOL(RTNetIPv4IsTCPSizeValid);
    528544
    529545
     
    551567    return true;
    552568}
     569RT_EXPORT_SYMBOL(RTNetIPv4IsTCPValid);
    553570
    554571
     
    679696    return true;
    680697}
    681 
     698RT_EXPORT_SYMBOL(RTNetIPv4IsDHCPValid);
     699
  • trunk/src/VBox/Runtime/common/checksum/md5.cpp

    r14048 r21337  
    5050 */
    5151
     52/*******************************************************************************
     53*   Header Files                                                               *
     54*******************************************************************************/
     55#include <iprt/md5.h>
     56#include "internal/iprt.h"
     57
    5258#include <iprt/string.h>                 /* for memcpy() */
    53 #include <iprt/md5.h>
    54 
     59
     60
     61/*******************************************************************************
     62*   Defined Constants And Macros                                               *
     63*******************************************************************************/
    5564#ifdef sgi
    5665#define HIGHFIRST
     
    97106    ctx->bits[1] = 0;
    98107}
     108RT_EXPORT_SYMBOL(RTMd5Init);
     109
    99110
    100111/*
     
    146157    memcpy(ctx->in, buf, len);
    147158}
     159RT_EXPORT_SYMBOL(RTMd5Update);
     160
    148161
    149162/*
     
    191204    memset(ctx, 0, sizeof(ctx));        /* In case it's sensitive */
    192205}
     206RT_EXPORT_SYMBOL(RTMd5Final);
    193207
    194208
  • trunk/src/VBox/Runtime/common/dbg/dbg.cpp

    r20800 r21337  
    3333*******************************************************************************/
    3434#include <iprt/dbg.h>
     35#include "internal/iprt.h"
     36
    3537#include <iprt/mem.h>
    3638
     
    4648    return (PRTDBGSYMBOL)RTMemAllocZ(sizeof(RTDBGSYMBOL));
    4749}
     50RT_EXPORT_SYMBOL(RTDbgSymbolAlloc);
    4851
    4952
     
    5962    return (PRTDBGSYMBOL)RTMemDup(pSymInfo, sizeof(*pSymInfo));
    6063}
     64RT_EXPORT_SYMBOL(RTDbgSymbolDup);
    6165
    6266
     
    7074    RTMemFree(pSymInfo);
    7175}
     76RT_EXPORT_SYMBOL(RTDbgSymbolFree);
    7277
    7378
     
    8186    return (PRTDBGLINE)RTMemAllocZ(sizeof(RTDBGLINE));
    8287}
     88RT_EXPORT_SYMBOL(RTDbgLineAlloc);
    8389
    8490
     
    94100    return (PRTDBGLINE)RTMemDup(pLine, sizeof(*pLine));
    95101}
     102RT_EXPORT_SYMBOL(RTDbgLineDup);
    96103
    97104
     
    105112    RTMemFree(pLine);
    106113}
     114RT_EXPORT_SYMBOL(RTDbgLineFree);
    107115
    108116
  • trunk/src/VBox/Runtime/common/dbg/dbgas.cpp

    r21110 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/dbg.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/asm.h>
    3639#include <iprt/avl.h>
     
    224227    return rc;
    225228}
     229RT_EXPORT_SYMBOL(RTDbgAsCreate);
    226230
    227231
     
    251255    return rc;
    252256}
     257RT_EXPORT_SYMBOL(RTDbgAsCreateV);
    253258
    254259
     
    272277    return rc;
    273278}
     279RT_EXPORT_SYMBOL(RTDbgAsCreateF);
    274280
    275281
     
    351357    return ASMAtomicIncU32(&pDbgAs->cRefs);
    352358}
     359RT_EXPORT_SYMBOL(RTDbgAsRetain);
    353360
    354361
     
    380387    return cRefs;
    381388}
     389RT_EXPORT_SYMBOL(RTDbgAsRelease);
    382390
    383391
     
    398406    return pDbgAs->szName;
    399407}
     408RT_EXPORT_SYMBOL(RTDbgAsName);
    400409
    401410
     
    416425    return pDbgAs->FirstAddr;
    417426}
     427RT_EXPORT_SYMBOL(RTDbgAsFirstAddr);
    418428
    419429
     
    434444    return pDbgAs->LastAddr;
    435445}
     446RT_EXPORT_SYMBOL(RTDbgAsLastAddr);
    436447
    437448/**
     
    453464    return pDbgAs->cModules;
    454465}
     466RT_EXPORT_SYMBOL(RTDbgAsModuleCount);
    455467
    456468
     
    635647    return rc;
    636648}
     649RT_EXPORT_SYMBOL(RTDbgAsModuleLink);
    637650
    638651
     
    683696    return rc;
    684697}
     698RT_EXPORT_SYMBOL(RTDbgAsModuleLinkSeg);
    685699
    686700
     
    839853    return VINF_SUCCESS;
    840854}
     855RT_EXPORT_SYMBOL(RTDbgAsModuleUnlink);
    841856
    842857
     
    874889    return VINF_SUCCESS;
    875890}
     891RT_EXPORT_SYMBOL(RTDbgAsModuleUnlinkByAddr);
    876892
    877893
     
    914930    return hMod;
    915931}
     932RT_EXPORT_SYMBOL(RTDbgAsModuleByIndex);
    916933
    917934
     
    965982    return VINF_SUCCESS;
    966983}
     984RT_EXPORT_SYMBOL(RTDbgAsModuleByAddr);
    967985
    968986
     
    10191037    return VINF_SUCCESS;
    10201038}
     1039RT_EXPORT_SYMBOL(RTDbgAsModuleByName);
    10211040
    10221041
     
    11691188    return rc;
    11701189}
     1190RT_EXPORT_SYMBOL(RTDbgAsSymbolAdd);
    11711191
    11721192
     
    12161236    return rc;
    12171237}
     1238RT_EXPORT_SYMBOL(RTDbgAsSymbolByAddr);
    12181239
    12191240
     
    12641285    return rc;
    12651286}
     1287RT_EXPORT_SYMBOL(RTDbgAsSymbolByAddrA);
    12661288
    12671289
     
    14371459    return VERR_SYMBOL_NOT_FOUND;
    14381460}
     1461RT_EXPORT_SYMBOL(RTDbgAsSymbolByName);
    14391462
    14401463
     
    15111534    return VERR_SYMBOL_NOT_FOUND;
    15121535}
     1536RT_EXPORT_SYMBOL(RTDbgAsSymbolByNameA);
    15131537
    15141538
     
    15511575    return rc;
    15521576}
     1577RT_EXPORT_SYMBOL(RTDbgAsLineAdd);
    15531578
    15541579
     
    15901615    return rc;
    15911616}
     1617RT_EXPORT_SYMBOL(RTDbgAsLineByAddr);
    15921618
    15931619
     
    16301656    return rc;
    16311657}
    1632 
     1658RT_EXPORT_SYMBOL(RTDbgAsLineByAddrA);
     1659
  • trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp

    r21046 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/dbg.h>
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/asm.h>
     
    305307    return rc;
    306308}
     309RT_EXPORT_SYMBOL(RTDbgModCreate);
    307310
    308311
     
    311314    return VERR_NOT_IMPLEMENTED;
    312315}
     316RT_EXPORT_SYMBOL(RTDbgModCreateDeferred);
    313317
    314318
     
    317321    return VERR_NOT_IMPLEMENTED;
    318322}
     323RT_EXPORT_SYMBOL(RTDbgModCreateFromImage);
    319324
    320325
     
    393398    return rc;
    394399}
     400RT_EXPORT_SYMBOL(RTDbgModCreateFromMap);
    395401
    396402
     
    449455    return ASMAtomicIncU32(&pDbgMod->cRefs);
    450456}
     457RT_EXPORT_SYMBOL(RTDbgModRetain);
    451458
    452459
     
    475482    return cRefs;
    476483}
     484RT_EXPORT_SYMBOL(RTDbgModRelease);
    477485
    478486
     
    490498    return pDbgMod->pszName;
    491499}
     500RT_EXPORT_SYMBOL(RTDbgModName);
    492501
    493502
     
    514523    return iSeg;
    515524}
     525RT_EXPORT_SYMBOL(RTDbgModRvaToSegOff);
    516526
    517527
     
    538548    return cbImage;
    539549}
     550RT_EXPORT_SYMBOL(RTDbgModImageSize);
    540551
    541552
     
    596607
    597608}
     609RT_EXPORT_SYMBOL(RTDbgModSegmentAdd);
    598610
    599611
     
    620632    return cSegs;
    621633}
     634RT_EXPORT_SYMBOL(RTDbgModSegmentCount);
    622635
    623636
     
    651664    return rc;
    652665}
     666RT_EXPORT_SYMBOL(RTDbgModSegmentByIndex);
    653667
    654668
     
    675689    return RT_SUCCESS(rc) ? SegInfo.cb : RTUINTPTR_MAX;
    676690}
     691RT_EXPORT_SYMBOL(RTDbgModSegmentSize);
    677692
    678693
     
    696711    return RT_SUCCESS(rc) ? SegInfo.uRva : RTUINTPTR_MAX;
    697712}
     713RT_EXPORT_SYMBOL(RTDbgModSegmentRva);
    698714
    699715
     
    769785    return rc;
    770786}
     787RT_EXPORT_SYMBOL(RTDbgModSymbolAdd);
    771788
    772789
     
    794811    return cSymbols;
    795812}
     813RT_EXPORT_SYMBOL(RTDbgModSymbolCount);
    796814
    797815
     
    821839    return rc;
    822840}
     841RT_EXPORT_SYMBOL(RTDbgModSymbolByOrdinal);
    823842
    824843
     
    856875    return rc;
    857876}
     877RT_EXPORT_SYMBOL(RTDbgModSymbolByOrdinalA);
    858878
    859879
     
    916936    return rc;
    917937}
     938RT_EXPORT_SYMBOL(RTDbgModSymbolByAddr);
    918939
    919940
     
    962983    return rc;
    963984}
     985RT_EXPORT_SYMBOL(RTDbgModSymbolByAddrA);
    964986
    965987
     
    9991021    return rc;
    10001022}
     1023RT_EXPORT_SYMBOL(RTDbgModSymbolByName);
    10011024
    10021025
     
    10341057    return rc;
    10351058}
     1059RT_EXPORT_SYMBOL(RTDbgModSymbolByNameA);
    10361060
    10371061
     
    11021126    return rc;
    11031127}
     1128RT_EXPORT_SYMBOL(RTDbgModLineAdd);
    11041129
    11051130
     
    11271152    return cLineNumbers;
    11281153}
     1154RT_EXPORT_SYMBOL(RTDbgModLineCount);
    11291155
    11301156
     
    11571183    return rc;
    11581184}
     1185RT_EXPORT_SYMBOL(RTDbgModLineByOrdinal);
    11591186
    11601187
     
    11951222    return rc;
    11961223}
     1224RT_EXPORT_SYMBOL(RTDbgModLineByOrdinalA);
    11971225
    11981226
     
    12531281    return rc;
    12541282}
     1283RT_EXPORT_SYMBOL(RTDbgModLineByAddr);
    12551284
    12561285
     
    13001329    return rc;
    13011330}
    1302 
     1331RT_EXPORT_SYMBOL(RTDbgModLineByAddrA);
     1332
  • trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp

    r21110 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/dbg.h>
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/avl.h>
  • trunk/src/VBox/Runtime/common/dbg/dbgmodnm.cpp

    r21290 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/dbg.h>
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/err.h>
  • trunk/src/VBox/Runtime/common/err/RTErrConvertFromErrno.cpp

    r18329 r21337  
    3434*******************************************************************************/
    3535#include <iprt/err.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    37 #include <iprt/err.h>
    3839
    3940#if defined(RT_OS_DARWIN) && defined(KERNEL)
     
    446447    }
    447448}
    448 
     449RT_EXPORT_SYMBOL(RTErrConvertFromErrno);
     450
  • trunk/src/VBox/Runtime/common/err/RTErrConvertToErrno.cpp

    r18329 r21337  
    3434*******************************************************************************/
    3535#include <iprt/err.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739#include <iprt/err.h>
     
    456458    }
    457459}
    458 
    459 #if defined(RT_OS_LINUX) && defined(IN_MODULE)
    460 /*
    461  * When we build this in the Linux kernel module, we wish to make the
    462  * symbols available to other modules as well.
    463  */
    464 # include "the-linux-kernel.h"
    465 EXPORT_SYMBOL(RTErrConvertToErrno);
    466 #endif
     460RT_EXPORT_SYMBOL(RTErrConvertToErrno);
     461
  • trunk/src/VBox/Runtime/common/err/errmsg.cpp

    r13836 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/err.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/asm.h>
    3639#include <iprt/string.h>
     
    103106    return &g_aUnknownMsgs[iMsg];
    104107}
     108RT_EXPORT_SYMBOL(RTErrGet);
    105109
  • trunk/src/VBox/Runtime/common/err/errmsgxpcom.cpp

    r14626 r21337  
    3333*******************************************************************************/
    3434#include <iprt/err.h>
     35#include "internal/iprt.h"
     36
    3537#include <iprt/asm.h>
    3638#include <iprt/string.h>
     
    150152    return &g_aUnknownMsgs[iMsg];
    151153}
     154RT_EXPORT_SYMBOL(RTErrCOMGet);
    152155
  • trunk/src/VBox/Runtime/common/ldr/ldr.cpp

    r17019 r21337  
    3535#define LOG_GROUP RTLOGGROUP_LDR
    3636#include <iprt/ldr.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/alloc.h>
    3840#include <iprt/string.h>
     
    8486    return false;
    8587}
     88RT_EXPORT_SYMBOL(RTLdrIsLoadable);
    8689
    8790
     
    128131    return rc;
    129132}
     133RT_EXPORT_SYMBOL(RTLdrGetSymbol);
    130134
    131135
     
    162166    return VINF_SUCCESS;
    163167}
     168RT_EXPORT_SYMBOL(RTLdrClose);
    164169
  • trunk/src/VBox/Runtime/common/ldr/ldrELF.cpp

    r16933 r21337  
    3535#define LOG_GROUP RTLOGGROUP_LDR
    3636#include <iprt/ldr.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/alloc.h>
    3840#include <iprt/assert.h>
  • trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h

    r19167 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Defined Constants And Macros                                               *
  • trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp

    r16933 r21337  
    3535#define LOG_GROUP RTLOGGROUP_LDR
    3636#include <iprt/ldr.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/alloc.h>
    3840#include <iprt/assert.h>
     
    195197    return cb;
    196198}
     199RT_EXPORT_SYMBOL(RTLdrSize);
    197200
    198201
     
    231234    return rc;
    232235}
     236RT_EXPORT_SYMBOL(RTLdrGetBits);
    233237
    234238
     
    269273    return rc;
    270274}
     275RT_EXPORT_SYMBOL(RTLdrRelocate);
    271276
    272277
     
    321326    return rc;
    322327}
     328RT_EXPORT_SYMBOL(RTLdrGetSymbolEx);
    323329
    324330
     
    357363    return rc;
    358364}
    359 
     365RT_EXPORT_SYMBOL(RTLdrEnumSymbols);
     366
  • trunk/src/VBox/Runtime/common/ldr/ldrFile.cpp

    r16933 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
     
    3435#define LOG_GROUP RTLOGGROUP_LDR
    3536#include <iprt/ldr.h>
     37#include "internal/iprt.h"
     38
    3639#include <iprt/alloc.h>
    3740#include <iprt/file.h>
     
    287290    return rc;
    288291}
     292RT_EXPORT_SYMBOL(RTLdrOpen);
    289293
    290294
     
    340344#endif
    341345}
    342 
     346RT_EXPORT_SYMBOL(RTLdrOpenkLdr);
     347
  • trunk/src/VBox/Runtime/common/ldr/ldrNative.cpp

    r12423 r21337  
    3535#define LOG_GROUP RTLOGGROUP_LDR
    3636#include <iprt/ldr.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/alloc.h>
    3840#include <iprt/assert.h>
     
    134136    return rc;
    135137}
     138RT_EXPORT_SYMBOL(RTLdrLoad);
    136139
    137140
     
    199202    return rc;
    200203}
     204RT_EXPORT_SYMBOL(RTLdrLoadAppPriv);
    201205
    202206
     
    220224    return s_szSuff;
    221225}
    222 
     226RT_EXPORT_SYMBOL(RTLdrGetSuff);
     227
  • trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp

    r16933 r21337  
    3535#define LOG_GROUP RTLOGGROUP_LDR
    3636#include <iprt/ldr.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/alloc.h>
    3840#include <iprt/assert.h>
  • trunk/src/VBox/Runtime/common/ldr/ldrkStuff.cpp

    r16935 r21337  
    3535#define LOG_GROUP RTLOGGROUP_LDR
    3636#include <iprt/ldr.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/file.h>
    3840#include <iprt/alloc.h>
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r21135 r21337  
    3434*******************************************************************************/
    3535#include <iprt/log.h>
     36#include "internal/iprt.h"
     37
    3638#ifndef IN_RC
    3739# include <iprt/alloc.h>
     
    488490    return rc;
    489491}
     492RT_EXPORT_SYMBOL(RTLogCreateExV);
     493
    490494
    491495/**
     
    517521    return rc;
    518522}
     523RT_EXPORT_SYMBOL(RTLogCreate);
     524
    519525
    520526/**
     
    548554    return rc;
    549555}
     556RT_EXPORT_SYMBOL(RTLogCreateEx);
     557
    550558
    551559/**
     
    625633    return rc;
    626634}
     635RT_EXPORT_SYMBOL(RTLogDestroy);
    627636
    628637
     
    708717    return VINF_SUCCESS;
    709718}
     719RT_EXPORT_SYMBOL(RTLogCloneRC);
    710720
    711721
     
    764774    }
    765775}
     776RT_EXPORT_SYMBOL(RTLogFlushRC);
    766777
    767778
     
    809820    return VINF_SUCCESS;
    810821}
     822RT_EXPORT_SYMBOL(RTLogCreateForR0);
    811823#endif /* IN_RING3 */
    812824
     
    866878    return rc;
    867879}
     880RT_EXPORT_SYMBOL(RTLogCopyGroupsAndFlags);
    868881
    869882
     
    935948    }
    936949}
     950RT_EXPORT_SYMBOL(RTLogFlushToLogger);
    937951
    938952
     
    968982    return VINF_SUCCESS;
    969983}
     984RT_EXPORT_SYMBOL(RTLogSetCustomPrefixCallback);
    970985
    971986
     
    11471162    return VINF_SUCCESS;
    11481163}
     1164RT_EXPORT_SYMBOL(RTLogGroupSettings);
    11491165
    11501166
     
    13771393    return rc;
    13781394}
     1395RT_EXPORT_SYMBOL(RTLogFlags);
    13791396
    13801397
     
    14281445    }
    14291446}
     1447RT_EXPORT_SYMBOL(RTLogFlush);
    14301448
    14311449
     
    14641482#endif /* !IN_RC */
    14651483}
     1484RT_EXPORT_SYMBOL(RTLogDefaultInstance);
    14661485
    14671486
     
    14941513#endif
    14951514}
     1515RT_EXPORT_SYMBOL(RTLogGetDefaultInstance);
    14961516
    14971517
     
    15071527    return (PRTLOGGER)ASMAtomicXchgPtr((void * volatile *)&g_pLogger, pLogger);
    15081528}
     1529RT_EXPORT_SYMBOL(RTLogSetDefaultInstance);
    15091530#endif /* !IN_RC */
    15101531
     
    15931614    return rc;
    15941615}
     1616RT_EXPORT_SYMBOL(RTLogSetDefaultInstanceThread);
    15951617#endif
    15961618
     
    16071629    RTLogLoggerExV(pLogger, 0, ~0U, pszFormat, args);
    16081630}
     1631RT_EXPORT_SYMBOL(RTLogLoggerV);
    16091632
    16101633
     
    16911714    rtlogUnlock(pLogger);
    16921715}
     1716RT_EXPORT_SYMBOL(RTLogLoggerExV);
     1717
    16931718
    16941719#ifdef IN_RING0
     
    18271852    RTLogLoggerV(NULL, pszFormat, args);
    18281853}
     1854RT_EXPORT_SYMBOL(RTLogPrintfV);
    18291855
    18301856
  • trunk/src/VBox/Runtime/common/log/logcom.cpp

    r8245 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Defined Constants And Macros                                               *
     
    4950*******************************************************************************/
    5051#include <iprt/log.h>
     52#include "internal/iprt.h"
     53
    5154#include <iprt/asm.h>
    5255#include <iprt/stdarg.h>
     
    7780    return cb;
    7881}
     82RT_EXPORT_SYMBOL(RTLogComPrintf);
    7983
    8084
     
    9094    return RTLogFormatV(rtLogComOutput, NULL, pszFormat, args);
    9195}
     96RT_EXPORT_SYMBOL(RTLogComPrintfV);
    9297
    9398
     
    134139    }
    135140}
     141RT_EXPORT_SYMBOL(RTLogWriteCom);
    136142
  • trunk/src/VBox/Runtime/common/log/logellipsis.cpp

    r12099 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/log.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/asm.h>
    3639#include <iprt/stdarg.h>
     
    5962    va_end(args);
    6063}
     64RT_EXPORT_SYMBOL(RTLogLogger);
    6165
    6266
     
    8387    va_end(args);
    8488}
     89RT_EXPORT_SYMBOL(RTLogLoggerEx);
    8590
    8691
     
    100105    va_end(args);
    101106}
     107RT_EXPORT_SYMBOL(RTLogPrintf);
    102108
  • trunk/src/VBox/Runtime/common/log/logformat.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/log.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/string.h>
    3739#include <iprt/assert.h>
     
    6971    return RTStrFormatV(pfnOutput, pvArg, rtlogFormatStr, NULL, pszFormat, args);
    7072}
     73RT_EXPORT_SYMBOL(RTLogFormatV);
    7174
    7275
  • trunk/src/VBox/Runtime/common/log/logrel.cpp

    r13832 r21337  
    3434*******************************************************************************/
    3535#include <iprt/log.h>
     36#include "internal/iprt.h"
     37
    3638#ifndef IN_RC
    3739# include <iprt/alloc.h>
     
    8688#endif /* !IN_RC */
    8789}
     90RT_EXPORT_SYMBOL(RTLogRelDefaultInstance);
    8891
    8992
     
    99102    return (PRTLOGGER)ASMAtomicXchgPtr((void * volatile *)&g_pRelLogger, pLogger);
    100103}
     104RT_EXPORT_SYMBOL(RTLogRelSetDefaultInstance);
    101105#endif /* !IN_RC */
    102106
     
    129133    RTLogLoggerExV(pLogger, fFlags, iGroup, pszFormat, args);
    130134}
     135RT_EXPORT_SYMBOL(RTLogRelLoggerV);
    131136
    132137
     
    143148    RTLogRelLoggerV(NULL, 0, ~0U, pszFormat, args);
    144149}
     150RT_EXPORT_SYMBOL(RTLogRelPrintfV);
    145151
  • trunk/src/VBox/Runtime/common/log/logrelellipsis.cpp

    r12099 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/log.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/stdarg.h>
    3639
     
    5861    va_end(args);
    5962}
     63RT_EXPORT_SYMBOL(RTLogRelLogger);
    6064
    6165
     
    7579    va_end(args);
    7680}
     81RT_EXPORT_SYMBOL(RTLogRelPrintf);
    7782
  • trunk/src/VBox/Runtime/common/misc/RTAssertMsg1Weak.cpp

    r14500 r21337  
    3434*******************************************************************************/
    3535#include <iprt/assert.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/stdarg.h>
    3739
     
    4143    RTAssertMsg1(pszExpr, uLine, pszFile, pszFunction);
    4244}
     45RT_EXPORT_SYMBOL(AssertMsg1);
    4346
  • trunk/src/VBox/Runtime/common/misc/RTAssertMsg2.cpp

    r14500 r21337  
    3434*******************************************************************************/
    3535#include <iprt/assert.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/stdarg.h>
    3739
     
    4446    va_end(va);
    4547}
     48RT_EXPORT_SYMBOL(RTAssertMsg2);
    4649
  • trunk/src/VBox/Runtime/common/misc/RTAssertMsg2Weak.cpp

    r14500 r21337  
    3434*******************************************************************************/
    3535#include <iprt/assert.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/stdarg.h>
    3739
     
    4446    va_end(va);
    4547}
     48RT_EXPORT_SYMBOL(AssertMsg2);
    4649
  • trunk/src/VBox/Runtime/common/misc/assert.cpp

    r17410 r21337  
    3434*******************************************************************************/
    3535#include <iprt/assert.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/log.h>
    3739#include <iprt/string.h>
     
    4244
    4345
    44 #if defined(IN_GUEST_R0) && (defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS))
     46#if defined(IN_GUEST_R0) \
     47 && (  (defined(RT_OS_LINUX) && !defined(VBOX_WITH_COMMON_VBOXGUEST_ON_LINUX)) \
     48     || defined(RT_OS_WINDOWS))
    4549/*
    4650 * This is legacy that should be eliminated. OS specific code deals with
     
    6771                        pszExpr, pszFile, uLine, pszFunction);
    6872}
     73RT_EXPORT_SYMBOL(AssertMsg1);
    6974
    7075
     
    8388    va_end(args);
    8489}
    85 
    86 # if defined(RT_OS_LINUX) && defined(IN_MODULE)
    87 /*
    88  * When we build this in the Linux kernel module, we wish to make the
    89  * symbols available to other modules as well.
    90  */
    91 #  include "the-linux-kernel.h"
    92 EXPORT_SYMBOL(AssertMsg1);
    93 EXPORT_SYMBOL(AssertMsg2);
    94 # endif
     90RT_EXPORT_SYMBOL(AssertMsg2);
    9591
    9692#elif defined(IN_RING0)
  • trunk/src/VBox/Runtime/common/misc/cache.cpp

    r10848 r21337  
    3333*   Header Files                                                               *
    3434*******************************************************************************/
     35#include <iprt/cache.h>
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/cdefs.h>
     
    3941#include <iprt/spinlock.h>
    4042#include <iprt/mem.h>
    41 #include <iprt/cache.h>
    4243#include <iprt/asm.h>
    4344
    4445#include "internal/magics.h"
     46
    4547
    4648/**
     
    135137    return rc;
    136138}
     139RT_EXPORT_SYMBOL(RTCacheCreate);
     140
    137141
    138142/**
     
    178182    return VINF_SUCCESS;
    179183}
     184RT_EXPORT_SYMBOL(RTCacheDestroy);
     185
    180186
    181187/**
     
    245251    return VINF_SUCCESS;
    246252}
     253RT_EXPORT_SYMBOL(RTCacheRequest);
     254
    247255
    248256/**
     
    289297    return rc;
    290298}
    291 
     299RT_EXPORT_SYMBOL(RTCacheInsert);
     300
  • trunk/src/VBox/Runtime/common/misc/cidr.cpp

    r8359 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/cidr.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/ctype.h>
    3639#include <iprt/string.h>
     
    7376
    7477
    75 int RTCidrStrToIPv4(const char *pszAddress, PRTIPV4ADDR pNetwork, PRTIPV4ADDR pNetmask)
     78RTDECL(int) RTCidrStrToIPv4(const char *pszAddress, PRTIPV4ADDR pNetwork, PRTIPV4ADDR pNetmask)
    7679{
    7780    uint8_t cBits;
     
    135138    return VINF_SUCCESS;
    136139}
     140RT_EXPORT_SYMBOL(RTCidrStrToIPv4);
     141
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r20809 r21337  
    3232*   Header Files                                                               *
    3333*******************************************************************************/
    34 #include <iprt/net.h>
     34#include <iprt/net.h>                   /* must come before getopt.h */
    3535#include <iprt/getopt.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/err.h>
    3739#include <iprt/string.h>
     
    6971    return VINF_SUCCESS;
    7072}
     73RT_EXPORT_SYMBOL(RTGetOptInit);
    7174
    7275
     
    496499    return VINF_GETOPT_NOT_OPTION;
    497500}
    498 
     501RT_EXPORT_SYMBOL(RTGetOpt);
     502
  • trunk/src/VBox/Runtime/common/misc/handletable.cpp

    r19865 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/handletable.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/mem.h>
    3639#include <iprt/spinlock.h>
     
    115118    return VINF_SUCCESS;
    116119}
     120RT_EXPORT_SYMBOL(RTHandleTableCreateEx);
    117121
    118122
     
    121125    return RTHandleTableCreateEx(phHandleTable, RTHANDLETABLE_FLAGS_LOCKED, 1, 65534, NULL, NULL);
    122126}
     127RT_EXPORT_SYMBOL(RTHandleTableCreate);
    123128
    124129
     
    215220    return VINF_SUCCESS;
    216221}
    217 
     222RT_EXPORT_SYMBOL(RTHandleTableDestroy);
     223
  • trunk/src/VBox/Runtime/common/misc/handletablectx.cpp

    r19865 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/handletable.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/mem.h>
    3639#include <iprt/spinlock.h>
     
    216219    return rc;
    217220}
     221RT_EXPORT_SYMBOL(RTHandleTableAllocWithCtx);
    218222
    219223
     
    259263    return pvObj;
    260264}
     265RT_EXPORT_SYMBOL(RTHandleTableLookupWithCtx);
    261266
    262267
     
    330335    return pvObj;
    331336}
    332 
     337RT_EXPORT_SYMBOL(RTHandleTableFreeWithCtx);
     338
  • trunk/src/VBox/Runtime/common/misc/handletablesimple.cpp

    r10790 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/handletable.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/mem.h>
    3639#include <iprt/spinlock.h>
     
    200203    return rc;
    201204}
     205RT_EXPORT_SYMBOL(RTHandleTableAlloc);
    202206
    203207
     
    240244    return pvObj;
    241245}
     246RT_EXPORT_SYMBOL(RTHandleTableLookup);
    242247
    243248
     
    303308    return pvObj;
    304309}
    305 
     310RT_EXPORT_SYMBOL(RTHandleTableFree);
     311
  • trunk/src/VBox/Runtime/common/misc/once.cpp

    r19896 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/once.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/semaphore.h>
    3639#include <iprt/thread.h>
     
    159162    return ASMAtomicUoReadS32(&pOnce->rc);
    160163}
     164RT_EXPORT_SYMBOL(RTOnce);
    161165
    162166
     
    172176    ASMAtomicWriteS32(&pOnce->iState, -1);
    173177}
     178RT_EXPORT_SYMBOL(RTOnceReset);
    174179
  • trunk/src/VBox/Runtime/common/misc/req.cpp

    r14012 r21337  
    3333*   Header Files                                                               *
    3434*******************************************************************************/
     35#include <iprt/req.h>
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/assert.h>
     
    4042#include <iprt/semaphore.h>
    4143#include <iprt/thread.h>
    42 #include <iprt/req.h>
    4344#include <iprt/log.h>
    4445#include <iprt/mem.h>
     
    7071    return rc;
    7172}
     73RT_EXPORT_SYMBOL(RTReqCreateQueue);
    7274
    7375
     
    9294    return VINF_SUCCESS;
    9395}
     96RT_EXPORT_SYMBOL(RTReqDestroyQueue);
    9497
    9598/**
     
    176179    return rc;
    177180}
     181RT_EXPORT_SYMBOL(RTReqProcess);
    178182
    179183/**
     
    208212    return rc;
    209213}
     214RT_EXPORT_SYMBOL(RTReqCall);
    210215
    211216
     
    241246    return rc;
    242247}
     248RT_EXPORT_SYMBOL(RTReqCallVoid);
    243249
    244250
     
    276282    return rc;
    277283}
     284RT_EXPORT_SYMBOL(RTReqCallEx);
    278285
    279286
     
    363370    return rc;
    364371}
     372RT_EXPORT_SYMBOL(RTReqCallV);
    365373
    366374
     
    432440RTDECL(int) RTReqAlloc(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTREQTYPE enmType)
    433441{
     442    RT_EXPORT_SYMBOL(RTReqAlloc);
    434443    /*
    435444     * Validate input.
     
    609618    return VINF_SUCCESS;
    610619}
     620RT_EXPORT_SYMBOL(RTReqFree);
    611621
    612622
     
    682692    return rc;
    683693}
     694RT_EXPORT_SYMBOL(RTReqQueue);
    684695
    685696
     
    745756    return rc;
    746757}
     758RT_EXPORT_SYMBOL(RTReqWait);
    747759
    748760
     
    890902}
    891903
    892 
    893 
    894 
  • trunk/src/VBox/Runtime/common/misc/s3.cpp

    r20293 r21337  
    11/* $Id$ */
    22/** @file
    3  * S3 communication API.
     3 * IPRT - S3 communication API.
    44 */
    55
     
    3333*   Header Files                                                               *
    3434*******************************************************************************/
    35 #include "iprt/s3.h"
     35#include <iprt/s3.h>
     36#include "internal/iprt.h"
    3637
    3738#include <iprt/err.h>
     
    4849#include "internal/magics.h"
    4950
     51
     52/*******************************************************************************
     53*   Structures and Typedefs                                                    *
     54*******************************************************************************/
    5055typedef struct RTS3INTERNAL
    5156{
     
    7176typedef RTS3TMPMEMCHUNK *PRTS3TMPMEMCHUNK;
    7277
     78
    7379/*******************************************************************************
    7480*   Defined Constants And Macros                                               *
     
    9197        AssertReturnVoid((hS3)->u32Magic == RTS3_MAGIC); \
    9298    } while (0)
     99
    93100
    94101/*******************************************************************************
  • trunk/src/VBox/Runtime/common/misc/semspingpong.cpp

    r14057 r21337  
    3434*******************************************************************************/
    3535#include <iprt/semaphore.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/thread.h>
    3739#include <iprt/asm.h>
     
    6971 * @param   pPP         Pointer to the ping-pong structure which needs initialization.
    7072 */
    71 RTR3DECL(int) RTSemPingPongInit(PRTPINGPONG pPP)
     73RTDECL(int) RTSemPingPongInit(PRTPINGPONG pPP)
    7274{
    7375    /*
     
    8789    return rc;
    8890}
     91RT_EXPORT_SYMBOL(RTSemPingPongInit);
    8992
    9093
     
    9699 *                      (I.e. put into uninitialized state.)
    97100 */
    98 RTR3DECL(int) RTSemPingPongDelete(PRTPINGPONG pPP)
     101RTDECL(int) RTSemPingPongDelete(PRTPINGPONG pPP)
    99102{
    100103    /*
     
    117120    return VINF_SUCCESS;
    118121}
     122RT_EXPORT_SYMBOL(RTSemPingPongDelete);
    119123
    120124
     
    126130 * @param   pPP         Pointer to the ping-pong structure to ping.
    127131 */
    128 RTR3DECL(int) RTSemPing(PRTPINGPONG pPP)
     132RTDECL(int) RTSemPing(PRTPINGPONG pPP)
    129133{
    130134    /*
     
    149153    return rc;
    150154}
     155RT_EXPORT_SYMBOL(RTSemPing);
    151156
    152157
     
    158163 * @param   pPP         Pointer to the ping-pong structure to pong.
    159164 */
    160 RTR3DECL(int) RTSemPong(PRTPINGPONG pPP)
     165RTDECL(int) RTSemPong(PRTPINGPONG pPP)
    161166{
    162167    /*
     
    181186    return rc;
    182187}
     188RT_EXPORT_SYMBOL(RTSemPong);
    183189
    184190
     
    191197 * @param   cMillies    Number of milliseconds to wait.
    192198 */
    193 RTR3DECL(int) RTSemPingWait(PRTPINGPONG pPP, unsigned cMillies)
     199RTDECL(int) RTSemPingWait(PRTPINGPONG pPP, unsigned cMillies)
    194200{
    195201    /*
     
    213219    return rc;
    214220}
     221RT_EXPORT_SYMBOL(RTSemPingWait);
    215222
    216223
     
    223230 * @param   cMillies    Number of milliseconds to wait.
    224231 */
    225 RTR3DECL(int) RTSemPongWait(PRTPINGPONG pPP, unsigned cMillies)
     232RTDECL(int) RTSemPongWait(PRTPINGPONG pPP, unsigned cMillies)
    226233{
    227234    /*
     
    245252    return rc;
    246253}
    247 
     254RT_EXPORT_SYMBOL(RTSemPongWait);
     255
  • trunk/src/VBox/Runtime/common/misc/term.cpp

    r19898 r21337  
    3333*******************************************************************************/
    3434#include <iprt/initterm.h>
     35#include "internal/iprt.h"
     36
    3537#include <iprt/asm.h>
    3638#include <iprt/assert.h>
     
    143145    return rc;
    144146}
     147RT_EXPORT_SYMBOL(RTTermRegisterCallback);
    145148
    146149
     
    192195    return rc;
    193196}
     197RT_EXPORT_SYMBOL(RTTermDeregisterCallback);
    194198
    195199
     
    240244    RTOnceReset(&g_InitTermCallbacksOnce); /* for the testcase */
    241245}
    242 
     246RT_EXPORT_SYMBOL(RTTermRunCallbacks);
     247
  • trunk/src/VBox/Runtime/common/misc/thread.cpp

    r20273 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
     
    3635#define LOG_GROUP RTLOGGROUP_THREAD
    3736#include <iprt/thread.h>
     37#include "internal/iprt.h"
     38
    3839#include <iprt/log.h>
    3940#include <iprt/avl.h>
     
    305306    return rc;
    306307}
     308RT_EXPORT_SYMBOL(RTThreadAdopt);
    307309
    308310
     
    728730    return rc;
    729731}
     732RT_EXPORT_SYMBOL(RTThreadCreate);
    730733
    731734
     
    752755    return RTThreadCreate(pThread, pfnThread, pvUser, cbStack, enmType, fFlags, szName);
    753756}
     757RT_EXPORT_SYMBOL(RTThreadCreateV);
    754758
    755759
     
    778782    return rc;
    779783}
     784RT_EXPORT_SYMBOL(RTThreadCreateF);
    780785
    781786
     
    797802    return NIL_RTNATIVETHREAD;
    798803}
     804RT_EXPORT_SYMBOL(RTThreadGetNative);
    799805
    800806
     
    813819    return NIL_RTTHREAD;
    814820}
     821RT_EXPORT_SYMBOL(RTThreadFromNative);
    815822
    816823
     
    836843    return NULL;
    837844}
     845RT_EXPORT_SYMBOL(RTThreadSelfName);
    838846
    839847
     
    858866    return NULL;
    859867}
     868RT_EXPORT_SYMBOL(RTThreadGetName);
    860869
    861870
     
    890899    return VINF_SUCCESS;
    891900}
     901RT_EXPORT_SYMBOL(RTThreadSetName);
    892902
    893903
     
    910920    return rc;
    911921}
     922RT_EXPORT_SYMBOL(RTThreadUserSignal);
    912923
    913924
     
    933944    return rc;
    934945}
     946RT_EXPORT_SYMBOL(RTThreadUserWait);
    935947
    936948
     
    956968    return rc;
    957969}
     970RT_EXPORT_SYMBOL(RTThreadUserWaitNoResume);
    958971
    959972
     
    977990    return rc;
    978991}
     992RT_EXPORT_SYMBOL(RTThreadUserReset);
    979993
    980994
     
    10451059    return rc;
    10461060}
     1061RT_EXPORT_SYMBOL(RTThreadWait);
    10471062
    10481063
     
    10601075    return rtThreadWait(Thread, cMillies, prc, false);
    10611076}
     1077RT_EXPORT_SYMBOL(RTThreadWaitNoResume);
    10621078
    10631079
     
    11091125    return rc;
    11101126}
     1127RT_EXPORT_SYMBOL(RTThreadSetType);
    11111128
    11121129
     
    11291146    return enmType;
    11301147}
     1148RT_EXPORT_SYMBOL(RTThreadGetType);
    11311149
    11321150
     
    11571175    return cWriteLocks;
    11581176}
     1177RT_EXPORT_SYMBOL(RTThreadGetWriteLockCount);
    11591178
    11601179
     
    11711190    rtThreadRelease(pThread);
    11721191}
     1192RT_EXPORT_SYMBOL(RTThreadWriteLockInc);
    11731193
    11741194
     
    11851205    rtThreadRelease(pThread);
    11861206}
     1207RT_EXPORT_SYMBOL(RTThreadWriteLockDec);
    11871208
    11881209
     
    12101231    return cReadLocks;
    12111232}
     1233RT_EXPORT_SYMBOL(RTThreadGetReadLockCount);
    12121234
    12131235
     
    12241246    rtThreadRelease(pThread);
    12251247}
     1248RT_EXPORT_SYMBOL(RTThreadReadLockInc);
    12261249
    12271250
     
    12381261    rtThreadRelease(pThread);
    12391262}
     1263RT_EXPORT_SYMBOL(RTThreadReadLockDec);
    12401264
    12411265
     
    15061530    }
    15071531}
     1532RT_EXPORT_SYMBOL(RTThreadBlocking);
    15081533
    15091534
     
    15221547        ASMAtomicWriteSize(&hThread->enmState, RTTHREADSTATE_RUNNING);
    15231548}
     1549RT_EXPORT_SYMBOL(RTThreadUnblocked);
    15241550
    15251551#endif /* IN_RING3 */
  • trunk/src/VBox/Runtime/common/misc/zip.cpp

    r19863 r21337  
    5454
    5555#include <iprt/zip.h>
     56#include "internal/iprt.h"
     57
    5658#include <iprt/alloc.h>
    5759#include <iprt/assert.h>
     
    13431345    return rc;
    13441346}
     1347RT_EXPORT_SYMBOL(RTZipCompCreate);
    13451348
    13461349
     
    13591362    return pZip->pfnCompress(pZip, pvBuf, cbBuf);
    13601363}
     1364RT_EXPORT_SYMBOL(RTZipCompress);
    13611365
    13621366
     
    13721376    return pZip->pfnFinish(pZip);
    13731377}
     1378RT_EXPORT_SYMBOL(RTZipCompFinish);
    13741379
    13751380
     
    13951400    return VINF_SUCCESS;
    13961401}
     1402RT_EXPORT_SYMBOL(RTZipCompDestroy);
    13971403
    13981404
     
    14531459    return VINF_SUCCESS;
    14541460}
     1461RT_EXPORT_SYMBOL(RTZipDecompCreate);
    14551462
    14561463
     
    15641571    return pZip->pfnDecompress(pZip, pvBuf, cbBuf, pcbWritten);
    15651572}
     1573RT_EXPORT_SYMBOL(RTZipDecompress);
     1574
    15661575
    15671576/**
     
    15861595    return rc;
    15871596}
    1588 
    1589 
     1597RT_EXPORT_SYMBOL(RTZipDecompDestroy);
     1598
  • trunk/src/VBox/Runtime/common/rand/rand.cpp

    r11557 r21337  
    3434*******************************************************************************/
    3535#include <iprt/rand.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/time.h>
    3739#include <iprt/asm.h>
     
    8587    RTRandAdvBytes(g_hRand, pv, cb);
    8688}
     89RT_EXPORT_SYMBOL(RTRandBytes);
    8790
    8891
     
    9295    return RTRandAdvU32Ex(g_hRand, u32First, u32Last);
    9396}
     97RT_EXPORT_SYMBOL(RTRandU32Ex);
    9498
    9599
     
    99103    return RTRandAdvU32(g_hRand);
    100104}
     105RT_EXPORT_SYMBOL(RTRandU32);
    101106
    102107
     
    106111    return RTRandAdvS32Ex(g_hRand, i32First, i32Last);
    107112}
     113RT_EXPORT_SYMBOL(RTRandS32Ex);
    108114
    109115
     
    113119    return RTRandAdvS32(g_hRand);
    114120}
     121RT_EXPORT_SYMBOL(RTRandS32);
    115122
    116123
     
    120127    return RTRandAdvU64Ex(g_hRand, u64First, u64Last);
    121128}
     129RT_EXPORT_SYMBOL(RTRandU64Ex);
    122130
    123131
     
    127135    return RTRandAdvU64(g_hRand);
    128136}
     137RT_EXPORT_SYMBOL(RTRandU64);
    129138
    130139
     
    134143    return RTRandAdvS64Ex(g_hRand, i64First, i64Last);
    135144}
     145RT_EXPORT_SYMBOL(RTRandS64Ex);
    136146
    137147
     
    141151    return RTRandAdvS32(g_hRand);
    142152}
     153RT_EXPORT_SYMBOL(RTRandS64);
    143154
  • trunk/src/VBox/Runtime/common/rand/randadv.cpp

    r20256 r21337  
    3434*******************************************************************************/
    3535#include <iprt/rand.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/mem.h>
    3739#include <iprt/err.h>
     
    5355    return pThis->pfnDestroy(pThis);
    5456}
     57RT_EXPORT_SYMBOL(RTRandAdvDestroy);
    5558
    5659
     
    6568    return pThis->pfnSeed(pThis, u64Seed);
    6669}
     70RT_EXPORT_SYMBOL(RTRandAdvSeed);
    6771
    6872
     
    7983    return pThis->pfnSaveState(pThis, pszState, pcbState);
    8084}
     85RT_EXPORT_SYMBOL(RTRandAdvSaveState);
    8186
    8287
     
    9297    return pThis->pfnRestoreState(pThis, pszState);
    9398}
     99RT_EXPORT_SYMBOL(RTRandAdvRestoreState);
    94100
    95101
     
    105111    return pThis->pfnGetBytes(pThis, (uint8_t *)pv, cb);
    106112}
     113RT_EXPORT_SYMBOL(RTRandAdvBytes);
    107114
    108115
     
    117124    return pThis->pfnGetU32(pThis, 0, i32Last - i32First) + i32First;
    118125}
     126RT_EXPORT_SYMBOL(RTRandAdvS32Ex);
    119127
    120128
     
    129137    return pThis->pfnGetU32(pThis, 0, UINT32_MAX) + INT32_MAX;
    130138}
     139RT_EXPORT_SYMBOL(RTRandAdvS32);
    131140
    132141
     
    141150    return pThis->pfnGetU32(pThis, u32First, u32Last);
    142151}
     152RT_EXPORT_SYMBOL(RTRandAdvU32Ex);
    143153
    144154
     
    153163    return pThis->pfnGetU32(pThis, 0, UINT32_MAX);
    154164}
     165RT_EXPORT_SYMBOL(RTRandAdvU32);
    155166
    156167
     
    165176    return pThis->pfnGetU64(pThis, 0, i64Last - i64First) + i64First;
    166177}
     178RT_EXPORT_SYMBOL(RTRandAdvS64Ex);
    167179
    168180
     
    177189    return pThis->pfnGetU64(pThis, 0, UINT64_MAX) + INT64_MAX;
    178190}
     191RT_EXPORT_SYMBOL(RTRandAdvS64);
    179192
    180193
     
    189202    return pThis->pfnGetU64(pThis, u64First, u64Last);
    190203}
     204RT_EXPORT_SYMBOL(RTRandAdvU64Ex);
    191205
    192206
     
    201215    return pThis->pfnGetU64(pThis, 0, UINT64_MAX);
    202216}
     217RT_EXPORT_SYMBOL(RTRandAdvU64);
    203218
    204219
     
    402417}
    403418
    404 
  • trunk/src/VBox/Runtime/common/rand/randparkmiller.cpp

    r20256 r21337  
    3333*******************************************************************************/
    3434#include <iprt/rand.h>
     35#include "internal/iprt.h"
     36
    3537#include <iprt/asm.h>
    3638#include <iprt/mem.h>
     
    208210    return VINF_SUCCESS;
    209211}
    210 
     212RT_EXPORT_SYMBOL(RTRandAdvCreateParkMiller);
     213
  • trunk/src/VBox/Runtime/common/string/RTStrNLen.cpp

    r10949 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/string.h>
     36#include "internal/iprt.h"
    3537
    3638
     
    4042    return pchEnd ? pchEnd - pszString : cchMax;
    4143}
     44RT_EXPORT_SYMBOL(RTStrNLen);
    4245
  • trunk/src/VBox/Runtime/common/string/RTStrNLenEx.cpp

    r10949 r21337  
    3333*******************************************************************************/
    3434#include <iprt/string.h>
     35#include "internal/iprt.h"
    3536
    3637
     
    4647    return VINF_SUCCESS;
    4748}
     49RT_EXPORT_SYMBOL(RTStrNLenEx);
    4850
  • trunk/src/VBox/Runtime/common/string/base64.cpp

    r16774 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/base64.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/assert.h>
    3639#include <iprt/err.h>
     
    216219    return cb;
    217220}
     221RT_EXPORT_SYMBOL(RTBase64DecodedSize);
    218222
    219223
     
    399403    return VINF_SUCCESS;
    400404}
     405RT_EXPORT_SYMBOL(RTBase64Decode);
    401406
    402407
     
    436441    return cch;
    437442}
     443RT_EXPORT_SYMBOL(RTBase64EncodedLength);
    438444
    439445
     
    534540    return VINF_SUCCESS;
    535541}
    536 
     542RT_EXPORT_SYMBOL(RTBase64Encode);
     543
  • trunk/src/VBox/Runtime/common/string/simplepattern.cpp

    r13549 r21337  
    3434*******************************************************************************/
    3535#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739
     
    9092#endif
    9193}
     94RT_EXPORT_SYMBOL(RTStrSimplePatternMatch);
    9295
    9396
     
    153156    }
    154157}
     158RT_EXPORT_SYMBOL(RTStrSimplePatternNMatch);
    155159
    156160
     
    191195    return false;
    192196}
     197RT_EXPORT_SYMBOL(RTStrSimplePatternMultiMatch);
    193198
    194 
  • trunk/src/VBox/Runtime/common/string/straprintf.cpp

    r8245 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/assert.h>
    3639#include <iprt/alloc.h>
     
    178181    return cbRet;
    179182}
     183RT_EXPORT_SYMBOL(RTStrAPrintfV);
    180184
    181185
     
    188192    return cbRet;
    189193}
     194RT_EXPORT_SYMBOL(RTStrAPrintf);
    190195
  • trunk/src/VBox/Runtime/common/string/strformat.cpp

    r19942 r21337  
    4343#define LOG_GROUP RTLOGGROUP_STRING
    4444#include <iprt/string.h>
     45#include "internal/iprt.h"
     46
    4547#include <iprt/assert.h>
    4648#ifdef IN_RING3
     
    154156    return rtStrFormatNumber(psz, *(KSIZE64 *)(void *)&u64Value, uiBase, cchWidth, cchPrecision, fFlags);
    155157}
     158RT_EXPORT_SYMBOL(RTStrFormatNumber);
    156159
    157160
     
    185188    if (fFlags & RTSTR_F_LEFT)
    186189        fFlags &= ~RTSTR_F_ZEROPAD;
    187     if (    (fFlags & RTSTR_F_THOUSAND_SEP) 
    188         &&  (   uiBase != 10 
     190    if (    (fFlags & RTSTR_F_THOUSAND_SEP)
     191        &&  (   uiBase != 10
    189192             || (fFlags & RTSTR_F_ZEROPAD))) /** @todo implement RTSTR_F_ZEROPAD + RTSTR_F_THOUSAND_SEP. */
    190193        fFlags &= ~RTSTR_F_THOUSAND_SEP;
     
    285288        uint64_t    u64 = *(uint64_t *)(void *)&ullValue;
    286289        if (fFlags & RTSTR_F_THOUSAND_SEP)
    287         {   
     290        {
    288291            do
    289292            {
     
    295298        }
    296299        else
    297         {   
     300        {
    298301            do
    299302            {
     
    884887    return cch;
    885888}
     889RT_EXPORT_SYMBOL(RTStrFormatV);
    886890
    887891
     
    910914    return cch;
    911915}
    912 
     916RT_EXPORT_SYMBOL(RTStrFormat);
     917
  • trunk/src/VBox/Runtime/common/string/strformatrt.cpp

    r21315 r21337  
    142142*******************************************************************************/
    143143#define LOG_GROUP RTLOGGROUP_STRING
     144#include <iprt/string.h>
     145#include "internal/iprt.h"
     146
    144147#include <iprt/log.h>
    145 #include <iprt/string.h>
    146148#include <iprt/assert.h>
    147149#include <iprt/string.h>
  • trunk/src/VBox/Runtime/common/string/strformattype.cpp

    r17522 r21337  
    3535#define LOG_GROUP RTLOGGROUP_STRING
    3636#include <iprt/string.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/assert.h>
    3840#include <iprt/stdarg.h>
     
    314316    return rc;
    315317}
     318RT_EXPORT_SYMBOL(RTStrFormatTypeRegister);
    316319
    317320
     
    358361         : VERR_FILE_NOT_FOUND; /** @todo fix status code */
    359362}
     363RT_EXPORT_SYMBOL(RTStrFormatTypeDeregister);
    360364
    361365
     
    397401         : VERR_FILE_NOT_FOUND; /** @todo fix status code */
    398402}
     403RT_EXPORT_SYMBOL(RTStrFormatTypeSetUser);
    399404
    400405
  • trunk/src/VBox/Runtime/common/string/string.cpp

    r19384 r21337  
    3434*******************************************************************************/
    3535#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/alloc.h>
    3739#include <iprt/assert.h>
     
    5254        RTMemTmpFree(pszString);
    5355}
     56RT_EXPORT_SYMBOL(RTStrFree);
    5457
    5558
     
    6972    return psz;
    7073}
     74RT_EXPORT_SYMBOL(RTStrDup);
    7175
    7276
     
    9498    return VERR_NO_MEMORY;
    9599}
     100RT_EXPORT_SYMBOL(RTStrDupEx);
    96101
  • trunk/src/VBox/Runtime/common/string/strprintf.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739
     
    9799    return RTStrFormatV(strbufoutput, &Arg, pfnFormat, pvArg, pszFormat, args);
    98100}
     101RT_EXPORT_SYMBOL(RTStrPrintfExV);
    99102
    100103
     
    103106    return RTStrPrintfExV(NULL, NULL, pszBuffer, cchBuffer, pszFormat, args);
    104107}
     108RT_EXPORT_SYMBOL(RTStrPrintfV);
     109
    105110
    106111RTDECL(size_t) RTStrPrintfEx(PFNSTRFORMAT pfnFormat, void *pvArg, char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...)
     
    113118    return cbRet;
    114119}
     120RT_EXPORT_SYMBOL(RTStrPrintfEx);
     121
    115122
    116123RTDECL(size_t) RTStrPrintf(char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...)
     
    123130    return cbRet;
    124131}
     132RT_EXPORT_SYMBOL(RTStrPrintf);
    125133
  • trunk/src/VBox/Runtime/common/string/strspace.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739
     
    124126    return false;
    125127}
     128RT_EXPORT_SYMBOL(RTStrSpaceInsert);
    126129
    127130
     
    172175    return pCur;
    173176}
     177RT_EXPORT_SYMBOL(RTStrSpaceRemove);
    174178
    175179
     
    197201    return NULL;
    198202}
     203RT_EXPORT_SYMBOL(RTStrSpaceGet);
    199204
    200205
     
    215220    return KAVL_FN(DoWithAll)(pStrSpace, true, pfnCallback, pvUser);
    216221}
     222RT_EXPORT_SYMBOL(RTStrSpaceEnumerate);
    217223
    218224
     
    232238    return KAVL_FN(Destroy)(pStrSpace, pfnCallback, pvUser);
    233239}
    234 
     240RT_EXPORT_SYMBOL(RTStrSpaceDestroy);
     241
     242
  • trunk/src/VBox/Runtime/common/string/strstrip.cpp

    r8245 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/ctype.h>
    3639#include <iprt/string.h>
     
    5659    return psz;
    5760}
     61RT_EXPORT_SYMBOL(RTStrStrip);
    5862
    5963
     
    7276    return (char *)psz;
    7377}
     78RT_EXPORT_SYMBOL(RTStrStripL);
    7479
    7580
     
    8994    return psz;
    9095}
     96RT_EXPORT_SYMBOL(RTStrStripR);
    9197
  • trunk/src/VBox/Runtime/common/string/strtonum.cpp

    r8279 r21337  
    3434*******************************************************************************/
    3535#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/err.h>
    3739
     
    210212    return rc;
    211213}
     214RT_EXPORT_SYMBOL(RTStrToUInt64Ex);
    212215
    213216
     
    247250    return rc;
    248251}
     252RT_EXPORT_SYMBOL(RTStrToUInt64Full);
    249253
    250254
     
    265269    return 0;
    266270}
     271RT_EXPORT_SYMBOL(RTStrToUInt64);
    267272
    268273
     
    298303    return rc;
    299304}
     305RT_EXPORT_SYMBOL(RTStrToUInt32Ex);
    300306
    301307
     
    331337    return rc;
    332338}
     339RT_EXPORT_SYMBOL(RTStrToUInt32Full);
    333340
    334341
     
    349356    return 0;
    350357}
     358RT_EXPORT_SYMBOL(RTStrToUInt32);
    351359
    352360
     
    382390    return rc;
    383391}
     392RT_EXPORT_SYMBOL(RTStrToUInt16Ex);
    384393
    385394
     
    415424    return rc;
    416425}
     426RT_EXPORT_SYMBOL(RTStrToUInt16Full);
    417427
    418428
     
    433443    return 0;
    434444}
     445RT_EXPORT_SYMBOL(RTStrToUInt16);
    435446
    436447
     
    466477    return rc;
    467478}
     479RT_EXPORT_SYMBOL(RTStrToUInt8Ex);
    468480
    469481
     
    499511    return rc;
    500512}
     513RT_EXPORT_SYMBOL(RTStrToUInt8Full);
    501514
    502515
     
    517530    return 0;
    518531}
     532RT_EXPORT_SYMBOL(RTStrToUInt8);
    519533
    520534
     
    639653    return rc;
    640654}
     655RT_EXPORT_SYMBOL(RTStrToInt64Ex);
    641656
    642657
     
    675690    return rc;
    676691}
     692RT_EXPORT_SYMBOL(RTStrToInt64Full);
    677693
    678694
     
    693709    return 0;
    694710}
     711RT_EXPORT_SYMBOL(RTStrToInt64);
    695712
    696713
     
    726743    return rc;
    727744}
     745RT_EXPORT_SYMBOL(RTStrToInt32Ex);
    728746
    729747
     
    759777    return rc;
    760778}
     779RT_EXPORT_SYMBOL(RTStrToInt32Full);
    761780
    762781
     
    777796    return 0;
    778797}
     798RT_EXPORT_SYMBOL(RTStrToInt32);
    779799
    780800
     
    810830    return rc;
    811831}
     832RT_EXPORT_SYMBOL(RTStrToInt16Ex);
    812833
    813834
     
    843864    return rc;
    844865}
     866RT_EXPORT_SYMBOL(RTStrToInt16Full);
    845867
    846868
     
    861883    return 0;
    862884}
     885RT_EXPORT_SYMBOL(RTStrToInt16);
    863886
    864887
     
    894917    return rc;
    895918}
     919RT_EXPORT_SYMBOL(RTStrToInt8Ex);
    896920
    897921
     
    927951    return rc;
    928952}
     953RT_EXPORT_SYMBOL(RTStrToInt8Full);
    929954
    930955
     
    945970    return 0;
    946971}
    947 
     972RT_EXPORT_SYMBOL(RTStrToInt8);
     973
  • trunk/src/VBox/Runtime/common/string/uni.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/uni.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/alloc.h>
    3739
     
    4244        RTMemFree(pusz);
    4345}
     46RT_EXPORT_SYMBOL(RTUniFree);
     47
  • trunk/src/VBox/Runtime/common/string/utf-16.cpp

    r8245 r21337  
    11/* $Id$ */
    22/** @file
    3  * IPRT - UTF-16
     3 * IPRT - UTF-16.
    44 */
    55
     
    3434*******************************************************************************/
    3535#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/uni.h>
    3739#include <iprt/alloc.h>
     
    4749        RTMemTmpFree(pwszString);
    4850}
     51RT_EXPORT_SYMBOL(RTUtf16Free);
    4952
    5053
     
    5861    return pwsz;
    5962}
     63RT_EXPORT_SYMBOL(RTUtf16Dup);
    6064
    6165
     
    7377    return VERR_NO_MEMORY;
    7478}
     79RT_EXPORT_SYMBOL(RTUtf16DupEx);
    7580
    7681
     
    8590    return pwsz - pwszString;
    8691}
     92RT_EXPORT_SYMBOL(RTUtf16Len);
    8793
    8894
     
    106112    }
    107113}
     114RT_EXPORT_SYMBOL(RTUtf16Cmp);
    108115
    109116
     
    172179    }
    173180}
     181RT_EXPORT_SYMBOL(RTUtf16ICmp);
    174182
    175183
     
    209217    return pwsz;
    210218}
     219RT_EXPORT_SYMBOL(RTUtf16ToLower);
    211220
    212221
     
    242251    return pwsz;
    243252}
     253RT_EXPORT_SYMBOL(RTUtf16ToUpper);
    244254
    245255
     
    455465    return rc;
    456466}
     467RT_EXPORT_SYMBOL(RTUtf16ToUtf8);
    457468
    458469
     
    512523    return rc;
    513524}
     525RT_EXPORT_SYMBOL(RTUtf16ToUtf8Ex);
    514526
    515527
     
    520532    return RT_SUCCESS(rc) ? cch : 0;
    521533}
     534RT_EXPORT_SYMBOL(RTUtf16CalcUtf8Len);
    522535
    523536
     
    530543    return rc;
    531544}
     545RT_EXPORT_SYMBOL(RTUtf16CalcUtf8LenEx);
    532546
    533547
     
    560574    return RTUNICP_INVALID;
    561575}
     576RT_EXPORT_SYMBOL(RTUtf16GetCpInternal);
    562577
    563578
     
    604619    return rc;
    605620}
     621RT_EXPORT_SYMBOL(RTUtf16GetCpExInternal);
    606622
    607623
     
    631647    return pwsz;
    632648}
    633 
    634 
     649RT_EXPORT_SYMBOL(RTUtf16PutCpInternal);
     650
  • trunk/src/VBox/Runtime/common/string/utf-8.cpp

    r18570 r21337  
    3434*******************************************************************************/
    3535#include <iprt/string.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/uni.h>
    3739#include <iprt/alloc.h>
     
    282284    return RT_SUCCESS(rc) ? cCodePoints : 0;
    283285}
     286RT_EXPORT_SYMBOL(RTStrUniLen);
    284287
    285288
     
    292295    return rc;
    293296}
     297RT_EXPORT_SYMBOL(RTStrUniLenEx);
    294298
    295299
     
    298302    return RTStrValidateEncodingEx(psz, RTSTR_MAX, 0);
    299303}
     304RT_EXPORT_SYMBOL(RTStrValidateEncoding);
    300305
    301306
     
    322327    return RTStrUniLenEx(psz, cch, &cCpsIgnored);
    323328}
     329RT_EXPORT_SYMBOL(RTStrValidateEncodingEx);
    324330
    325331
     
    329335    return RT_SUCCESS(rc);
    330336}
     337RT_EXPORT_SYMBOL(RTStrIsValidEncoding);
    331338
    332339
     
    369376    return rc;
    370377}
     378RT_EXPORT_SYMBOL(RTStrToUni);
    371379
    372380
     
    428436    return rc;
    429437}
     438RT_EXPORT_SYMBOL(RTStrToUniEx);
    430439
    431440
     
    689698    return rc;
    690699}
     700RT_EXPORT_SYMBOL(RTStrToUtf16);
    691701
    692702
     
    748758    return rc;
    749759}
     760RT_EXPORT_SYMBOL(RTStrToUtf16Ex);
    750761
    751762
     
    756767    return RT_SUCCESS(rc) ? cwc : 0;
    757768}
     769RT_EXPORT_SYMBOL(RTStrCalcUtf16Len);
    758770
    759771
     
    766778    return rc;
    767779}
     780RT_EXPORT_SYMBOL(RTStrCalcUtf16LenEx);
    768781
    769782
     
    792805    return Cp;
    793806}
     807RT_EXPORT_SYMBOL(RTStrGetCpInternal);
    794808
    795809
     
    914928    return VINF_SUCCESS;
    915929}
     930RT_EXPORT_SYMBOL(RTStrGetCpExInternal);
    916931
    917932
     
    10691084    return VINF_SUCCESS;
    10701085}
     1086RT_EXPORT_SYMBOL(RTStrGetCpNExInternal);
    10711087
    10721088
     
    11291145    return (char *)puch;
    11301146}
     1147RT_EXPORT_SYMBOL(RTStrPutCpInternal);
    11311148
    11321149
     
    11611178    return (char *)pszStart;
    11621179}
     1180RT_EXPORT_SYMBOL(RTStrPrevCp);
    11631181
    11641182
     
    11871205    return strcmp(psz1, psz2);
    11881206}
     1207RT_EXPORT_SYMBOL(RTStrCmp);
    11891208
    11901209
     
    12151234    return strncmp(psz1, psz2, cchMax);
    12161235}
     1236RT_EXPORT_SYMBOL(RTStrNCmp);
    12171237
    12181238
     
    12891309    return RTStrCmp(psz1, psz2);
    12901310}
     1311RT_EXPORT_SYMBOL(RTStrICmp);
    12911312
    12921313
     
    13691390    return RTStrNCmp(psz1, psz2, cchMax);
    13701391}
     1392RT_EXPORT_SYMBOL(RTStrNICmp);
    13711393
    13721394
     
    13821404    return (char *)strstr(pszHaystack, pszNeedle);
    13831405}
     1406RT_EXPORT_SYMBOL(RTStrStr);
    13841407
    13851408
     
    14591482    return NULL;
    14601483}
     1484RT_EXPORT_SYMBOL(RTStrIStr);
    14611485
    14621486
     
    14791503    return psz;
    14801504}
     1505RT_EXPORT_SYMBOL(RTStrToLower);
    14811506
    14821507
     
    14991524    return psz;
    15001525}
    1501 
     1526RT_EXPORT_SYMBOL(RTStrToUpper);
     1527
  • trunk/src/VBox/Runtime/common/time/time.cpp

    r19546 r21337  
    3535#define LOG_GROUP RTLOGGROUP_TIME
    3636#include <iprt/time.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/string.h>
    3840#include <iprt/assert.h>
     
    247249    return rtTimeIsLeapYear(i32Year);
    248250}
     251RT_EXPORT_SYMBOL(RTTimeIsLeapYear);
    249252
    250253
     
    352355    return pTime;
    353356}
     357RT_EXPORT_SYMBOL(RTTimeExplode);
    354358
    355359
     
    403407    return pTimeSpec;
    404408}
     409RT_EXPORT_SYMBOL(RTTimeImplode);
    405410
    406411
     
    653658    return pTime;
    654659}
     660RT_EXPORT_SYMBOL(RTTimeNormalize);
    655661
    656662
     
    702708    return psz;
    703709}
     710RT_EXPORT_SYMBOL(RTTimeToString);
    704711
    705712
     
    718725    return RTTimeToString(RTTimeExplode(&Time, pTime), psz, cb);
    719726}
    720 
     727RT_EXPORT_SYMBOL(RTTimeSpecToString);
     728
  • trunk/src/VBox/Runtime/common/time/timeprog.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/time.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739#include "internal/time.h"
     
    4850    return RTTimeNanoTS() - g_u64ProgramStartNanoTS;
    4951}
     52RT_EXPORT_SYMBOL(RTTimeProgramNanoTS);
    5053
    5154
     
    5962    return RTTimeProgramNanoTS() / 1000;
    6063}
     64RT_EXPORT_SYMBOL(RTTimeProgramMicroTS);
    6165
    6266
     
    7074    return RTTimeMilliTS() - g_u64ProgramStartMilliTS;
    7175}
     76RT_EXPORT_SYMBOL(RTTimeProgramMilliTS);
    7277
    7378
     
    8287    return (uint32_t)(RTTimeProgramMilliTS() / 1000);
    8388}
     89RT_EXPORT_SYMBOL(RTTimeProgramSecTS);
    8490
    8591
     
    9399    return g_u64ProgramStartNanoTS;
    94100}
     101RT_EXPORT_SYMBOL(RTTimeProgramStartNanoTS);
     102
  • trunk/src/VBox/Runtime/common/time/timesup.cpp

    r8245 r21337  
    3535#define LOG_GROUP RTLOGGROUP_TIME
    3636#include <iprt/time.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/asm.h>
    3840#include <iprt/assert.h>
     
    191193    return rtTimeNanoTSInternal();
    192194}
     195RT_EXPORT_SYMBOL(RTTimeNanoTS);
    193196
    194197
     
    202205    return rtTimeNanoTSInternal() / 1000000;
    203206}
     207RT_EXPORT_SYMBOL(RTTimeMilliTS);
    204208
    205209
     
    214218    return g_TimeNanoTSData.c1nsSteps;
    215219}
     220RT_EXPORT_SYMBOL(RTTimeDbgSteps);
    216221
    217222
     
    225230    return g_TimeNanoTSData.cExpired;
    226231}
     232RT_EXPORT_SYMBOL(RTTimeDbgExpired);
    227233
    228234
     
    236242    return g_TimeNanoTSData.cBadPrev;
    237243}
     244RT_EXPORT_SYMBOL(RTTimeDbgBad);
    238245
    239246
     
    247254    return g_TimeNanoTSData.cUpdateRaces;
    248255}
     256RT_EXPORT_SYMBOL(RTTimeDbgRaces);
    249257#endif /* !IN_GUEST && !RT_NO_GIP */
     258
  • trunk/src/VBox/Runtime/common/time/timesupref.cpp

    r13832 r21337  
    3535*******************************************************************************/
    3636#include <iprt/time.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/asm.h>
    3840#include <VBox/sup.h>
     
    4850#define rtTimeNanoTSInternalRef RTTimeNanoTSLegacySync
    4951#include "timesupref.h"
     52RT_EXPORT_SYMBOL(RTTimeNanoTSLegacySync);
    5053
    5154#define ASYNC_GIP
     
    5659#define rtTimeNanoTSInternalRef RTTimeNanoTSLegacyAsync
    5760#include "timesupref.h"
     61RT_EXPORT_SYMBOL(RTTimeNanoTSLegacyAsync);
    5862
    5963
     
    6872#define rtTimeNanoTSInternalRef RTTimeNanoTSLFenceSync
    6973#include "timesupref.h"
     74RT_EXPORT_SYMBOL(RTTimeNanoTSLFenceSync);
    7075
    7176#define ASYNC_GIP
     
    7681#define rtTimeNanoTSInternalRef RTTimeNanoTSLFenceAsync
    7782#include "timesupref.h"
     83RT_EXPORT_SYMBOL(RTTimeNanoTSLFenceAsync);
    7884
    7985
    8086#endif /* !IN_GUEST */
     87
  • trunk/src/VBox/Runtime/common/time/timesysalias.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/time.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4546    return RTTimeSystemNanoTS();
    4647}
     48RT_EXPORT_SYMBOL(RTTimeNanoTS);
    4749
    4850
     
    5658    return RTTimeSystemMilliTS();
    5759}
     60RT_EXPORT_SYMBOL(RTTimeMilliTS);
    5861
  • trunk/src/VBox/Runtime/generic/RTAssertShouldPanic-generic.cpp

    r13319 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/assert.h>
     36#include "internal/iprt.h"
    3537
    3638
     
    3941    return true;
    4042}
     43RT_EXPORT_SYMBOL(RTAssertShouldPanic);
    4144
    42 
    43 #if defined(IN_RING0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
    44 /*
    45  * When we build this in the Linux kernel module, we wish to make the
    46  * symbols available to other modules as well.
    47  */
    48 #  include "the-linux-kernel.h"
    49 EXPORT_SYMBOL(RTAssertShouldPanic);
    50 #endif /* IN_RING0 && RT_OS_LINUX && IN_MODULE */
  • trunk/src/VBox/Runtime/generic/RTDirCreateTemp-generic.cpp

    r20111 r21337  
    3434*******************************************************************************/
    3535#include <iprt/dir.h>
     36#include "internal/iprt.h"
    3637
    3738#include <iprt/assert.h>
     
    117118    return VERR_ALREADY_EXISTS;
    118119}
     120RT_EXPORT_SYMBOL(RTDirCreateTemp);
    119121
  • trunk/src/VBox/Runtime/generic/RTDirQueryInfo-generic.cpp

    r8245 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
     
    4241
    4342#include <iprt/dir.h>
     43#include "internal/iprt.h"
     44
    4445#include <iprt/path.h>
    4546#include <iprt/assert.h>
  • trunk/src/VBox/Runtime/generic/RTDirSetTimes-generic.cpp

    r8245 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
     
    4241
    4342#include <iprt/dir.h>
     43#include "internal/iprt.h"
     44
    4445#include <iprt/path.h>
    4546#include <iprt/assert.h>
  • trunk/src/VBox/Runtime/generic/RTFileCopy-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/file.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    5051    return RTFileCopyEx(pszSrc, pszDst, 0, NULL, NULL);
    5152}
     53RT_EXPORT_SYMBOL(RTFileCopy);
    5254
  • trunk/src/VBox/Runtime/generic/RTFileMove-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#define LOG_GROUP RTLOGGROUP_FILE
    3236#include <iprt/file.h>
     37#include "internal/iprt.h"
     38
    3339#include <iprt/path.h>
    3440#include <iprt/err.h>
     
    109115    return rc;
    110116}
     117RT_EXPORT_SYMBOL(RTFileMove);
    111118
  • trunk/src/VBox/Runtime/generic/RTFileReadAll-generic.cpp

    r18805 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
    3534*******************************************************************************/
    3635#include <iprt/file.h>
     36#include "internal/iprt.h"
    3737
    3838
     
    4141    return RTFileReadAllEx(pszFilename, 0, RTFOFF_MAX, 0, ppvFile, pcbFile);
    4242}
     43RT_EXPORT_SYMBOL(RTFileReadAll);
    4344
  • trunk/src/VBox/Runtime/generic/RTFileReadAllByHandle-generic.cpp

    r8925 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
    3534*******************************************************************************/
    3635#include <iprt/file.h>
     36#include "internal/iprt.h"
    3737
    3838
     
    4141    return RTFileReadAllByHandleEx(File, 0, RTFOFF_MAX, 0, ppvFile, pcbFile);
    4242}
     43RT_EXPORT_SYMBOL(RTFileReadAllByHandle);
    4344
    44 
  • trunk/src/VBox/Runtime/generic/RTFileReadAllByHandleEx-generic.cpp

    r19350 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
    3534*******************************************************************************/
    3635#include <iprt/file.h>
     36#include "internal/iprt.h"
     37
    3738#include <iprt/mem.h>
    3839#include <iprt/assert.h>
     
    106107    return rc;
    107108}
     109RT_EXPORT_SYMBOL(RTFileReadAllByHandleEx);
    108110
  • trunk/src/VBox/Runtime/generic/RTFileReadAllEx-generic.cpp

    r19350 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
    3534*******************************************************************************/
    3635#include <iprt/file.h>
     36#include "internal/iprt.h"
     37
    3738#include <iprt/assert.h>
    3839#include <iprt/err.h>
     
    5253    return rc;
    5354}
     55RT_EXPORT_SYMBOL(RTFileReadAllEx);
    5456
  • trunk/src/VBox/Runtime/generic/RTFileReadAllFree-generic.cpp

    r8925 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
    3534*******************************************************************************/
    3635#include <iprt/file.h>
     36#include "internal/iprt.h"
     37
    3738#include <iprt/mem.h>
    3839#include <iprt/assert.h>
     
    5354    RTMemFree(pvFile);
    5455}
     56RT_EXPORT_SYMBOL(RTFileReadAllFree);
    5557
    56 
  • trunk/src/VBox/Runtime/generic/RTLogDefaultInit-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include <iprt/log.h>
     36
    3237
    3338RTDECL(PRTLOGGER) RTLogDefaultInit(void)
     
    3540    return NULL;
    3641}
     42RT_EXPORT_SYMBOL(RTLogDefaultInit);
    3743
    38 
  • trunk/src/VBox/Runtime/generic/RTLogWriteDebugger-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include <iprt/log.h>
     36#include "internal/iprt.h"
     37
    3238
    3339RTDECL(void) RTLogWriteDebugger(const char *pch, size_t cb)
     
    3743    return;
    3844}
     45RT_EXPORT_SYMBOL(RTLogWriteDebugger);
    3946
    4047
  • trunk/src/VBox/Runtime/generic/RTLogWriteStdErr-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include <iprt/log.h>
     36#include "internal/iprt.h"
    3237#include <stdio.h>
    3338
     
    3641    fwrite(pch, 1, cb, stderr);
    3742}
     43RT_EXPORT_SYMBOL(RTLogWriteStdErr);
    3844
  • trunk/src/VBox/Runtime/generic/RTLogWriteStdErr-stub-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include <iprt/log.h>
     36#include "internal/iprt.h"
    3237
    3338
     
    3843    return;
    3944}
     45RT_EXPORT_SYMBOL(RTLogWriteStdErr);
    4046
  • trunk/src/VBox/Runtime/generic/RTLogWriteStdOut-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include <iprt/log.h>
     36#include "internal/iprt.h"
    3237#include <stdio.h>
     38
    3339
    3440RTDECL(void) RTLogWriteStdOut(const char *pch, size_t cb)
     
    3743    fflush(stdout);
    3844}
     45RT_EXPORT_SYMBOL(RTLogWriteStdOut);
    3946
  • trunk/src/VBox/Runtime/generic/RTLogWriteStdOut-stub-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include <iprt/log.h>
     36#include "internal/iprt.h"
    3237
    3338
     
    3843    return;
    3944}
     45RT_EXPORT_SYMBOL(RTLogWriteStdOut);
    4046
  • trunk/src/VBox/Runtime/generic/RTLogWriteUser-generic.cpp

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include <iprt/log.h>
     36#include "internal/iprt.h"
    3237
    3338
     
    3843    return;
    3944}
     45RT_EXPORT_SYMBOL(RTLogWriteUser);
    4046
  • trunk/src/VBox/Runtime/generic/RTMpCpuId-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/asm.h>
    3739
     
    4446# error "Not ported to this architecture."
    4547    return NIL_RTAPICID;
    46 #endif 
     48#endif
    4749}
     50RT_EXPORT_SYMBOL(RTMpCpuId);
    4851
  • trunk/src/VBox/Runtime/generic/RTMpCpuIdFromSetIndex-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4041    return iCpu >= 0 ? iCpu : NIL_RTCPUID;
    4142}
     43RT_EXPORT_SYMBOL(RTMpCpuIdFromSetIndex);
    4244
  • trunk/src/VBox/Runtime/generic/RTMpCpuIdToSetIndex-generic.cpp

    r13908 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4041    return idCpu != NIL_RTCPUID ? (int) idCpu : -1;
    4142}
     43RT_EXPORT_SYMBOL(RTMpCpuIdToSetIndex);
    4244
  • trunk/src/VBox/Runtime/generic/RTMpGetCount-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/cpuset.h>
    3739
     
    4345    return RTCpuSetCount(&Set);
    4446}
     47RT_EXPORT_SYMBOL(RTMpGetCount);
    4548
  • trunk/src/VBox/Runtime/generic/RTMpGetCurFrequency-generic.cpp

    r10425 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3537
    3638
     
    4143    return 0;
    4244}
     45RT_EXPORT_SYMBOL(RTMpGetCurFrequency);
    4346
  • trunk/src/VBox/Runtime/generic/RTMpGetMaxCpuId-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4041    return RTMpCpuId();
    4142}
     43RT_EXPORT_SYMBOL(RTMpGetMaxCpuId);
    4244
  • trunk/src/VBox/Runtime/generic/RTMpGetMaxFrequency-generic.cpp

    r10425 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3537
    3638
     
    4143    return 0;
    4244}
     45RT_EXPORT_SYMBOL(RTMpGetMaxFrequency);
    4346
  • trunk/src/VBox/Runtime/generic/RTMpGetOnlineCount-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/cpuset.h>
    3739
     
    4345    return RTCpuSetCount(&Set);
    4446}
     47RT_EXPORT_SYMBOL(RTMpGetOnlineCount);
    4548
  • trunk/src/VBox/Runtime/generic/RTMpGetOnlineSet-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/cpuset.h>
    3739
     
    5052    return pSet;
    5153}
     54RT_EXPORT_SYMBOL(RTMpGetOnlineSet);
    5255
  • trunk/src/VBox/Runtime/generic/RTMpGetSet-generic.cpp

    r9429 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/cpuset.h>
    3739
     
    5052    return pSet;
    5153}
     54RT_EXPORT_SYMBOL(RTMpGetSet);
    5255
  • trunk/src/VBox/Runtime/generic/RTMpIsCpuOnline-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4041    return RTMpCpuId() == idCpu;
    4142}
     43RT_EXPORT_SYMBOL(RTMpIsCpuOnline);
    4244
  • trunk/src/VBox/Runtime/generic/RTMpIsCpuPossible-generic.cpp

    r9429 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4041    return RTMpCpuId() == idCpu;
    4142}
     43RT_EXPORT_SYMBOL(RTMpIsCpuPossible);
    4244
  • trunk/src/VBox/Runtime/generic/RTProcIsRunningByName-generic.cpp

    r17011 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/process.h>
     36#include "internal/iprt.h"
    3537
    3638
  • trunk/src/VBox/Runtime/generic/RTRandAdvCreateSystemFaster-generic.cpp

    r13908 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/rand.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/err.h>
    3639
     
    4144    return VERR_NOT_SUPPORTED;
    4245}
     46RT_EXPORT_SYMBOL(RTRandAdvCreateSystemFaster);
    4347
    44 
  • trunk/src/VBox/Runtime/generic/RTRandAdvCreateSystemTruer-generic.cpp

    r13908 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/rand.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/err.h>
    3639
     
    4144    return VERR_NOT_SUPPORTED;
    4245}
     46RT_EXPORT_SYMBOL(RTRandAdvCreateSystemTruer);
    4347
  • trunk/src/VBox/Runtime/generic/RTSystemQueryOSInfo-generic.cpp

    r11350 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/system.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/assert.h>
    3639#include <iprt/string.h>
     
    5457    return VERR_NOT_SUPPORTED;
    5558}
     59RT_EXPORT_SYMBOL(RTSystemQueryOSInfo);
    5660
    57 
    58 
  • trunk/src/VBox/Runtime/generic/RTTimeLocalDeltaNano-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/time.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4041    return 0;
    4142}
     43RT_EXPORT_SYMBOL(RTTimeLocalDeltaNano);
    4244
  • trunk/src/VBox/Runtime/generic/RTTimeLocalExplode-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/time.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4647    return pTime;
    4748}
     49RT_EXPORT_SYMBOL(RTTimeLocalExplode);
    4850
  • trunk/src/VBox/Runtime/generic/RTTimeLocalNow-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/time.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4950    return RTTimeSpecAddNano(pTime, i64PostDelta);
    5051}
     52RT_EXPORT_SYMBOL(RTTimeLocalNow);
    5153
  • trunk/src/VBox/Runtime/generic/RTTimerCreate-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/timer.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/err.h>
    3739#include <iprt/assert.h>
     
    5153    return rc;
    5254}
     55RT_EXPORT_SYMBOL(RTTimerCreate);
    5356
  • trunk/src/VBox/Runtime/generic/RTTimerLRCreate-generic.cpp

    r10944 r21337  
    3434*******************************************************************************/
    3535#include <iprt/timer.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/err.h>
    3739#include <iprt/assert.h>
     
    5153    return rc;
    5254}
     55RT_EXPORT_SYMBOL(RTTimerLRCreate);
    5356
  • trunk/src/VBox/Runtime/generic/RTUuidCreate-generic.cpp

    r11413 r21337  
    3434*******************************************************************************/
    3535#include <iprt/uuid.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739#include <iprt/err.h>
     
    5557    return VINF_SUCCESS;
    5658}
     59RT_EXPORT_SYMBOL(RTUuidCreate);
    5760
  • trunk/src/VBox/Runtime/generic/critsect-generic.cpp

    r20008 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/critsect.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/semaphore.h>
    3639#include <iprt/thread.h>
     
    5558    return RTCritSectInitEx(pCritSect, 0);
    5659}
     60RT_EXPORT_SYMBOL(RTCritSectInit);
    5761
    5862
     
    8791    return rc;
    8892}
     93RT_EXPORT_SYMBOL(RTCritSectInitEx);
    8994
    9095
     
    198203    }
    199204}
     205RT_EXPORT_SYMBOL(RTCritSectEnterMultiple);
    200206
    201207
     
    261267    return VINF_SUCCESS;
    262268}
     269RT_EXPORT_SYMBOL(RTCritSectTryEnter);
    263270
    264271
     
    349356    return VINF_SUCCESS;
    350357}
     358RT_EXPORT_SYMBOL(RTCritSectEnter);
    351359
    352360
     
    394402    return VINF_SUCCESS;
    395403}
     404RT_EXPORT_SYMBOL(RTCritSectLeave);
    396405
    397406
     
    414423    return rc;
    415424}
     425RT_EXPORT_SYMBOL(RTCritSectLeaveMultiple);
    416426
    417427
     
    432442}
    433443#endif /* RT_STRICT */
     444RT_EXPORT_SYMBOL(RTCritSectEnterDebug);
     445RT_EXPORT_SYMBOL(RTCritSectTryEnterDebug);
     446RT_EXPORT_SYMBOL(RTCritSectEnterMultipleDebug);
    434447
    435448
     
    469482    return rc;
    470483}
    471 
     484RT_EXPORT_SYMBOL(RTCritSectDelete);
     485
  • trunk/src/VBox/Runtime/generic/env-generic.cpp

    r20374 r21337  
    3434*******************************************************************************/
    3535#include <iprt/env.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739#include <iprt/alloc.h>
     
    5355RT_C_DECLS_END
    5456#endif
     57
    5558
    5659/*******************************************************************************
     
    152155    return rtEnvCreate(pEnv, RTENV_GROW_SIZE);
    153156}
     157RT_EXPORT_SYMBOL(RTEnvCreate);
    154158
    155159
     
    195199    return VINF_SUCCESS;
    196200}
     201RT_EXPORT_SYMBOL(RTEnvDestroy);
    197202
    198203
     
    274279    return rc;
    275280}
     281RT_EXPORT_SYMBOL(RTEnvClone);
    276282
    277283
     
    301307    return rc;
    302308}
     309RT_EXPORT_SYMBOL(RTEnvPutEx);
    303310
    304311
     
    406413    return rc;
    407414}
     415RT_EXPORT_SYMBOL(RTEnvSetEx);
    408416
    409417
     
    461469
    462470}
     471RT_EXPORT_SYMBOL(RTEnvUnsetEx);
    463472
    464473
     
    547556
    548557}
     558RT_EXPORT_SYMBOL(RTEnvGetEx);
    549559
    550560
     
    593603    return fExist;
    594604}
     605RT_EXPORT_SYMBOL(RTEnvExistEx);
    595606
    596607
     
    655666    return papszRet;
    656667}
     668RT_EXPORT_SYMBOL(RTEnvGetExecEnvP);
  • trunk/src/VBox/Runtime/generic/fs-stubs-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#define LOG_GROUP RTLOGGROUP_FS
     36#include <iprt/fs.h>
     37#include "internal/iprt.h"
    3638
    37 #include <iprt/fs.h>
    3839#include <iprt/err.h>
    3940#include <iprt/log.h>
  • trunk/src/VBox/Runtime/generic/mempool-generic.cpp

    r20575 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/mempool.h>
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/asm.h>
     
    154156    return rc;
    155157}
     158RT_EXPORT_SYMBOL(RTMemPoolCreate);
    156159
    157160
     
    192195    return VINF_SUCCESS;
    193196}
     197RT_EXPORT_SYMBOL(RTMemPoolDestroy);
    194198
    195199
     
    258262    return pEntry + 1;
    259263}
     264RT_EXPORT_SYMBOL(RTMemPoolAlloc);
    260265
    261266
     
    272277    return pEntry + 1;
    273278}
     279RT_EXPORT_SYMBOL(RTMemPoolAllocZ);
    274280
    275281
     
    287293    return pEntry + 1;
    288294}
     295RT_EXPORT_SYMBOL(RTMemPoolDup);
    289296
    290297
     
    303310    return pEntry + 1;
    304311}
     312RT_EXPORT_SYMBOL(RTMemPoolDupEx);
    305313
    306314
     
    346354    return pEntry + 1;
    347355}
     356RT_EXPORT_SYMBOL(RTMemPoolRealloc);
    348357
    349358
     
    352361    RTMemPoolRelease(hMemPool, pv);
    353362}
     363RT_EXPORT_SYMBOL(RTMemPoolFree);
    354364
    355365
     
    364374    return cRefs;
    365375}
     376RT_EXPORT_SYMBOL(RTMemPoolRetain);
    366377
    367378
     
    389400    return cRefs;
    390401}
    391 
     402RT_EXPORT_SYMBOL(RTMemPoolRelease);
     403
  • trunk/src/VBox/Runtime/generic/mppresent-generic.cpp

    r12104 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3537
    3638
     
    3941    return RTMpGetSet(pSet);
    4042}
     43RT_EXPORT_SYMBOL(RTMpGetPresentSet);
    4144
    4245
     
    4548    return RTMpGetCount();
    4649}
     50RT_EXPORT_SYMBOL(RTMpGetPresentCount);
    4751
    4852
     
    5155    return RTMpIsCpuPossible(idCpu);
    5256}
     57RT_EXPORT_SYMBOL(RTMpIsCpuPresent);
    5358
  • trunk/src/VBox/Runtime/generic/pathhost-generic.cpp

    r8245 r21337  
    3535#define LOG_GROUP RTLOGGROUP_PATH
    3636#include <iprt/string.h>
     37#include "internal/iprt.h"
     38
    3739#include "internal/path.h"
    3840
  • trunk/src/VBox/Runtime/generic/sched-generic.cpp

    r8245 r21337  
    3535#define LOG_GROUP RTLOGGROUP_THREAD
    3636#include <iprt/thread.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/log.h>
    3840#include <iprt/assert.h>
  • trunk/src/VBox/Runtime/generic/semfastmutex-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/semaphore.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/alloc.h>
    3739#include <iprt/err.h>
     
    5052    return rc;
    5153}
     54RT_EXPORT_SYMBOL(RTSemFastMutexCreate);
    5255
    5356
     
    6265    return rc;
    6366}
     67RT_EXPORT_SYMBOL(RTSemFastMutexDestroy);
    6468
    6569
     
    6872    return RTCritSectEnter((PRTCRITSECT)MutexSem);
    6973}
     74RT_EXPORT_SYMBOL(RTSemFastMutexRequest);
    7075
    7176
     
    7479    return RTCritSectLeave((PRTCRITSECT)MutexSem);
    7580}
     81RT_EXPORT_SYMBOL(RTSemFastMutexRelease);
    7682
  • trunk/src/VBox/Runtime/generic/semnoint-generic.cpp

    r8245 r21337  
    3535#define LOG_GROUP RTLOGGROUP_SEM
    3636#include <iprt/semaphore.h>
     37#include "internal/iprt.h"
     38
    3739#include <iprt/time.h>
    3840#include <iprt/err.h>
     
    6668    return rc;
    6769}
     70RT_EXPORT_SYMBOL(RTSemEventWait);
    6871
    6972
     
    9396    return rc;
    9497}
     98RT_EXPORT_SYMBOL(RTSemEventMultiWait);
    9599
    96100
     
    120124    return rc;
    121125}
     126RT_EXPORT_SYMBOL(RTSemMutexRequest);
    122127
  • trunk/src/VBox/Runtime/generic/semsrw-generic.cpp

    r20603 r21337  
    3333
    3434
    35 
    3635/*******************************************************************************
    3736*   Header Files                                                               *
    3837*******************************************************************************/
    3938#include <iprt/semaphore.h>
     39#include "internal/iprt.h"
     40
    4041#include <iprt/critsect.h>
    4142#include <iprt/alloc.h>
     
    150151    return rc;
    151152}
     153RT_EXPORT_SYMBOL(RTSemRWCreate);
    152154
    153155
     
    210212    return rc;
    211213}
     214RT_EXPORT_SYMBOL(RTSemRWDestroy);
    212215
    213216
     
    303306    return rc;
    304307}
     308RT_EXPORT_SYMBOL(RTSemRWRequestRead);
    305309
    306310
     
    309313    return RTSemRWRequestRead(RWSem, cMillies);
    310314}
     315RT_EXPORT_SYMBOL(RTSemRWRequestReadNoResume);
    311316
    312317
     
    357362    return rc;
    358363}
     364RT_EXPORT_SYMBOL(RTSemRWReleaseRead);
    359365
    360366
     
    466472    return rc;
    467473}
     474RT_EXPORT_SYMBOL(RTSemRWRequestWrite);
    468475
    469476
     
    472479    return RTSemRWRequestWrite(RWSem, cMillies);
    473480}
     481RT_EXPORT_SYMBOL(RTSemRWRequestWriteNoResume);
    474482
    475483
     
    533541    return rc;
    534542}
     543RT_EXPORT_SYMBOL(RTSemRWReleaseWrite);
    535544
    536545
     
    555564    return Writer == Self;
    556565}
     566RT_EXPORT_SYMBOL(RTSemRWIsWriteOwner);
    557567
    558568
     
    574584    return pThis->cWrites;
    575585}
     586RT_EXPORT_SYMBOL(RTSemRWGetWriteRecursion);
    576587
    577588
     
    593604    return pThis->cWriterReads;
    594605}
     606RT_EXPORT_SYMBOL(RTSemRWGetWriterReadRecursion);
  • trunk/src/VBox/Runtime/generic/spinlock-generic.cpp

    r8245 r21337  
    4343*******************************************************************************/
    4444#include <iprt/spinlock.h>
     45#include "internal/iprt.h"
     46
    4547#include <iprt/alloc.h>
    4648#include <iprt/asm.h>
     
    8890    return VINF_SUCCESS;
    8991}
     92RT_EXPORT_SYMBOL(RTSpinlockCreate);
    9093
    9194
     
    108111    return VINF_SUCCESS;
    109112}
     113RT_EXPORT_SYMBOL(RTSpinlockDestroy);
    110114
    111115
     
    132136#endif
    133137}
     138RT_EXPORT_SYMBOL(RTSpinlockAcquireNoInts);
    134139
    135140
     
    145150    ASMSetFlags(pTmp->uFlags);
    146151}
     152RT_EXPORT_SYMBOL(RTSpinlockReleaseNoInts);
    147153
    148154
     
    167173#endif
    168174}
     175RT_EXPORT_SYMBOL(RTSpinlockAcquire);
    169176
    170177
     
    179186        AssertMsgFailed(("Spinlock %p was not locked!\n", pSpinlockInt));
    180187}
     188RT_EXPORT_SYMBOL(RTSpinlockRelease);
    181189
  • trunk/src/VBox/Runtime/generic/strcache-stubs-generic.cpp

    r20647 r21337  
    3434*******************************************************************************/
    3535#include <iprt/strcache.h>
     36#include "internal/iprt.h"
    3637
    3738#include <iprt/asm.h>
     
    5051    return RTMemPoolCreate((PRTMEMPOOL)phStrCache, pszName);
    5152}
     53RT_EXPORT_SYMBOL(RTStrCacheCreate);
    5254
    5355
     
    5961    return RTMemPoolDestroy((RTMEMPOOL)hStrCache);
    6062}
     63RT_EXPORT_SYMBOL(RTStrCacheDestroy);
    6164
    6265
     
    6972    return (const char *)RTMemPoolDupEx((RTMEMPOOL)hStrCache, pchString, cchString, 1);
    7073}
     74RT_EXPORT_SYMBOL(RTStrCacheEnterN);
    7175
    7276
     
    7579    return RTStrCacheEnterN(hStrCache, psz, strlen(psz));
    7680}
     81RT_EXPORT_SYMBOL(RTStrCacheEnter);
    7782
    7883
     
    8287    return RTMemPoolRetain((void *)psz);
    8388}
     89RT_EXPORT_SYMBOL(RTStrCacheRetain);
    8490
    8591
     
    9096    return RTMemPoolRelease((RTMEMPOOL)hStrCache, (void *)psz);
    9197}
     98RT_EXPORT_SYMBOL(RTStrCacheRelease);
    9299
    93100
     
    98105    return strlen(psz);
    99106}
     107RT_EXPORT_SYMBOL(RTStrCacheLength);
    100108
  • trunk/src/VBox/Runtime/generic/timer-generic.cpp

    r14298 r21337  
    3434*******************************************************************************/
    3535#include <iprt/timer.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/thread.h>
    3739#include <iprt/err.h>
     
    134136    return rc;
    135137}
     138RT_EXPORT_SYMBOL(RTTimerCreateEx);
    136139
    137140
     
    181184    return VINF_SUCCESS;
    182185}
     186RT_EXPORT_SYMBOL(RTTimerDestroy);
    183187
    184188
     
    204208    return rc;
    205209}
     210RT_EXPORT_SYMBOL(RTTimerStart);
    206211
    207212
     
    223228    return rc;
    224229}
     230RT_EXPORT_SYMBOL(RTTimerStop);
    225231
    226232
     
    307313    return 10000000; /* 10ms */
    308314}
     315RT_EXPORT_SYMBOL(RTTimerGetSystemGranularity);
    309316
    310317
     
    313320    return VERR_NOT_SUPPORTED;
    314321}
     322RT_EXPORT_SYMBOL(RTTimerRequestSystemGranularity);
    315323
    316324
     
    319327    return VERR_NOT_SUPPORTED;
    320328}
    321 
     329RT_EXPORT_SYMBOL(RTTimerReleaseSystemGranularity);
     330
  • trunk/src/VBox/Runtime/generic/timerlr-generic.cpp

    r14298 r21337  
    3737*******************************************************************************/
    3838#include <iprt/timer.h>
     39#include "internal/iprt.h"
     40
    3941#include <iprt/thread.h>
    4042#include <iprt/err.h>
     
    140142    return rc;
    141143}
     144RT_EXPORT_SYMBOL(RTTimerLRCreateEx);
    142145
    143146
     
    176179    return VINF_SUCCESS;
    177180}
     181RT_EXPORT_SYMBOL(RTTimerLRDestroy);
    178182
    179183
     
    208212    return rc;
    209213}
     214RT_EXPORT_SYMBOL(RTTimerLRStart);
    210215
    211216
     
    233238    return rc;
    234239}
     240RT_EXPORT_SYMBOL(RTTimerLRStop);
    235241
    236242
  • trunk/src/VBox/Runtime/generic/tls-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#define LOG_GROUP RTLOGGROUP_THREAD
     36#include <iprt/thread.h>
     37#include "internal/iprt.h"
    3638
    37 #include <iprt/thread.h>
    3839#include <iprt/err.h>
    3940#include <iprt/asm.h>
  • trunk/src/VBox/Runtime/generic/utf16locale-generic.cpp

    r8245 r21337  
    3535#define LOG_GROUP RTLOGGROUP_UTF16
    3636#include <iprt/string.h>
     37#include "internal/iprt.h"
    3738
    3839
     
    4142    return RTUtf16ICmp(pusz1, pusz2);
    4243}
     44RT_EXPORT_SYMBOL(RTUtf16LocaleICmp);
    4345
  • trunk/src/VBox/Runtime/generic/uuid-generic.cpp

    r19198 r21337  
    3434*******************************************************************************/
    3535#include <iprt/uuid.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739#include <iprt/err.h>
     
    7981    return VINF_SUCCESS;
    8082}
     83RT_EXPORT_SYMBOL(RTUuidClear);
    8184
    8285
     
    8790        && !pUuid->au64[1];
    8891}
     92RT_EXPORT_SYMBOL(RTUuidIsNull);
    8993
    9094
     
    130134    return 0;
    131135}
     136RT_EXPORT_SYMBOL(RTUuidCompare);
    132137
    133138
     
    149154    return RTUuidCompare(pUuid1, &Uuid2);
    150155}
     156RT_EXPORT_SYMBOL(RTUuidCompareStr);
    151157
    152158
     
    218224    return VINF_SUCCESS;
    219225}
     226RT_EXPORT_SYMBOL(RTUuidToStr);
    220227
    221228
     
    312319    return VINF_SUCCESS;
    313320}
     321RT_EXPORT_SYMBOL(RTUuidFromStr);
    314322
    315323
     
    382390    return VINF_SUCCESS;
    383391}
     392RT_EXPORT_SYMBOL(RTUuidToUtf16);
    384393
    385394
     
    477486    return VINF_SUCCESS;
    478487}
    479 
     488RT_EXPORT_SYMBOL(RTUuidFromUtf16);
     489
  • trunk/src/VBox/Runtime/r0drv/alloc-r0drv.cpp

    r14743 r21337  
    3333*   Header Files                                                               *
    3434*******************************************************************************/
     35#include <iprt/mem.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/string.h>
    36 #include <iprt/alloc.h>
    3739#include <iprt/assert.h>
    3840#include <iprt/param.h>
     
    8486    return RTMemAlloc(cb);
    8587}
     88RT_EXPORT_SYMBOL(RTMemTmpAlloc);
    8689
    8790
     
    99102    return RTMemAllocZ(cb);
    100103}
     104RT_EXPORT_SYMBOL(RTMemTmpAllocZ);
    101105
    102106
     
    110114    return RTMemFree(pv);
    111115}
     116RT_EXPORT_SYMBOL(RTMemTmpFree);
    112117
    113118
     
    132137    return NULL;
    133138}
     139RT_EXPORT_SYMBOL(RTMemAlloc);
    134140
    135141
     
    160166    return NULL;
    161167}
     168RT_EXPORT_SYMBOL(RTMemAllocZ);
    162169
    163170
     
    210217    return NULL;
    211218}
     219RT_EXPORT_SYMBOL(RTMemRealloc);
    212220
    213221
     
    240248        AssertMsgFailed(("pHdr->u32Magic=%RX32 pv=%p\n", pHdr->u32Magic, pv));
    241249}
     250RT_EXPORT_SYMBOL(RTMemFree);
    242251
    243252
     
    262271    return NULL;
    263272}
     273RT_EXPORT_SYMBOL(RTMemExecAlloc);
    264274
    265275
     
    291301        AssertMsgFailed(("pHdr->u32Magic=%RX32 pv=%p\n", pHdr->u32Magic, pv));
    292302}
    293 
     303RT_EXPORT_SYMBOL(RTMemExecFree);
     304
  • trunk/src/VBox/Runtime/r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp

    r15843 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4546    return false;
    4647}
     48RT_EXPORT_SYMBOL(RTMpIsCpuWorkPending);
    4749
  • trunk/src/VBox/Runtime/r0drv/generic/RTMpOn-r0drv-generic.cpp

    r8245 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/err.h>
    3739
     
    4446    return VERR_NOT_SUPPORTED;
    4547}
     48RT_EXPORT_SYMBOL(RTMpOnAll);
    4649
    4750
     
    5356    return VERR_NOT_SUPPORTED;
    5457}
     58RT_EXPORT_SYMBOL(RTMpOnOthers);
    5559
    5660
     
    6367    return VERR_NOT_SUPPORTED;
    6468}
     69RT_EXPORT_SYMBOL(RTMpOnSpecific);
    6570
  • trunk/src/VBox/Runtime/r0drv/generic/RTMpPokeCpu-r0drv-generic.cpp

    r19389 r21337  
    3434*******************************************************************************/
    3535#include <iprt/mp.h>
     36#include "internal/iprt.h"
    3637
    3738
     
    4849    return RTMpOnSpecific(idCpu, rtMpNtPokeCpuDummy, NULL, NULL);
    4950}
     51RT_EXPORT_SYMBOL(RTMpPokeCpu);
    5052
  • trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptDisable-r0drv-generic.cpp

    r13254 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/thread.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/assert.h>
    3639
     
    4245    pState->uchDummy = 42;
    4346}
     47RT_EXPORT_SYMBOL(RTThreadPreemptDisable);
    4448
  • trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptIsEnabled-r0drv-generic.cpp

    r13254 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/thread.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/assert.h>
    3639
     
    4144    return true;
    4245}
     46RT_EXPORT_SYMBOL(RTThreadPreemptIsEnabled);
    4347
  • trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptIsPending-r0drv-generic.cpp

    r19918 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/thread.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/assert.h>
    3639
     
    4144    return false;
    4245}
     46RT_EXPORT_SYMBOL(RTThreadPreemptIsPending);
    4347
  • trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptIsPendingTrusty-r0drv-generic.cpp

    r20124 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/thread.h>
     36#include "internal/iprt.h"
    3537
    3638
     
    4042    return false;
    4143}
     44RT_EXPORT_SYMBOL(RTThreadPreemptIsPendingTrusty);
    4245
  • trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptRestore-r0drv-generic.cpp

    r13275 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/thread.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/assert.h>
    3639
     
    4245    pState->uchDummy = 0;
    4346}
     47RT_EXPORT_SYMBOL(RTThreadPreemptRestore);
    4448
  • trunk/src/VBox/Runtime/r0drv/generic/mpnotification-r0drv-generic.cpp

    r9619 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/err.h>
    3639#include "r0drv/mp-r0drv.h"
     
    4346    return VINF_SUCCESS;
    4447}
     48RT_EXPORT_SYMBOL(RTMpNotificationRegister);
    4549
    4650
     
    5155    return VINF_SUCCESS;
    5256}
     57RT_EXPORT_SYMBOL(RTMpNotificationDeregister);
    5358
    5459
  • trunk/src/VBox/Runtime/r0drv/initterm-r0drv.cpp

    r20909 r21337  
    3434*******************************************************************************/
    3535#include <iprt/initterm.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/asm.h>
    3739#include <iprt/assert.h>
     
    9698    return rc;
    9799}
     100RT_EXPORT_SYMBOL(RTR0Init);
    98101
    99102
     
    120123    rtR0TermNative();
    121124}
     125RT_EXPORT_SYMBOL(RTR0Term);
    122126
  • trunk/src/VBox/Runtime/r0drv/linux/RTLogWriteDebugger-r0drv-linux.c

    r8245 r21337  
    2929 */
    3030
     31
     32/*******************************************************************************
     33*   Header Files                                                               *
     34*******************************************************************************/
    3135#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3237#include <iprt/log.h>
    3338
     
    3742    printk("%.*s", (int)cb, pch);
    3843}
     44RT_EXPORT_SYMBOL(RTLogWriteDebugger);
    3945
  • trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

    r13665 r21337  
    3434*******************************************************************************/
    3535#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
     37
    3638#include <iprt/mem.h>
    3739#include <iprt/assert.h>
     
    105107    return rc;
    106108}
     109RT_EXPORT_SYMBOL(RTR0MemExecDonate);
    107110#endif /* RTMEMALLOC_EXEC_HEAP */
    108111
     
    272275    return NULL;
    273276}
     277RT_EXPORT_SYMBOL(RTMemContAlloc);
    274278
    275279
     
    312316    }
    313317}
    314 
     318RT_EXPORT_SYMBOL(RTMemContFree);
     319
  • trunk/src/VBox/Runtime/r0drv/linux/assert-r0drv-linux.c

    r13512 r21337  
    3434*******************************************************************************/
    3535#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3637
    3738#include <iprt/assert.h>
     
    4748/** The last assert message, 1st part. */
    4849RTDATADECL(char)                    g_szRTAssertMsg1[1024];
     50RT_EXPORT_SYMBOL(g_szRTAssertMsg1);
    4951/** The last assert message, 2nd part. */
    5052RTDATADECL(char)                    g_szRTAssertMsg2[2048];
     53RT_EXPORT_SYMBOL(g_szRTAssertMsg2);
    5154/** The last assert message, file name. */
    5255RTDATADECL(const char *) volatile   g_pszRTAssertExpr;
     56RT_EXPORT_SYMBOL(g_pszRTAssertExpr);
    5357/** The last assert message, file name. */
    5458RTDATADECL(const char *) volatile   g_pszRTAssertFile;
     59RT_EXPORT_SYMBOL(g_pszRTAssertFile);
    5560/** The last assert message, line number. */
    5661RTDATADECL(uint32_t) volatile       g_u32RTAssertLine;
     62RT_EXPORT_SYMBOL(g_u32RTAssertLine);
    5763/** The last assert message, function name. */
    5864RTDATADECL(const char *) volatile   g_pszRTAssertFunction;
     65RT_EXPORT_SYMBOL(g_pszRTAssertFunction);
    5966
    6067
     
    8390    ASMAtomicUoWriteU32(&g_u32RTAssertLine, uLine);
    8491}
     92RT_EXPORT_SYMBOL(AssertMsg1);
    8593
    8694
     
    106114    va_end(va);
    107115}
     116RT_EXPORT_SYMBOL(AssertMsg2);
    108117
    109118
     
    112121    panic("%s%s", g_szRTAssertMsg1, g_szRTAssertMsg2);
    113122}
     123RT_EXPORT_SYMBOL(RTR0AssertPanicSystem);
    114124
    115 
    116 #if defined(RT_OS_LINUX) && defined(IN_MODULE)
    117 /*
    118  * When we build this in the Linux kernel module, we wish to make the
    119  * symbols available to other modules as well.
    120  */
    121 # include "the-linux-kernel.h"
    122 EXPORT_SYMBOL (RTR0AssertPanicSystem);
    123 EXPORT_SYMBOL (AssertMsg1);
    124 EXPORT_SYMBOL (AssertMsg2);
    125 #endif /* RT_OS_LINUX && IN_MODULE */
  • trunk/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c

    r8245 r21337  
    3434*******************************************************************************/
    3535#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3637#include <iprt/err.h>
    3738#include <iprt/assert.h>
     
    4546/* in alloc-r0drv0-linux.c */
    4647extern void rtR0MemExecCleanup(void);
    47 #endif 
     48#endif
    4849
    4950
     
    5859#ifdef RT_ARCH_AMD64
    5960    rtR0MemExecCleanup();
    60 #endif 
     61#endif
    6162}
    6263
  • trunk/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c

    r21296 r21337  
    3434*******************************************************************************/
    3535#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3637
    3738#include <iprt/mem.h>
     
    4546    return VERR_ACCESS_DENIED;
    4647}
     48RT_EXPORT_SYMBOL(RTR0MemUserCopyFrom);
    4749
    4850
     
    5355    return VERR_ACCESS_DENIED;
    5456}
     57RT_EXPORT_SYMBOL(RTR0MemUserCopyTo);
    5558
    5659
     
    5962    return access_ok(VERIFY_READ, (void *)R3Ptr, 1);
    6063}
     64RT_EXPORT_SYMBOL(RTR0MemUserIsValidAddr);
    6165
    6266
     
    8387#endif
    8488}
     89RT_EXPORT_SYMBOL(RTR0MemKernelIsValidAddr);
    8590
    8691
     
    9398#endif
    9499}
     100RT_EXPORT_SYMBOL(RTR0MemAreKrnlAndUsrDifferent);
    95101
  • trunk/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c

    r19389 r21337  
    3434*******************************************************************************/
    3535#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3637
    3738#include <iprt/mp.h>
     
    4647    return smp_processor_id();
    4748}
     49RT_EXPORT_SYMBOL(RTMpCpuId);
    4850
    4951
     
    5254    return idCpu < NR_CPUS ? (int)idCpu : -1;
    5355}
     56RT_EXPORT_SYMBOL(RTMpCpuIdToSetIndex);
    5457
    5558
     
    5861    return iCpu < NR_CPUS ? (RTCPUID)iCpu : NIL_RTCPUID;
    5962}
     63RT_EXPORT_SYMBOL(RTMpCpuIdFromSetIndex);
    6064
    6165
     
    6468    return NR_CPUS - 1; //???
    6569}
     70RT_EXPORT_SYMBOL(RTMpGetMaxCpuId);
    6671
    6772
     
    8186#endif
    8287}
     88RT_EXPORT_SYMBOL(RTMpIsCpuPossible);
    8389
    8490
     
    96102    return pSet;
    97103}
     104RT_EXPORT_SYMBOL(RTMpGetSet);
    98105
    99106
     
    116123#endif
    117124}
     125RT_EXPORT_SYMBOL(RTMpGetCount);
    118126
    119127
     
    132140#endif
    133141}
     142RT_EXPORT_SYMBOL(RTMpIsCpuOnline);
    134143
    135144
     
    152161    return pSet;
    153162}
     163RT_EXPORT_SYMBOL(RTMpGetOnlineSet);
    154164
    155165
     
    168178#endif
    169179}
     180RT_EXPORT_SYMBOL(RTMpGetOnlineCount);
    170181
    171182
     
    175186    return false;
    176187}
     188RT_EXPORT_SYMBOL(RTMpIsCpuWorkPending);
    177189
    178190
     
    222234    return VINF_SUCCESS;
    223235}
     236RT_EXPORT_SYMBOL(RTMpOnAll);
    224237
    225238
     
    250263    return VINF_SUCCESS;
    251264}
     265RT_EXPORT_SYMBOL(RTMpOnOthers);
    252266
    253267
     
    319333    return rc;
    320334}
     335RT_EXPORT_SYMBOL(RTMpOnSpecific);
    321336
    322337
     
    359374#endif /* older kernels */
    360375}
    361 
     376RT_EXPORT_SYMBOL(RTMpPokeCpu);
     377
  • trunk/src/VBox/Runtime/r0drv/linux/mpnotification-r0drv-linux.c

    r12029 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/mp.h>
     
    6163};
    6264
    63 #ifdef CPU_DOWN_FAILED
     65# ifdef CPU_DOWN_FAILED
    6466/**
    6567 * The set of CPUs we've seen going offline recently.
    6668 */
    6769static RTCPUSET g_MpPendingOfflineSet;
    68 #endif
     70# endif
    6971
    7072
     
    9698         * Ignore failure events for CPUs we didn't see go offline.
    9799         */
    98 #ifdef CPU_DOWN_FAILED
     100# ifdef CPU_DOWN_FAILED
    99101        case CPU_DOWN_FAILED:
    100 # if defined(CPU_TASKS_FROZEN) && defined(CPU_DOWN_FAILED_FROZEN)
     102#  if defined(CPU_TASKS_FROZEN) && defined(CPU_DOWN_FAILED_FROZEN)
    101103        case CPU_DOWN_FAILED_FROZEN:
    102 # endif
     104#  endif
    103105            if (!RTCpuSetIsMember(&g_MpPendingOfflineSet, idCpu))
    104106                return 0;
    105107        /* fall thru */
    106 #endif
     108# endif
    107109        case CPU_ONLINE:
    108 #if defined(CPU_TASKS_FROZEN) && defined(CPU_ONLINE_FROZEN)
     110# if defined(CPU_TASKS_FROZEN) && defined(CPU_ONLINE_FROZEN)
    109111        case CPU_ONLINE_FROZEN:
    110 #endif
    111 #ifdef CPU_DOWN_FAILED
     112# endif
     113# ifdef CPU_DOWN_FAILED
    112114            RTCpuSetDel(&g_MpPendingOfflineSet, idCpu);
    113 #endif
     115# endif
    114116            rtMpNotificationDoCallbacks(RTMPEVENT_ONLINE, idCpu);
    115117            break;
     
    120122         * it's exactly one.
    121123         */
    122 #ifdef CPU_DOWN_PREPARE
     124# ifdef CPU_DOWN_PREPARE
    123125        case CPU_DOWN_PREPARE:
    124 # if defined(CPU_TASKS_FROZEN) && defined(CPU_DOWN_PREPARE_FROZEN)
     126#  if defined(CPU_TASKS_FROZEN) && defined(CPU_DOWN_PREPARE_FROZEN)
    125127        case CPU_DOWN_PREPARE_FROZEN:
     128#  endif
     129# else
     130        case CPU_DEAD:
     131#  if defined(CPU_TASKS_FROZEN) && defined(CPU_DEAD_FROZEN)
     132        case CPU_DEAD_FROZEN:
     133#  endif
    126134# endif
    127 #else
    128         case CPU_DEAD:
    129 # if defined(CPU_TASKS_FROZEN) && defined(CPU_DEAD_FROZEN)
    130         case CPU_DEAD_FROZEN:
     135            rtMpNotificationDoCallbacks(RTMPEVENT_OFFLINE, idCpu);
     136# ifdef CPU_DOWN_FAILED
     137            RTCpuSetAdd(&g_MpPendingOfflineSet, idCpu);
    131138# endif
    132 #endif
    133             rtMpNotificationDoCallbacks(RTMPEVENT_OFFLINE, idCpu);
    134 #ifdef CPU_DOWN_FAILED
    135             RTCpuSetAdd(&g_MpPendingOfflineSet, idCpu);
    136 #endif
    137139            break;
    138140    }
     
    146148    int rc;
    147149
    148 #ifdef CPU_DOWN_FAILED
     150# ifdef CPU_DOWN_FAILED
    149151    RTCpuSetEmpty(&g_MpPendingOfflineSet);
    150 #endif
     152# endif
    151153
    152154    rc = register_cpu_notifier(&g_NotifierBlock);
  • trunk/src/VBox/Runtime/r0drv/linux/process-r0drv-linux.c

    r8245 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/process.h>
     
    4143    return (RTPROCESS)current->tgid;
    4244}
     45RT_EXPORT_SYMBOL(RTProcSelf);
    4346
    4447
     
    4750    return (RTR0PROCESS)current->tgid;
    4851}
     52RT_EXPORT_SYMBOL(RTR0ProcHandleSelf);
    4953
  • trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c

    r19888 r21337  
    3434*******************************************************************************/
    3535#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3637#include <iprt/semaphore.h>
    3738#include <iprt/alloc.h>
     
    7475    return VERR_NO_MEMORY;
    7576}
     77RT_EXPORT_SYMBOL(RTSemEventCreate);
    7678
    7779
     
    100102    return VINF_SUCCESS;
    101103}
     104RT_EXPORT_SYMBOL(RTSemEventDestroy);
    102105
    103106
     
    125128    return VINF_SUCCESS;
    126129}
     130RT_EXPORT_SYMBOL(RTSemEventSignal);
    127131
    128132
     
    204208    return rtSemEventWait(pEventInt, cMillies, false /* fInterruptible */);
    205209}
     210RT_EXPORT_SYMBOL(RTSemEventWait);
    206211
    207212
     
    222227    return rtSemEventWait(pEventInt, cMillies, true /* fInterruptible */);
    223228}
    224 
     229RT_EXPORT_SYMBOL(RTSemEventWaitNoResume);
     230
  • trunk/src/VBox/Runtime/r0drv/linux/semeventmulti-r0drv-linux.c

    r19886 r21337  
    3434*******************************************************************************/
    3535#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3637#include <iprt/semaphore.h>
    3738#include <iprt/alloc.h>
     
    7475    return VERR_NO_MEMORY;
    7576}
     77RT_EXPORT_SYMBOL(RTSemEventMultiCreate);
    7678
    7779
     
    9799    return VINF_SUCCESS;
    98100}
     101RT_EXPORT_SYMBOL(RTSemEventMultiDestroy);
    99102
    100103
     
    117120    return VINF_SUCCESS;
    118121}
     122RT_EXPORT_SYMBOL(RTSemEventMultiSignal);
    119123
    120124
     
    136140    return VINF_SUCCESS;
    137141}
     142RT_EXPORT_SYMBOL(RTSemEventMultiReset);
    138143
    139144
     
    211216    return rtSemEventMultiWait(pThis, cMillies, false /* fInterruptible */);
    212217}
     218RT_EXPORT_SYMBOL(RTSemEventMultiWait);
    213219
    214220
     
    225231    return rtSemEventMultiWait(pThis, cMillies, true /* fInterruptible */);
    226232}
    227 
     233RT_EXPORT_SYMBOL(RTSemEventMultiWaitNoResume);
     234
  • trunk/src/VBox/Runtime/r0drv/linux/semfastmutex-r0drv-linux.c

    r8245 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
    3534*******************************************************************************/
    3635#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3737#include <iprt/semaphore.h>
    3838#include <iprt/alloc.h>
     
    8787    return VINF_SUCCESS;
    8888}
     89RT_EXPORT_SYMBOL(RTSemFastMutexCreate);
    8990
    9091
     
    107108    return VINF_SUCCESS;
    108109}
     110RT_EXPORT_SYMBOL(RTSemFastMutexDestroy);
    109111
    110112
     
    133135    return VINF_SUCCESS;
    134136}
     137RT_EXPORT_SYMBOL(RTSemFastMutexRequest);
    135138
    136139
     
    158161    return VINF_SUCCESS;
    159162}
     163RT_EXPORT_SYMBOL(RTSemFastMutexRelease);
    160164
  • trunk/src/VBox/Runtime/r0drv/linux/semmutex-r0drv-linux.c

    r8245 r21337  
    3030
    3131
    32 
    3332/*******************************************************************************
    3433*   Header Files                                                               *
    3534*******************************************************************************/
    3635#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3737#include <iprt/semaphore.h>
    3838#include <iprt/alloc.h>
     
    7777    return VERR_NO_MEMORY;
    7878}
     79RT_EXPORT_SYMBOL(RTSemMutexCreate);
    7980
    8081
     
    103104    return VINF_SUCCESS;
    104105}
     106RT_EXPORT_SYMBOL(RTSemMutexDestroy);
    105107
    106108
     
    187189    return VINF_SUCCESS;
    188190}
     191RT_EXPORT_SYMBOL(RTSemMutexRequest);
    189192
    190193
     
    222225    return VINF_SUCCESS;
    223226}
    224 
     227RT_EXPORT_SYMBOL(RTSemMutexRelease);
     228
  • trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c

    r13770 r21337  
    4242#include "internal/magics.h"
    4343
     44
    4445/*******************************************************************************
    4546*   Structures and Typedefs                                                    *
     
    8182    return VINF_SUCCESS;
    8283}
     84RT_EXPORT_SYMBOL(RTSpinlockCreate);
    8385
    8486
     
    101103    return VINF_SUCCESS;
    102104}
     105RT_EXPORT_SYMBOL(RTSpinlockDestroy);
    103106
    104107
     
    112115    spin_lock_irqsave(&pSpinlockInt->Spinlock, pTmp->flFlags);
    113116}
     117RT_EXPORT_SYMBOL(RTSpinlockAcquireNoInts);
    114118
    115119
     
    123127    spin_unlock_irqrestore(&pSpinlockInt->Spinlock, pTmp->flFlags);
    124128}
     129RT_EXPORT_SYMBOL(RTSpinlockReleaseNoInts);
    125130
    126131
     
    134139    spin_lock(&pSpinlockInt->Spinlock);
    135140}
     141RT_EXPORT_SYMBOL(RTSpinlockAcquire);
    136142
    137143
     
    145151    spin_unlock(&pSpinlockInt->Spinlock);
    146152}
     153RT_EXPORT_SYMBOL(RTSpinlockRelease);
    147154
    148 #if defined(IN_GUEST_R0) && defined(IN_MODULE)
    149 EXPORT_SYMBOL(RTSpinlockCreate);
    150 EXPORT_SYMBOL(RTSpinlockDestroy);
    151 EXPORT_SYMBOL(RTSpinlockAcquireNoInts);
    152 EXPORT_SYMBOL(RTSpinlockReleaseNoInts);
    153 #endif
  • trunk/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c

    r20124 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/thread.h>
     
    4345    return (RTNATIVETHREAD)current;
    4446}
     47RT_EXPORT_SYMBOL(RTThreadNativeSelf);
    4548
    4649
    47 RTDECL(int)   RTThreadSleep(unsigned cMillies)
     50RTDECL(int) RTThreadSleep(unsigned cMillies)
    4851{
    4952    long cJiffies = msecs_to_jiffies(cMillies);
     
    5457    return VERR_INTERRUPTED;
    5558}
     59RT_EXPORT_SYMBOL(RTThreadSleep);
    5660
    5761
     
    6771    return true;
    6872}
     73RT_EXPORT_SYMBOL(RTThreadYield);
    6974
    7075
     
    8287#endif
    8388}
     89RT_EXPORT_SYMBOL(RTThreadPreemptIsEnabled);
    8490
    8591
     
    100106#endif
    101107}
     108RT_EXPORT_SYMBOL(RTThreadPreemptIsPending);
    102109
    103110
     
    107114    return true;
    108115}
     116RT_EXPORT_SYMBOL(RTThreadPreemptIsPendingTrusty);
    109117
    110118
     
    122130    preempt_disable();
    123131}
     132RT_EXPORT_SYMBOL(RTThreadPreemptDisable);
    124133
    125134
     
    132141    preempt_enable();
    133142}
     143RT_EXPORT_SYMBOL(RTThreadPreemptRestore);
    134144
  • trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c

    r19937 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/assert.h>
  • trunk/src/VBox/Runtime/r0drv/linux/time-r0drv-linux.c

    r9369 r21337  
    3535#define LOG_GROUP RTLOGGROUP_TIME
    3636#include "the-linux-kernel.h"
     37#include "internal/iprt.h"
    3738#include <iprt/time.h>
    3839#include <iprt/asm.h>
     
    147148    return rtTimeGetSystemNanoTS();
    148149}
     150RT_EXPORT_SYMBOL(RTTimeNanoTS);
    149151
    150152
     
    153155    return rtTimeGetSystemNanoTS() / 1000000;
    154156}
     157RT_EXPORT_SYMBOL(RTTimeMilliTS);
    155158
    156159
     
    159162    return rtTimeGetSystemNanoTS();
    160163}
     164RT_EXPORT_SYMBOL(RTTimeSystemNanoTS);
    161165
    162166
     
    165169    return rtTimeGetSystemNanoTS() / 1000000;
    166170}
     171RT_EXPORT_SYMBOL(RTTimeSystemMilliTS);
    167172
    168173
     
    180185#endif
    181186}
     187RT_EXPORT_SYMBOL(RTTimeNow);
    182188
  • trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c

    r14318 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include "the-linux-kernel.h"
     36#include "internal/iprt.h"
    3537
    3638#include <iprt/timer.h>
     
    744746    return VINF_SUCCESS;
    745747}
     748RT_EXPORT_SYMBOL(RTTimerStart);
    746749
    747750
     
    775778    return VINF_SUCCESS;
    776779}
     780RT_EXPORT_SYMBOL(RTTimerStop);
    777781
    778782
     
    818822    return VINF_SUCCESS;
    819823}
     824RT_EXPORT_SYMBOL(RTTimerDestroy);
    820825
    821826
     
    924929    return VINF_SUCCESS;
    925930}
     931RT_EXPORT_SYMBOL(RTTimerCreateEx);
    926932
    927933
     
    939945    return 1000000000 / HZ; /* ns */
    940946}
     947RT_EXPORT_SYMBOL(RTTimerGetSystemGranularity);
    941948
    942949
     
    945952    return VERR_NOT_SUPPORTED;
    946953}
     954RT_EXPORT_SYMBOL(RTTimerRequestSystemGranularity);
    947955
    948956
     
    951959    return VERR_NOT_SUPPORTED;
    952960}
    953 
     961RT_EXPORT_SYMBOL(RTTimerReleaseSystemGranularity);
     962
  • trunk/src/VBox/Runtime/r0drv/memobj-r0drv.cpp

    r20525 r21337  
    3535#define LOG_GROUP RTLOGGROUP_DEFAULT ///@todo RTLOGGROUP_MEM
    3636#include <iprt/memobj.h>
     37#include "internal/iprt.h"
    3738
    3839#include <iprt/alloc.h>
     
    158159    return rtR0MemObjIsMapping(pMem);
    159160}
     161RT_EXPORT_SYMBOL(RTR0MemObjIsMapping);
    160162
    161163
     
    181183    return pMem->pv;
    182184}
     185RT_EXPORT_SYMBOL(RTR0MemObjAddress);
    183186
    184187
     
    219222    return (RTR3PTR)pMem->pv;
    220223}
     224RT_EXPORT_SYMBOL(RTR0MemObjAddressR3);
    221225
    222226
     
    243247    return pMem->cb;
    244248}
     249RT_EXPORT_SYMBOL(RTR0MemObjSize);
    245250
    246251
     
    288293    return rtR0MemObjNativeGetPagePhysAddr(pMem, iPage);
    289294}
     295RT_EXPORT_SYMBOL(RTR0MemObjGetPagePhysAddr);
    290296
    291297
     
    396402    return rc;
    397403}
     404RT_EXPORT_SYMBOL(RTR0MemObjFree);
    398405
    399406
     
    421428    return rtR0MemObjNativeAllocPage(pMemObj, cbAligned, fExecutable);
    422429}
     430RT_EXPORT_SYMBOL(RTR0MemObjAllocPage);
    423431
    424432
     
    445453    return rtR0MemObjNativeAllocLow(pMemObj, cbAligned, fExecutable);
    446454}
     455RT_EXPORT_SYMBOL(RTR0MemObjAllocLow);
    447456
    448457
     
    469478    return rtR0MemObjNativeAllocCont(pMemObj, cbAligned, fExecutable);
    470479}
     480RT_EXPORT_SYMBOL(RTR0MemObjAllocCont);
    471481
    472482
     
    503513    return rtR0MemObjNativeLockUser(pMemObj, R3PtrAligned, cbAligned, R0Process);
    504514}
     515RT_EXPORT_SYMBOL(RTR0MemObjLockUser);
    505516
    506517
     
    529540    return rtR0MemObjNativeLockKernel(pMemObj, pvAligned, cbAligned);
    530541}
     542RT_EXPORT_SYMBOL(RTR0MemObjLockKernel);
    531543
    532544
     
    553565    return rtR0MemObjNativeAllocPhys(pMemObj, cbAligned, PhysHighest);
    554566}
     567RT_EXPORT_SYMBOL(RTR0MemObjAllocPhys);
    555568
    556569
     
    577590    return rtR0MemObjNativeAllocPhysNC(pMemObj, cbAligned, PhysHighest);
    578591}
     592RT_EXPORT_SYMBOL(RTR0MemObjAllocPhysNC);
    579593
    580594
     
    604618    return rtR0MemObjNativeEnterPhys(pMemObj, PhysAligned, cbAligned);
    605619}
     620RT_EXPORT_SYMBOL(RTR0MemObjEnterPhys);
    606621
    607622
     
    633648    return rtR0MemObjNativeReserveKernel(pMemObj, pvFixed, cbAligned, uAlignment);
    634649}
     650RT_EXPORT_SYMBOL(RTR0MemObjReserveKernel);
    635651
    636652
     
    665681    return rtR0MemObjNativeReserveUser(pMemObj, R3PtrFixed, cbAligned, uAlignment, R0Process);
    666682}
     683RT_EXPORT_SYMBOL(RTR0MemObjReserveUser);
    667684
    668685
     
    682699    return RTR0MemObjMapKernelEx(pMemObj, MemObjToMap, pvFixed, uAlignment, fProt, 0, 0);
    683700}
     701RT_EXPORT_SYMBOL(RTR0MemObjMapKernel);
    684702
    685703
     
    762780    return rc;
    763781}
     782RT_EXPORT_SYMBOL(RTR0MemObjMapKernelEx);
    764783
    765784
     
    821840    return rc;
    822841}
     842RT_EXPORT_SYMBOL(RTR0MemObjMapUser);
    823843
    824844
     
    848868    return rc;
    849869}
     870RT_EXPORT_SYMBOL(RTR0MemObjProtect);
     871
  • trunk/src/VBox/Runtime/r0drv/mpnotification-r0drv.c

    r12292 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/mp.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/asm.h>
    3639#include <iprt/assert.h>
     
    224227    return VINF_SUCCESS;
    225228}
    226 
     229RT_EXPORT_SYMBOL(RTMpNotificationRegister);
    227230
    228231
     
    273276    return VINF_SUCCESS;
    274277}
     278RT_EXPORT_SYMBOL(RTMpNotificationDeregister);
    275279
    276280
     
    335339}
    336340
    337 
  • trunk/src/VBox/Runtime/r0drv/powernotification-r0drv.c

    r13908 r21337  
    2929 */
    3030
     31
    3132/*******************************************************************************
    3233*   Header Files                                                               *
    3334*******************************************************************************/
    3435#include <iprt/power.h>
     36#include "internal/iprt.h"
     37
    3538#include <iprt/asm.h>
    3639#include <iprt/assert.h>
     
    153156    return VINF_SUCCESS;
    154157}
    155 
     158RT_EXPORT_SYMBOL(RTPowerSignalEvent);
    156159
    157160
     
    220223    return VINF_SUCCESS;
    221224}
    222 
     225RT_EXPORT_SYMBOL(RTPowerNotificationRegister);
    223226
    224227
     
    269272    return VINF_SUCCESS;
    270273}
     274RT_EXPORT_SYMBOL(RTPowerNotificationDeregister);
    271275
    272276
     
    330334}
    331335
    332 
Note: See TracChangeset for help on using the changeset viewer.

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