VirtualBox

Ignore:
Timestamp:
Jul 7, 2009 2:58:27 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49685
Message:

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

Location:
trunk/src/VBox/Runtime/common/misc
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

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