VirtualBox

Changeset 40798 in vbox


Ignore:
Timestamp:
Apr 6, 2012 4:44:13 PM (13 years ago)
Author:
vboxsync
Message:

SUPDrv: More exports.

Location:
trunk/src/VBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r40796 r40798  
    386386    { "RTCrc32Process",                         (void *)RTCrc32Process },
    387387    { "RTCrc32Start",                           (void *)RTCrc32Start },
     388    { "RTUuidCompare",                          (void *)RTUuidCompare },
     389    { "RTUuidCompareStr",                       (void *)RTUuidCompareStr },
     390    { "RTUuidFromStr",                          (void *)RTUuidFromStr },
     391    { "RTStrDupTag",                            (void *)RTStrDupTag },
     392    { "RTStrFree",                              (void *)RTStrFree },
     393    { "RTStrCopy",                              (void *)RTStrCopy },
     394    { "RTStrNCmp",                              (void *)RTStrNCmp },
     395
    388396/* SED: END */
    389397};
     
    398406    /* VBoxNetFlt */
    399407    (PFNRT)RTErrConvertFromErrno,
    400     (PFNRT)RTUuidCompare,
    401     (PFNRT)RTUuidCompareStr,
    402     (PFNRT)RTUuidFromStr,
    403     (PFNRT)RTStrDupTag,
    404     (PFNRT)RTStrFree,
    405     (PFNRT)RTStrCopy,
    406     (PFNRT)RTStrNCmp,
    407408    /* VBoxNetAdp */
    408409    (PFNRT)RTRandBytes,
  • trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp

    r40784 r40798  
    872872 */
    873873#if defined(__GNUC__) && (defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX))
    874 __asm__ __volatile__("\
     874__asm__("\
    875875        .section .text                                                  \n\
    876876                                                                        \n\
     
    880880");
    881881# if   defined(RT_ARCH_AMD64)
    882 __asm__ __volatile__(" \
     882__asm__(" \
    883883            movq    g_pfnSupdrvProbeFireKernel(%rip), %rax                  \n\
    884884            jmp     *%rax \n\
    885885");
    886886# elif defined(RT_ARCH_X86)
    887 __asm__ __volatile__("\
     887__asm__("\
    888888            movl    g_pfnSupdrvProbeFireKernel, %eax                        \n\
    889889            jmp     *%eax \n\
     
    892892#  error "Which arch is this?"
    893893#endif
    894 __asm__ __volatile__("\
     894__asm__("\
    895895                                                                        \n\
    896896        .type supdrvTracerProbeFireStub,@function                       \n\
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r40777 r40798  
    121121        common/misc/handletablectx.o \
    122122        common/misc/thread.o \
     123        common/string/RTStrCopy.o \
    123124        common/string/RTStrCopyP.o \
     125        common/string/RTStrNCmp.o \
     126        common/string/RTStrNLen.o \
     127        common/string/stringalloc.o \
    124128        common/string/strformat.o \
    125129        common/string/strformatrt.o \
  • trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv

    r40777 r40798  
    66
    77#
    8 # Copyright (C) 2007-2010 Oracle Corporation
     8# Copyright (C) 2007-2012 Oracle Corporation
    99#
    1010# This file is part of VirtualBox Open Source Edition (OSE), as
     
    5353    ${PATH_ROOT}/include/iprt/power.h=>include/iprt/power.h \
    5454    ${PATH_ROOT}/include/iprt/process.h=>include/iprt/process.h \
     55    ${PATH_ROOT}/include/iprt/rand.h=>include/iprt/rand.h \
    5556    ${PATH_ROOT}/include/iprt/semaphore.h=>include/iprt/semaphore.h \
    5657    ${PATH_ROOT}/include/iprt/spinlock.h=>include/iprt/spinlock.h \
     
    115116    ${PATH_ROOT}/src/VBox/Runtime/common/misc/thread.cpp=>common/misc/thread.c \
    116117    ${PATH_ROOT}/src/VBox/Runtime/common/string/RTStrCopyP.cpp=>common/string/RTStrCopyP.c \
     118    ${PATH_ROOT}/src/VBox/Runtime/common/string/RTStrCopy.cpp=>common/string/RTStrCopy.c \
     119    ${PATH_ROOT}/src/VBox/Runtime/common/string/RTStrNCmp.cpp=>common/string/RTStrNCmp.c \
     120    ${PATH_ROOT}/src/VBox/Runtime/common/string/RTStrNLen.cpp=>common/string/RTStrNLen.c \
     121    ${PATH_ROOT}/src/VBox/Runtime/common/string/stringalloc.cpp=>common/string/stringalloc.c \
    117122    ${PATH_ROOT}/src/VBox/Runtime/common/string/strformat.cpp=>common/string/strformat.c \
    118123    ${PATH_ROOT}/src/VBox/Runtime/common/string/strformatrt.cpp=>common/string/strformatrt.c \
  • trunk/src/VBox/Runtime/common/rand/rand.cpp

    r33540 r40798  
    6161static DECLCALLBACK(int) rtRandInitOnce(void *pvUser1, void *pvUser2)
    6262{
    63     NOREF(pvUser1);
    64     NOREF(pvUser2);
    65 
    6663    RTRAND hRand;
    6764    int rc = RTRandAdvCreateSystemFaster(&hRand);
     
    8077        AssertRC(rc);
    8178
     79    NOREF(pvUser1);
     80    NOREF(pvUser2);
    8281    return rc;
    8382}
  • trunk/src/VBox/Runtime/common/string/stringalloc.cpp

    r34032 r40798  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6262    return VERR_NO_STR_MEMORY;
    6363}
    64 RT_EXPORT_SYMBOL(RTStrAllocTag);
     64RT_EXPORT_SYMBOL(RTStrAllocExTag);
    6565
    6666
     
    104104RTDECL(char *) RTStrDupTag(const char *pszString, const char *pszTag)
    105105{
     106#if defined(__cplusplus)
    106107    AssertPtr(pszString);
     108#endif
    107109    size_t cch = strlen(pszString) + 1;
    108110    char *psz = (char *)RTMemAllocTag(cch, pszTag);
     
    116118RTDECL(int)  RTStrDupExTag(char **ppszString, const char *pszString, const char *pszTag)
    117119{
     120#if defined(__cplusplus)
    118121    AssertPtr(ppszString);
    119122    AssertPtr(pszString);
     123#endif
    120124
    121125    size_t cch = strlen(pszString) + 1;
     
    134138RTDECL(char *) RTStrDupNTag(const char *pszString, size_t cchMax, const char *pszTag)
    135139{
     140#if defined(__cplusplus)
    136141    AssertPtr(pszString);
     142#endif
    137143    char const *pszEnd = RTStrEnd(pszString, cchMax);
    138144    size_t      cch    = pszEnd ? (uintptr_t)pszEnd - (uintptr_t)pszString : cchMax;
     
    158164RTDECL(int) RTStrAAppendNTag(char **ppsz, const char *pszAppend, size_t cchAppend, const char *pszTag)
    159165{
     166    size_t cchOrg;
     167    char  *pszNew;
     168
    160169    if (!cchAppend)
    161170        return VINF_SUCCESS;
     
    165174        Assert(cchAppend == RTStrNLen(pszAppend, cchAppend));
    166175
    167     size_t const cchOrg = *ppsz ? strlen(*ppsz) : 0;
    168     char *pszNew = (char *)RTMemReallocTag(*ppsz, cchOrg + cchAppend + 1, pszTag);
     176    cchOrg = *ppsz ? strlen(*ppsz) : 0;
     177    pszNew = (char *)RTMemReallocTag(*ppsz, cchOrg + cchAppend + 1, pszTag);
    169178    if (!pszNew)
    170179        return VERR_NO_STR_MEMORY;
     
    247256RTDECL(int) RTStrATruncateTag(char **ppsz, size_t cchNew, const char *pszTag)
    248257{
     258    char *pszNew;
    249259    char *pszOld = *ppsz;
    250260    if (!cchNew)
     
    253263        {
    254264            *pszOld = '\0';
    255             char *pszNew = (char *)RTMemReallocTag(pszOld, 1, pszTag);
     265            pszNew = (char *)RTMemReallocTag(pszOld, 1, pszTag);
    256266            if (pszNew)
    257267                *ppsz = pszNew;
     
    260270    else
    261271    {
     272        char *pszZero;
    262273        AssertPtrReturn(pszOld, VERR_OUT_OF_RANGE);
    263274        AssertReturn(cchNew < ~(size_t)64, VERR_OUT_OF_RANGE);
    264         char *pszZero = RTStrEnd(pszOld, cchNew + 63);
     275        pszZero = RTStrEnd(pszOld, cchNew + 63);
    265276        AssertReturn(!pszZero || (size_t)(pszZero - pszOld) >= cchNew, VERR_OUT_OF_RANGE);
    266277        pszOld[cchNew] = '\0';
    267278        if (!pszZero)
    268279        {
    269             char *pszNew = (char *)RTMemReallocTag(pszOld,  cchNew + 1, pszTag);
     280            pszNew = (char *)RTMemReallocTag(pszOld,  cchNew + 1, pszTag);
    270281            if (pszNew)
    271282                *ppsz = pszNew;
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