Changeset 20364 in vbox
- Timestamp:
- Jun 8, 2009 12:17:43 AM (16 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Doxyfile
r18638 r20364 1163 1163 1164 1164 PREDEFINED = DOXYGEN_RUNNING __DOXYGEN__ \ 1165 __END_DECLS= \1166 __BEGIN_DECLS= \1165 RT_END_DECLS= \ 1166 RT_BEGIN_DECLS= \ 1167 1167 VBOX=1 \ 1168 1168 RT_STRICT=1 \ -
trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp
r20360 r20364 199 199 } 200 200 201 202 RTDECL(int) RTDbgModCreateDeferred(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, RTUINTPTR cb, uint32_t fFlags) 203 { 204 return VERR_NOT_IMPLEMENTED; 205 } 206 207 201 208 RTDECL(int) RTDbgModCreateFromImage(PRTDBGMOD phDbgMod, const char *pszFilename, const char *pszName, uint32_t fFlags) 202 209 { -
trunk/src/VBox/Runtime/common/math/gcc/quad.h
r4474 r20364 136 136 #endif 137 137 138 __BEGIN_DECLS138 RT_BEGIN_DECLS 139 139 quad_t __adddi3 __P((quad_t, quad_t)); 140 140 quad_t __anddi3 __P((quad_t, quad_t)); … … 163 163 u_quad_t __umoddi3 __P((u_quad_t, u_quad_t )); 164 164 quad_t __xordi3 __P((quad_t, quad_t)); 165 __END_DECLS165 RT_END_DECLS -
trunk/src/VBox/Runtime/generic/env-generic.cpp
r8245 r20364 49 49 #endif 50 50 #if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) || defined(RT_OS_OPENBSD) 51 __BEGIN_DECLS51 RT_BEGIN_DECLS 52 52 extern char **environ; 53 __END_DECLS53 RT_END_DECLS 54 54 #endif 55 55 … … 73 73 /** Magic value . */ 74 74 uint32_t u32Magic; 75 /** Number of variables in the array. 75 /** Number of variables in the array. 76 76 * This does not include the terminating NULL entry. */ 77 77 size_t cVars; 78 /** Capacity (allocated size) of the array. 79 * This includes space for the terminating NULL element (for compatibility 78 /** Capacity (allocated size) of the array. 79 * This includes space for the terminating NULL element (for compatibility 80 80 * with the C library), so that c <= cCapacity - 1. */ 81 81 size_t cAllocated; 82 82 /** Array of environment variables. */ 83 83 char **papszEnv; 84 /** Array of environment variables in the process CP. 84 /** Array of environment variables in the process CP. 85 85 * This get (re-)constructed when RTEnvGetExecEnvP method is called. */ 86 86 char **papszEnvOtherCP; … … 92 92 93 93 /** 94 * Internal worker that resolves the pointer to the default 94 * Internal worker that resolves the pointer to the default 95 95 * process environment. (environ) 96 * 96 * 97 97 * @returns Pointer to the default environment. 98 98 * This may be NULL. … … 102 102 #ifdef RT_OS_DARWIN 103 103 return *(_NSGetEnviron()); 104 #elif defined(RT_OS_L4) 104 #elif defined(RT_OS_L4) 105 105 /* So far, our L4 libraries do not include environment support. */ 106 106 return NULL; 107 107 #else 108 108 return environ; 109 #endif 109 #endif 110 110 } 111 111 … … 113 113 /** 114 114 * Internal worker that creates an environment handle with a specified capacity. 115 * 115 * 116 116 * @returns IPRT status code. 117 117 * @param ppIntEnv Where to store the result. … … 141 141 142 142 RTMemFree(pIntEnv); 143 } 143 } 144 144 145 145 return VERR_NO_MEMORY; … … 156 156 RTDECL(int) RTEnvDestroy(RTENV Env) 157 157 { 158 /* 158 /* 159 159 * Ignore NIL_RTENV and validate input. 160 160 */ … … 167 167 AssertReturn(pIntEnv->u32Magic == RTENV_MAGIC, VERR_INVALID_HANDLE); 168 168 169 /* 169 /* 170 170 * Do the cleanup. 171 171 */ … … 192 192 /*RTCritSectDelete(&pIntEnv->CritSect) */ 193 193 RTMemFree(pIntEnv); 194 194 195 195 return VINF_SUCCESS; 196 196 } … … 285 285 else 286 286 { 287 /* 287 /* 288 288 * Make a copy of the variable name so we can terminate it 289 289 * properly and then pass the request on to RTEnvSetEx. … … 312 312 if (Env == RTENV_DEFAULT) 313 313 { 314 /* 314 /* 315 315 * Since RTEnvPut isn't UTF-8 clean and actually expects the strings 316 * to be in the current code page (codeset), we'll do the necessary 316 * to be in the current code page (codeset), we'll do the necessary 317 317 * conversions here. 318 318 */ … … 362 362 if (iVar < pIntEnv->cVars) 363 363 { 364 /* 364 /* 365 365 * Replace the current entry. Simple. 366 366 */ … … 371 371 { 372 372 /* 373 * Adding a new variable. Resize the array if required 373 * Adding a new variable. Resize the array if required 374 374 * and then insert the new value at the end. 375 375 */ … … 395 395 } 396 396 } 397 397 398 398 RTENV_UNLOCK(pIntEnv); 399 399 … … 416 416 if (Env == RTENV_DEFAULT) 417 417 { 418 /* 418 /* 419 419 * Since RTEnvUnset isn't UTF-8 clean and actually expects the strings 420 * to be in the current code page (codeset), we'll do the necessary 420 * to be in the current code page (codeset), we'll do the necessary 421 421 * conversions here. 422 422 */ … … 459 459 } 460 460 return rc; 461 461 462 462 } 463 463 … … 475 475 if (Env == RTENV_DEFAULT) 476 476 { 477 /* 477 /* 478 478 * Since RTEnvGet isn't UTF-8 clean and actually expects the strings 479 * to be in the current code page (codeset), we'll do the necessary 479 * to be in the current code page (codeset), we'll do the necessary 480 480 * conversions here. 481 481 */ … … 545 545 } 546 546 return rc; 547 547 548 548 } 549 549 … … 556 556 if (Env == RTENV_DEFAULT) 557 557 { 558 /* 558 /* 559 559 * Since RTEnvExist isn't UTF-8 clean and actually expects the strings 560 * to be in the current code page (codeset), we'll do the necessary 560 * to be in the current code page (codeset), we'll do the necessary 561 561 * conversions here. 562 562 */ … … 615 615 RTENV_LOCK(pIntEnv); 616 616 617 /* 618 * Free any old envp. 617 /* 618 * Free any old envp. 619 619 */ 620 620 if (pIntEnv->papszEnvOtherCP) -
trunk/src/VBox/Runtime/include/internal/dbgmod.h
r20356 r20364 27 27 #include "internal/magics.h" 28 28 29 __BEGIN_DECLS29 RT_BEGIN_DECLS 30 30 31 31 /** @defgroup grp_rt_dbgmod RTDbgMod - Debug Module Interperter … … 248 248 /** @} */ 249 249 250 __END_DECLS250 RT_END_DECLS 251 251 252 252 #endif -
trunk/src/VBox/Runtime/include/internal/file.h
r8245 r20364 34 34 #include <iprt/file.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 38 38 /** … … 48 48 int rtFileRecalcAndValidateFlags(unsigned *pfOpen); 49 49 50 __END_DECLS50 RT_END_DECLS 51 51 52 52 #endif -
trunk/src/VBox/Runtime/include/internal/fileaio.h
r19562 r20364 109 109 110 110 111 __BEGIN_DECLS111 RT_BEGIN_DECLS 112 112 113 __END_DECLS113 RT_END_DECLS 114 114 115 115 #endif -
trunk/src/VBox/Runtime/include/internal/fs.h
r14058 r20364 37 37 #endif 38 38 39 __BEGIN_DECLS39 RT_BEGIN_DECLS 40 40 41 41 RTFMODE rtFsModeFromDos(RTFMODE fMode, const char *pszName, size_t cbName); … … 58 58 #endif 59 59 60 __END_DECLS60 RT_END_DECLS 61 61 62 62 #endif -
trunk/src/VBox/Runtime/include/internal/initterm.h
r8245 r20364 34 34 #include <iprt/cdefs.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 38 38 #ifdef IN_RING0 … … 52 52 #endif /* IN_RING0 */ 53 53 54 __END_DECLS54 RT_END_DECLS 55 55 56 56 #endif -
trunk/src/VBox/Runtime/include/internal/ldr.h
r16933 r20364 35 35 #include "internal/magics.h" 36 36 37 __BEGIN_DECLS37 RT_BEGIN_DECLS 38 38 39 39 … … 379 379 380 380 381 __END_DECLS381 RT_END_DECLS 382 382 383 383 #endif -
trunk/src/VBox/Runtime/include/internal/memobj.h
r14824 r20364 36 36 #include "internal/magics.h" 37 37 38 __BEGIN_DECLS38 RT_BEGIN_DECLS 39 39 40 40 /** @defgroup grp_rt_memobj_int Internals. … … 427 427 /** @} */ 428 428 429 __END_DECLS429 RT_END_DECLS 430 430 431 431 #endif -
trunk/src/VBox/Runtime/include/internal/path.h
r11836 r20364 35 35 #include <iprt/param.h> 36 36 37 __BEGIN_DECLS37 RT_BEGIN_DECLS 38 38 39 39 #if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS) … … 109 109 110 110 111 __END_DECLS111 RT_END_DECLS 112 112 113 113 #endif -
trunk/src/VBox/Runtime/include/internal/process.h
r16998 r20364 35 35 #include <iprt/param.h> 36 36 37 __BEGIN_DECLS37 RT_BEGIN_DECLS 38 38 39 39 extern RTPROCESS g_ProcessSelf; … … 67 67 DECLHIDDEN(int) rtProcInitExePath(char *pszPath, size_t cchPath); 68 68 69 __END_DECLS69 RT_END_DECLS 70 70 71 71 #endif -
trunk/src/VBox/Runtime/include/internal/rand.h
r11523 r20364 161 161 162 162 163 __BEGIN_DECLS163 RT_BEGIN_DECLS 164 164 165 165 /** … … 190 190 DECLCALLBACK(int) rtRandAdvDefaultDestroy(PRTRANDINT pThis); 191 191 192 __END_DECLS192 RT_END_DECLS 193 193 194 194 #endif -
trunk/src/VBox/Runtime/include/internal/sched.h
r8245 r20364 36 36 #include "internal/thread.h" 37 37 38 __BEGIN_DECLS38 RT_BEGIN_DECLS 39 39 40 40 /** … … 47 47 int rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType); 48 48 49 __END_DECLS49 RT_END_DECLS 50 50 51 51 #endif -
trunk/src/VBox/Runtime/include/internal/string.h
r8245 r20364 34 34 #include <iprt/string.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 38 38 /** @def RTSTR_STRICT … … 58 58 size_t rtstrFormatType(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize); 59 59 60 __END_DECLS60 RT_END_DECLS 61 61 62 62 #endif -
trunk/src/VBox/Runtime/include/internal/thread.h
r20008 r20364 41 41 #include "internal/magics.h" 42 42 43 __BEGIN_DECLS43 RT_BEGIN_DECLS 44 44 45 45 … … 208 208 #endif 209 209 210 __END_DECLS211 212 #endif 210 RT_END_DECLS 211 212 #endif -
trunk/src/VBox/Runtime/include/internal/time.h
r13832 r20364 34 34 #include <iprt/types.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 38 38 #if defined(IN_RING3) || defined(IN_RC) … … 44 44 #endif 45 45 46 __END_DECLS46 RT_END_DECLS 47 47 48 48 #endif -
trunk/src/VBox/Runtime/r0drv/alloc-r0drv.h
r8245 r20364 36 36 #include "internal/magics.h" 37 37 38 __BEGIN_DECLS38 RT_BEGIN_DECLS 39 39 40 40 /** … … 68 68 void rtMemFree(PRTMEMHDR pHdr); 69 69 70 __END_DECLS70 RT_END_DECLS 71 71 #endif 72 72 -
trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h
r19919 r20364 87 87 88 88 89 __BEGIN_DECLS89 RT_BEGIN_DECLS 90 90 /* mach/vm_types.h */ 91 91 typedef struct pmap *pmap_t; … … 120 120 extern int ml_get_max_cpus(void); 121 121 122 __END_DECLS122 RT_END_DECLS 123 123 124 124 … … 127 127 */ 128 128 129 __BEGIN_DECLS129 RT_BEGIN_DECLS 130 130 extern lck_grp_t *g_pDarwinLockGroup; 131 131 int rtThreadPreemptDarwinInit(void); 132 132 void rtThreadPreemptDarwinTerm(void); 133 __END_DECLS133 RT_END_DECLS 134 134 135 135 -
trunk/src/VBox/Runtime/r0drv/linux/string.h
r8245 r20364 34 34 #include <iprt/cdefs.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 #ifndef bool /* Linux 2.6.19 C++ nightmare */ 38 38 #define bool bool_type … … 56 56 ; 57 57 58 __END_DECLS58 RT_END_DECLS 59 59 60 60 #endif -
trunk/src/VBox/Runtime/r0drv/mp-r0drv.h
r9602 r20364 34 34 #include <iprt/mp.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 38 38 /** … … 71 71 void rtMpNotificationDoCallbacks(RTMPEVENT enmEvent, RTCPUID idCpu); 72 72 73 __END_DECLS73 RT_END_DECLS 74 74 75 75 #endif -
trunk/src/VBox/Runtime/r0drv/nt/internal-r0drv-nt.h
r19969 r20364 34 34 #include <iprt/cpuset.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 38 38 /******************************************************************************* … … 54 54 55 55 56 __END_DECLS56 RT_END_DECLS 57 57 58 58 #endif -
trunk/src/VBox/Runtime/r0drv/nt/the-nt-kernel.h
r18496 r20364 41 41 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap 42 42 # pragma warning(disable : 4163) 43 __BEGIN_DECLS43 RT_BEGIN_DECLS 44 44 # include <ntddk.h> 45 __END_DECLS45 RT_END_DECLS 46 46 # pragma warning(default : 4163) 47 47 # undef _InterlockedExchange … … 50 50 # undef _InterlockedAddLargeStatistic 51 51 #else 52 __BEGIN_DECLS52 RT_BEGIN_DECLS 53 53 # include <ntddk.h> 54 __END_DECLS54 RT_END_DECLS 55 55 #endif 56 56 -
trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp
r20130 r20364 41 41 #include "internal-r0drv-nt.h" 42 42 43 __BEGIN_DECLS43 RT_BEGIN_DECLS 44 44 NTSTATUS NTAPI ZwYieldExecution(void); 45 __END_DECLS45 RT_END_DECLS 46 46 47 47 -
trunk/src/VBox/Runtime/r0drv/os2/the-os2-kernel.h
r8245 r20364 40 40 #include <os2ddk/devhlp.h> 41 41 42 __BEGIN_DECLS42 RT_BEGIN_DECLS 43 43 44 44 extern PCDOSTABLE g_pDosTable; … … 51 51 DECLASM(int) RTR0Os2DHVMGlobalToProcess(ULONG fFlags, PVOID pvR0, ULONG cb, PPVOID ppvR3); 52 52 53 __END_DECLS53 RT_END_DECLS 54 54 55 55 #endif -
trunk/src/VBox/Runtime/r0drv/os2/timer-r0drv-os2.cpp
r14298 r20364 101 101 * Internal Functions * 102 102 *******************************************************************************/ 103 __BEGIN_DECLS103 RT_BEGIN_DECLS 104 104 DECLASM(void) rtTimerOs2Tick(void); 105 105 DECLASM(int) rtTimerOs2Arm(void); 106 106 DECLASM(int) rtTimerOs2Dearm(void); 107 __END_DECLS107 RT_END_DECLS 108 108 109 109 -
trunk/src/VBox/Runtime/r0drv/power-r0drv.h
r13478 r20364 34 34 #include <iprt/power.h> 35 35 36 __BEGIN_DECLS36 RT_BEGIN_DECLS 37 37 38 38 /* Called from initterm-r0drv.cpp: */ … … 40 40 void rtR0PowerNotificationTerm(void); 41 41 42 __END_DECLS42 RT_END_DECLS 43 43 44 44 #endif -
trunk/src/VBox/Runtime/r0drv/solaris/the-solaris-kernel.h
r8245 r20364 61 61 #include <iprt/cdefs.h> 62 62 63 __BEGIN_DECLS63 RT_BEGIN_DECLS 64 64 extern struct ddi_dma_attr g_SolarisX86PhysMemLimits; 65 __END_DECLS65 RT_END_DECLS 66 66 67 67 #endif -
trunk/src/VBox/Runtime/r3/alloc-ef.h
r19547 r20364 159 159 * Internal Functions * 160 160 ******************************************************************************/ 161 __BEGIN_DECLS161 RT_BEGIN_DECLS 162 162 void * rtMemAlloc(const char *pszOp, RTMEMTYPE enmType, size_t cb, void *pvCaller, unsigned iLine, const char *pszFile, const char *pszFunction); 163 163 void * rtMemRealloc(const char *pszOp, RTMEMTYPE enmType, void *pvOld, size_t cbNew, void *pvCaller, unsigned iLine, const char *pszFile, const char *pszFunction); 164 164 void rtMemFree(const char *pszOp, RTMEMTYPE enmType, void *pv, void *pvCaller, unsigned iLine, const char *pszFile, const char *pszFunction); 165 __END_DECLS165 RT_END_DECLS 166 166 167 167 #endif -
trunk/src/VBox/Runtime/r3/win/timer-win.cpp
r9950 r20364 75 75 #include "internal/magics.h" 76 76 77 __BEGIN_DECLS77 RT_BEGIN_DECLS 78 78 /* from sysinternals. */ 79 79 NTSYSAPI LONG NTAPI NtSetTimerResolution(IN ULONG DesiredResolution, IN BOOLEAN SetResolution, OUT PULONG CurrentResolution); 80 80 NTSYSAPI LONG NTAPI NtQueryTimerResolution(OUT PULONG MaximumResolution, OUT PULONG MinimumResolution, OUT PULONG CurrentResolution); 81 __END_DECLS81 RT_END_DECLS 82 82 83 83 -
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.h
r19935 r20364 30 30 31 31 #ifdef IN_RING0 32 __BEGIN_DECLS32 RT_BEGIN_DECLS 33 33 DECLEXPORT(int) TSTR0ThreadPreemptionSrvReqHandler(PSUPDRVSESSION pSession, uint32_t uOperation, 34 34 uint64_t u64Arg, PSUPR0SERVICEREQHDR pReqHdr); 35 __END_DECLS35 RT_END_DECLS 36 36 #endif 37 37
Note:
See TracChangeset
for help on using the changeset viewer.