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/string
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • 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
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