Changeset 21337 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Jul 7, 2009 2:58:27 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49685
- Location:
- trunk/src/VBox/Runtime/common/misc
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/RTAssertMsg1Weak.cpp
r14500 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/assert.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/stdarg.h> 37 39 … … 41 43 RTAssertMsg1(pszExpr, uLine, pszFile, pszFunction); 42 44 } 45 RT_EXPORT_SYMBOL(AssertMsg1); 43 46 -
trunk/src/VBox/Runtime/common/misc/RTAssertMsg2.cpp
r14500 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/assert.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/stdarg.h> 37 39 … … 44 46 va_end(va); 45 47 } 48 RT_EXPORT_SYMBOL(RTAssertMsg2); 46 49 -
trunk/src/VBox/Runtime/common/misc/RTAssertMsg2Weak.cpp
r14500 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/assert.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/stdarg.h> 37 39 … … 44 46 va_end(va); 45 47 } 48 RT_EXPORT_SYMBOL(AssertMsg2); 46 49 -
trunk/src/VBox/Runtime/common/misc/assert.cpp
r17410 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/assert.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/log.h> 37 39 #include <iprt/string.h> … … 42 44 43 45 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)) 45 49 /* 46 50 * This is legacy that should be eliminated. OS specific code deals with … … 67 71 pszExpr, pszFile, uLine, pszFunction); 68 72 } 73 RT_EXPORT_SYMBOL(AssertMsg1); 69 74 70 75 … … 83 88 va_end(args); 84 89 } 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 90 RT_EXPORT_SYMBOL(AssertMsg2); 95 91 96 92 #elif defined(IN_RING0) -
trunk/src/VBox/Runtime/common/misc/cache.cpp
r10848 r21337 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include <iprt/cache.h> 36 #include "internal/iprt.h" 35 37 36 38 #include <iprt/cdefs.h> … … 39 41 #include <iprt/spinlock.h> 40 42 #include <iprt/mem.h> 41 #include <iprt/cache.h>42 43 #include <iprt/asm.h> 43 44 44 45 #include "internal/magics.h" 46 45 47 46 48 /** … … 135 137 return rc; 136 138 } 139 RT_EXPORT_SYMBOL(RTCacheCreate); 140 137 141 138 142 /** … … 178 182 return VINF_SUCCESS; 179 183 } 184 RT_EXPORT_SYMBOL(RTCacheDestroy); 185 180 186 181 187 /** … … 245 251 return VINF_SUCCESS; 246 252 } 253 RT_EXPORT_SYMBOL(RTCacheRequest); 254 247 255 248 256 /** … … 289 297 return rc; 290 298 } 291 299 RT_EXPORT_SYMBOL(RTCacheInsert); 300 -
trunk/src/VBox/Runtime/common/misc/cidr.cpp
r8359 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/cidr.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/ctype.h> 36 39 #include <iprt/string.h> … … 73 76 74 77 75 intRTCidrStrToIPv4(const char *pszAddress, PRTIPV4ADDR pNetwork, PRTIPV4ADDR pNetmask)78 RTDECL(int) RTCidrStrToIPv4(const char *pszAddress, PRTIPV4ADDR pNetwork, PRTIPV4ADDR pNetmask) 76 79 { 77 80 uint8_t cBits; … … 135 138 return VINF_SUCCESS; 136 139 } 140 RT_EXPORT_SYMBOL(RTCidrStrToIPv4); 141 -
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r20809 r21337 32 32 * Header Files * 33 33 *******************************************************************************/ 34 #include <iprt/net.h> 34 #include <iprt/net.h> /* must come before getopt.h */ 35 35 #include <iprt/getopt.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/err.h> 37 39 #include <iprt/string.h> … … 69 71 return VINF_SUCCESS; 70 72 } 73 RT_EXPORT_SYMBOL(RTGetOptInit); 71 74 72 75 … … 496 499 return VINF_GETOPT_NOT_OPTION; 497 500 } 498 501 RT_EXPORT_SYMBOL(RTGetOpt); 502 -
trunk/src/VBox/Runtime/common/misc/handletable.cpp
r19865 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/handletable.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/mem.h> 36 39 #include <iprt/spinlock.h> … … 115 118 return VINF_SUCCESS; 116 119 } 120 RT_EXPORT_SYMBOL(RTHandleTableCreateEx); 117 121 118 122 … … 121 125 return RTHandleTableCreateEx(phHandleTable, RTHANDLETABLE_FLAGS_LOCKED, 1, 65534, NULL, NULL); 122 126 } 127 RT_EXPORT_SYMBOL(RTHandleTableCreate); 123 128 124 129 … … 215 220 return VINF_SUCCESS; 216 221 } 217 222 RT_EXPORT_SYMBOL(RTHandleTableDestroy); 223 -
trunk/src/VBox/Runtime/common/misc/handletablectx.cpp
r19865 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/handletable.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/mem.h> 36 39 #include <iprt/spinlock.h> … … 216 219 return rc; 217 220 } 221 RT_EXPORT_SYMBOL(RTHandleTableAllocWithCtx); 218 222 219 223 … … 259 263 return pvObj; 260 264 } 265 RT_EXPORT_SYMBOL(RTHandleTableLookupWithCtx); 261 266 262 267 … … 330 335 return pvObj; 331 336 } 332 337 RT_EXPORT_SYMBOL(RTHandleTableFreeWithCtx); 338 -
trunk/src/VBox/Runtime/common/misc/handletablesimple.cpp
r10790 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/handletable.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/mem.h> 36 39 #include <iprt/spinlock.h> … … 200 203 return rc; 201 204 } 205 RT_EXPORT_SYMBOL(RTHandleTableAlloc); 202 206 203 207 … … 240 244 return pvObj; 241 245 } 246 RT_EXPORT_SYMBOL(RTHandleTableLookup); 242 247 243 248 … … 303 308 return pvObj; 304 309 } 305 310 RT_EXPORT_SYMBOL(RTHandleTableFree); 311 -
trunk/src/VBox/Runtime/common/misc/once.cpp
r19896 r21337 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * 33 34 *******************************************************************************/ 34 35 #include <iprt/once.h> 36 #include "internal/iprt.h" 37 35 38 #include <iprt/semaphore.h> 36 39 #include <iprt/thread.h> … … 159 162 return ASMAtomicUoReadS32(&pOnce->rc); 160 163 } 164 RT_EXPORT_SYMBOL(RTOnce); 161 165 162 166 … … 172 176 ASMAtomicWriteS32(&pOnce->iState, -1); 173 177 } 178 RT_EXPORT_SYMBOL(RTOnceReset); 174 179 -
trunk/src/VBox/Runtime/common/misc/req.cpp
r14012 r21337 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include <iprt/req.h> 36 #include "internal/iprt.h" 35 37 36 38 #include <iprt/assert.h> … … 40 42 #include <iprt/semaphore.h> 41 43 #include <iprt/thread.h> 42 #include <iprt/req.h>43 44 #include <iprt/log.h> 44 45 #include <iprt/mem.h> … … 70 71 return rc; 71 72 } 73 RT_EXPORT_SYMBOL(RTReqCreateQueue); 72 74 73 75 … … 92 94 return VINF_SUCCESS; 93 95 } 96 RT_EXPORT_SYMBOL(RTReqDestroyQueue); 94 97 95 98 /** … … 176 179 return rc; 177 180 } 181 RT_EXPORT_SYMBOL(RTReqProcess); 178 182 179 183 /** … … 208 212 return rc; 209 213 } 214 RT_EXPORT_SYMBOL(RTReqCall); 210 215 211 216 … … 241 246 return rc; 242 247 } 248 RT_EXPORT_SYMBOL(RTReqCallVoid); 243 249 244 250 … … 276 282 return rc; 277 283 } 284 RT_EXPORT_SYMBOL(RTReqCallEx); 278 285 279 286 … … 363 370 return rc; 364 371 } 372 RT_EXPORT_SYMBOL(RTReqCallV); 365 373 366 374 … … 432 440 RTDECL(int) RTReqAlloc(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTREQTYPE enmType) 433 441 { 442 RT_EXPORT_SYMBOL(RTReqAlloc); 434 443 /* 435 444 * Validate input. … … 609 618 return VINF_SUCCESS; 610 619 } 620 RT_EXPORT_SYMBOL(RTReqFree); 611 621 612 622 … … 682 692 return rc; 683 693 } 694 RT_EXPORT_SYMBOL(RTReqQueue); 684 695 685 696 … … 745 756 return rc; 746 757 } 758 RT_EXPORT_SYMBOL(RTReqWait); 747 759 748 760 … … 890 902 } 891 903 892 893 894 -
trunk/src/VBox/Runtime/common/misc/s3.cpp
r20293 r21337 1 1 /* $Id$ */ 2 2 /** @file 3 * S3 communication API.3 * IPRT - S3 communication API. 4 4 */ 5 5 … … 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include "iprt/s3.h" 35 #include <iprt/s3.h> 36 #include "internal/iprt.h" 36 37 37 38 #include <iprt/err.h> … … 48 49 #include "internal/magics.h" 49 50 51 52 /******************************************************************************* 53 * Structures and Typedefs * 54 *******************************************************************************/ 50 55 typedef struct RTS3INTERNAL 51 56 { … … 71 76 typedef RTS3TMPMEMCHUNK *PRTS3TMPMEMCHUNK; 72 77 78 73 79 /******************************************************************************* 74 80 * Defined Constants And Macros * … … 91 97 AssertReturnVoid((hS3)->u32Magic == RTS3_MAGIC); \ 92 98 } while (0) 99 93 100 94 101 /******************************************************************************* -
trunk/src/VBox/Runtime/common/misc/semspingpong.cpp
r14057 r21337 34 34 *******************************************************************************/ 35 35 #include <iprt/semaphore.h> 36 #include "internal/iprt.h" 37 36 38 #include <iprt/thread.h> 37 39 #include <iprt/asm.h> … … 69 71 * @param pPP Pointer to the ping-pong structure which needs initialization. 70 72 */ 71 RT R3DECL(int) RTSemPingPongInit(PRTPINGPONG pPP)73 RTDECL(int) RTSemPingPongInit(PRTPINGPONG pPP) 72 74 { 73 75 /* … … 87 89 return rc; 88 90 } 91 RT_EXPORT_SYMBOL(RTSemPingPongInit); 89 92 90 93 … … 96 99 * (I.e. put into uninitialized state.) 97 100 */ 98 RT R3DECL(int) RTSemPingPongDelete(PRTPINGPONG pPP)101 RTDECL(int) RTSemPingPongDelete(PRTPINGPONG pPP) 99 102 { 100 103 /* … … 117 120 return VINF_SUCCESS; 118 121 } 122 RT_EXPORT_SYMBOL(RTSemPingPongDelete); 119 123 120 124 … … 126 130 * @param pPP Pointer to the ping-pong structure to ping. 127 131 */ 128 RT R3DECL(int) RTSemPing(PRTPINGPONG pPP)132 RTDECL(int) RTSemPing(PRTPINGPONG pPP) 129 133 { 130 134 /* … … 149 153 return rc; 150 154 } 155 RT_EXPORT_SYMBOL(RTSemPing); 151 156 152 157 … … 158 163 * @param pPP Pointer to the ping-pong structure to pong. 159 164 */ 160 RT R3DECL(int) RTSemPong(PRTPINGPONG pPP)165 RTDECL(int) RTSemPong(PRTPINGPONG pPP) 161 166 { 162 167 /* … … 181 186 return rc; 182 187 } 188 RT_EXPORT_SYMBOL(RTSemPong); 183 189 184 190 … … 191 197 * @param cMillies Number of milliseconds to wait. 192 198 */ 193 RT R3DECL(int) RTSemPingWait(PRTPINGPONG pPP, unsigned cMillies)199 RTDECL(int) RTSemPingWait(PRTPINGPONG pPP, unsigned cMillies) 194 200 { 195 201 /* … … 213 219 return rc; 214 220 } 221 RT_EXPORT_SYMBOL(RTSemPingWait); 215 222 216 223 … … 223 230 * @param cMillies Number of milliseconds to wait. 224 231 */ 225 RT R3DECL(int) RTSemPongWait(PRTPINGPONG pPP, unsigned cMillies)232 RTDECL(int) RTSemPongWait(PRTPINGPONG pPP, unsigned cMillies) 226 233 { 227 234 /* … … 245 252 return rc; 246 253 } 247 254 RT_EXPORT_SYMBOL(RTSemPongWait); 255 -
trunk/src/VBox/Runtime/common/misc/term.cpp
r19898 r21337 33 33 *******************************************************************************/ 34 34 #include <iprt/initterm.h> 35 #include "internal/iprt.h" 36 35 37 #include <iprt/asm.h> 36 38 #include <iprt/assert.h> … … 143 145 return rc; 144 146 } 147 RT_EXPORT_SYMBOL(RTTermRegisterCallback); 145 148 146 149 … … 192 195 return rc; 193 196 } 197 RT_EXPORT_SYMBOL(RTTermDeregisterCallback); 194 198 195 199 … … 240 244 RTOnceReset(&g_InitTermCallbacksOnce); /* for the testcase */ 241 245 } 242 246 RT_EXPORT_SYMBOL(RTTermRunCallbacks); 247 -
trunk/src/VBox/Runtime/common/misc/thread.cpp
r20273 r21337 30 30 31 31 32 33 32 /******************************************************************************* 34 33 * Header Files * … … 36 35 #define LOG_GROUP RTLOGGROUP_THREAD 37 36 #include <iprt/thread.h> 37 #include "internal/iprt.h" 38 38 39 #include <iprt/log.h> 39 40 #include <iprt/avl.h> … … 305 306 return rc; 306 307 } 308 RT_EXPORT_SYMBOL(RTThreadAdopt); 307 309 308 310 … … 728 730 return rc; 729 731 } 732 RT_EXPORT_SYMBOL(RTThreadCreate); 730 733 731 734 … … 752 755 return RTThreadCreate(pThread, pfnThread, pvUser, cbStack, enmType, fFlags, szName); 753 756 } 757 RT_EXPORT_SYMBOL(RTThreadCreateV); 754 758 755 759 … … 778 782 return rc; 779 783 } 784 RT_EXPORT_SYMBOL(RTThreadCreateF); 780 785 781 786 … … 797 802 return NIL_RTNATIVETHREAD; 798 803 } 804 RT_EXPORT_SYMBOL(RTThreadGetNative); 799 805 800 806 … … 813 819 return NIL_RTTHREAD; 814 820 } 821 RT_EXPORT_SYMBOL(RTThreadFromNative); 815 822 816 823 … … 836 843 return NULL; 837 844 } 845 RT_EXPORT_SYMBOL(RTThreadSelfName); 838 846 839 847 … … 858 866 return NULL; 859 867 } 868 RT_EXPORT_SYMBOL(RTThreadGetName); 860 869 861 870 … … 890 899 return VINF_SUCCESS; 891 900 } 901 RT_EXPORT_SYMBOL(RTThreadSetName); 892 902 893 903 … … 910 920 return rc; 911 921 } 922 RT_EXPORT_SYMBOL(RTThreadUserSignal); 912 923 913 924 … … 933 944 return rc; 934 945 } 946 RT_EXPORT_SYMBOL(RTThreadUserWait); 935 947 936 948 … … 956 968 return rc; 957 969 } 970 RT_EXPORT_SYMBOL(RTThreadUserWaitNoResume); 958 971 959 972 … … 977 990 return rc; 978 991 } 992 RT_EXPORT_SYMBOL(RTThreadUserReset); 979 993 980 994 … … 1045 1059 return rc; 1046 1060 } 1061 RT_EXPORT_SYMBOL(RTThreadWait); 1047 1062 1048 1063 … … 1060 1075 return rtThreadWait(Thread, cMillies, prc, false); 1061 1076 } 1077 RT_EXPORT_SYMBOL(RTThreadWaitNoResume); 1062 1078 1063 1079 … … 1109 1125 return rc; 1110 1126 } 1127 RT_EXPORT_SYMBOL(RTThreadSetType); 1111 1128 1112 1129 … … 1129 1146 return enmType; 1130 1147 } 1148 RT_EXPORT_SYMBOL(RTThreadGetType); 1131 1149 1132 1150 … … 1157 1175 return cWriteLocks; 1158 1176 } 1177 RT_EXPORT_SYMBOL(RTThreadGetWriteLockCount); 1159 1178 1160 1179 … … 1171 1190 rtThreadRelease(pThread); 1172 1191 } 1192 RT_EXPORT_SYMBOL(RTThreadWriteLockInc); 1173 1193 1174 1194 … … 1185 1205 rtThreadRelease(pThread); 1186 1206 } 1207 RT_EXPORT_SYMBOL(RTThreadWriteLockDec); 1187 1208 1188 1209 … … 1210 1231 return cReadLocks; 1211 1232 } 1233 RT_EXPORT_SYMBOL(RTThreadGetReadLockCount); 1212 1234 1213 1235 … … 1224 1246 rtThreadRelease(pThread); 1225 1247 } 1248 RT_EXPORT_SYMBOL(RTThreadReadLockInc); 1226 1249 1227 1250 … … 1238 1261 rtThreadRelease(pThread); 1239 1262 } 1263 RT_EXPORT_SYMBOL(RTThreadReadLockDec); 1240 1264 1241 1265 … … 1506 1530 } 1507 1531 } 1532 RT_EXPORT_SYMBOL(RTThreadBlocking); 1508 1533 1509 1534 … … 1522 1547 ASMAtomicWriteSize(&hThread->enmState, RTTHREADSTATE_RUNNING); 1523 1548 } 1549 RT_EXPORT_SYMBOL(RTThreadUnblocked); 1524 1550 1525 1551 #endif /* IN_RING3 */ -
trunk/src/VBox/Runtime/common/misc/zip.cpp
r19863 r21337 54 54 55 55 #include <iprt/zip.h> 56 #include "internal/iprt.h" 57 56 58 #include <iprt/alloc.h> 57 59 #include <iprt/assert.h> … … 1343 1345 return rc; 1344 1346 } 1347 RT_EXPORT_SYMBOL(RTZipCompCreate); 1345 1348 1346 1349 … … 1359 1362 return pZip->pfnCompress(pZip, pvBuf, cbBuf); 1360 1363 } 1364 RT_EXPORT_SYMBOL(RTZipCompress); 1361 1365 1362 1366 … … 1372 1376 return pZip->pfnFinish(pZip); 1373 1377 } 1378 RT_EXPORT_SYMBOL(RTZipCompFinish); 1374 1379 1375 1380 … … 1395 1400 return VINF_SUCCESS; 1396 1401 } 1402 RT_EXPORT_SYMBOL(RTZipCompDestroy); 1397 1403 1398 1404 … … 1453 1459 return VINF_SUCCESS; 1454 1460 } 1461 RT_EXPORT_SYMBOL(RTZipDecompCreate); 1455 1462 1456 1463 … … 1564 1571 return pZip->pfnDecompress(pZip, pvBuf, cbBuf, pcbWritten); 1565 1572 } 1573 RT_EXPORT_SYMBOL(RTZipDecompress); 1574 1566 1575 1567 1576 /** … … 1586 1595 return rc; 1587 1596 } 1588 1589 1597 RT_EXPORT_SYMBOL(RTZipDecompDestroy); 1598
Note:
See TracChangeset
for help on using the changeset viewer.