Changeset 57926 in vbox
- Timestamp:
- Sep 28, 2015 2:05:58 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102898
- Location:
- trunk
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm-amd64-x86.h
r57312 r57926 262 262 /** 263 263 * Sets the content of the GDTR CPU register. 264 * @param p Idtr Where to load the GDTR contents from264 * @param pGdtr Where to load the GDTR contents from 265 265 */ 266 266 #if RT_INLINE_ASM_EXTERNAL -
trunk/include/iprt/asm.h
r57682 r57926 133 133 #endif 134 134 135 /** @def RT_INLINE_DONT_ USE_CMPXCHG8B135 /** @def RT_INLINE_DONT_MIX_CMPXCHG8B_AND_PIC 136 136 * i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493) screws up 137 137 * RTSemRWRequestWrite semsemrw-lockless-generic.cpp in release builds. PIC -
trunk/include/iprt/asn1.h
r57579 r57926 291 291 * @param pThisCore Pointer to the ASN.1 core of the object to check out. 292 292 * @param fFlags See RTASN1_CHECK_SANITY_F_XXX. 293 * @param p szErrInfoWhere to return additional error details. Optional.293 * @param pErrInfo Where to return additional error details. Optional. 294 294 * @param pszErrorTag Tag for the additional error details. 295 295 */ … … 772 772 * Initializes an interger object to a default value. 773 773 * @returns VINF_SUCCESS. 774 * @param p BooleanThe integer object representation.774 * @param pInteger The integer object representation. 775 775 * @param uValue The default value (unsigned 64-bit). 776 776 * @param pAllocator The allocator (pro forma). … … 1350 1350 * Calls the destructor of the ASN.1 object. 1351 1351 * 1352 * @param p Asn1Core The IPRT representation of an ASN.1 object.1352 * @param pThisCore The IPRT representation of an ASN.1 object. 1353 1353 */ 1354 1354 RTDECL(void) RTAsn1VtDelete(PRTASN1CORE pThisCore); … … 1400 1400 * @param pThisCore Pointer to the ASN.1 core of the object to check out. 1401 1401 * @param fFlags See RTASN1_CHECK_SANITY_F_XXX. 1402 * @param p szErrInfoWhere to return additional error details. Optional.1402 * @param pErrInfo Where to return additional error details. Optional. 1403 1403 * @param pszErrorTag Tag for the additional error details. 1404 1404 */ … … 1586 1586 * @returns Pointer to the allocator info (for call in alloc parameter). 1587 1587 * @param pCursor The cursor. 1588 * @param pAllocat orThe allocation structure to initialize.1588 * @param pAllocation The allocation structure to initialize. 1589 1589 */ 1590 1590 RTDECL(PRTASN1ALLOCATION) RTAsn1CursorInitAllocation(PRTASN1CURSOR pCursor, PRTASN1ALLOCATION pAllocation); … … 1925 1925 * @param pCursor The cursor we're decoding from. 1926 1926 * @param fFlags RTASN1CURSOR_GET_F_XXX. 1927 * @param pCtxTagCore The output context tag object. 1927 * @param uExpectedTag The expected tag. 1928 * @param pCtxTag The output context tag object. 1928 1929 * @param pCtxTagCursor The output cursor for the context tag content. 1929 1930 * @param pszErrorTag Error tag, this will be associated with the -
trunk/include/iprt/assert.h
r56919 r57926 1590 1590 } while (0) 1591 1591 1592 /** @def AssertLogRelMsgFailedReturn 1592 /** @def AssertLogRelMsgFailedReturnStmt 1593 1593 * An assertion failed, execute @a stmt and return @a rc. 1594 1594 * Strict builds will hit a breakpoint, non-strict will only do LogRel. … … 1622 1622 } while (0) 1623 1623 1624 /** @def AssertLogRelMsgFailedReturnVoid 1624 /** @def AssertLogRelMsgFailedReturnVoidStmt 1625 1625 * An assertion failed, execute @a stmt and return void. 1626 1626 * Strict builds will hit a breakpoint, non-strict will only do LogRel. … … 2096 2096 #define AssertRCReturn(rc, rcRet) AssertMsgRCReturn(rc, ("%Rra\n", (rc)), rcRet) 2097 2097 2098 /** @def AssertRCReturn 2098 /** @def AssertRCReturnStmt 2099 2099 * Asserts a iprt status code successful, bitch (RT_STRICT mode only), execute 2100 2100 * @a stmt and returns @a rcRet if it isn't. … … 2116 2116 #define AssertRCReturnVoid(rc) AssertMsgRCReturnVoid(rc, ("%Rra\n", (rc))) 2117 2117 2118 /** @def AssertR eturnVoidStmt2118 /** @def AssertRCReturnVoidStmt 2119 2119 * Asserts a iprt status code successful, bitch (RT_STRICT mode only), and 2120 2120 * execute the given statement/return if it isn't. -
trunk/include/iprt/cdefs.h
r57572 r57926 59 59 # define RT_ARCH_AMD64 60 60 # define RT_ARCH_X86 61 # define RT_ARCH_SPARC 62 # define RT_ARCH_SPARC64 61 63 # define IN_RING0 62 64 # define IN_RING3 … … 73 75 # define RT_LOCK_STRICT_ORDER 74 76 # define RT_LOCK_NO_STRICT_ORDER 75 # define Breakpoint77 # define RT_BREAKPOINT 76 78 # define RT_NO_DEPRECATED_MACROS 77 79 # define RT_EXCEPTIONS_ENABLED … … 81 83 # define RT_COMPILER_WITH_80BIT_LONG_DOUBLE 82 84 # define RT_NO_VISIBILITY_HIDDEN 85 # define RT_GCC_SUPPORTS_VISIBILITY_HIDDEN 86 # define RT_COMPILER_SUPPORTS_LAMBDA 83 87 #endif /* DOXYGEN_RUNNING */ 84 88 … … 339 343 */ 340 344 #ifndef RT_OPSYS 341 # if defined(RT_OS_UNKNOWN) 345 # if defined(RT_OS_UNKNOWN) || defined(DOXYGEN_RUNNING) 342 346 # define RT_OPSYS RT_OPSYS_UNKNOWN 343 347 # elif defined(RT_OS_AGNOSTIC) … … 1426 1430 #define RT_CONCAT_HLP(a,b) a##b 1427 1431 1428 /** @def RT_CONCAT 1432 /** @def RT_CONCAT3 1429 1433 * Concatenate the expanded arguments without any extra spaces in between. 1430 1434 * … … 1437 1441 #define RT_CONCAT3_HLP(a,b,c) a##b##c 1438 1442 1439 /** @def RT_CONCAT 1443 /** @def RT_CONCAT4 1440 1444 * Concatenate the expanded arguments without any extra spaces in between. 1441 1445 * -
trunk/include/iprt/cdrom.h
r53615 r57926 64 64 * @param phCdrom Where to return the CDROM handle. 65 65 */ 66 RTDECL(int) RTCdromOpen(const char *psz , uint32_t fFlags, PRTCDROM phCdrom);66 RTDECL(int) RTCdromOpen(const char *pszName, uint32_t fFlags, PRTCDROM phCdrom); 67 67 68 68 /** … … 166 166 * 167 167 * @returns IPRT status code. 168 * @param pszName The CD-ROM name (path).168 * @param iCdrom The CD-ROM number. 169 169 * @param fFlags Open flags, see RTCDROM_O_XXX. 170 170 * @param phCdrom Where to return the CDROM handle . -
trunk/include/iprt/condvar.h
r57004 r57926 54 54 * condition variable. 55 55 */ 56 RTDECL(int) RTCon vVarCreate(PRTCONDVAR phCondVar);56 RTDECL(int) RTCondVarCreate(PRTCONDVAR phCondVar); 57 57 58 58 /** … … 72 72 * @param ... Format string arguments. 73 73 */ 74 RTDECL(int) RTCon vVarCreateEx(PRTCONDVAR phCondVar, uint32_t fFlags, RTLOCKVALCLASS hClass,74 RTDECL(int) RTCondVarCreateEx(PRTCONDVAR phCondVar, uint32_t fFlags, RTLOCKVALCLASS hClass, 75 75 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(4, 5); 76 76 77 /** @name RTCon vVarCreateEx flags77 /** @name RTCondVarCreateEx flags 78 78 * @{ */ 79 79 /** Disables lock validation. */ … … 88 88 * is quietly ignored (VINF_SUCCESS). 89 89 */ 90 RTDECL(int) RTCon vVarDestroy(RTCONDVAR hCondVar);90 RTDECL(int) RTCondVarDestroy(RTCONDVAR hCondVar); 91 91 92 92 /** … … 100 100 * 101 101 * @returns iprt status code. 102 * @param hCon vVar The condition variable to signal.103 */ 104 RTDECL(int) RTCon vVarSignal(RTCONDVAR hCondVar);102 * @param hCondVar The condition variable to signal. 103 */ 104 RTDECL(int) RTCondVarSignal(RTCONDVAR hCondVar); 105 105 106 106 /** … … 114 114 * 115 115 * @returns iprt status code. 116 * @param hCon vVar The condition variable to broadcast.117 */ 118 RTDECL(int) RTCon vVarBroadcast(RTCONDVAR hCondVar);119 120 /** 121 * Wait for the condition variable to be signaled, resume on interruption. 122 * 123 * This function will resume if the wait is interrupted by an async system event 124 * (like a unix signal) or similar. 125 * 126 * @returns iprt status code. 127 * Will not return VERR_INTERRUPTED. 128 * @param hCon vVar The condition variable to wait on.116 * @param hCondVar The condition variable to broadcast. 117 */ 118 RTDECL(int) RTCondVarBroadcast(RTCONDVAR hCondVar); 119 120 /** 121 * Wait for the condition variable to be signaled, resume on interruption. 122 * 123 * This function will resume if the wait is interrupted by an async system event 124 * (like a unix signal) or similar. 125 * 126 * @returns iprt status code. 127 * Will not return VERR_INTERRUPTED. 128 * @param hCondVar The condition variable to wait on. 129 129 * @param hMtx The mutex to leave during the wait and which 130 130 * will be re-enter before returning. … … 132 132 * RT_INDEFINITE_WAIT to wait forever. 133 133 */ 134 RTDECL(int) RTCon vVarMutexWait(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies);135 136 /** 137 * Wait for the condition variable to be signaled, return on interruption. 138 * 139 * This function will not resume the wait if interrupted. 140 * 141 * @returns iprt status code. 142 * @param hCon vVar The condition variable to wait on.134 RTDECL(int) RTCondVarMutexWait(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies); 135 136 /** 137 * Wait for the condition variable to be signaled, return on interruption. 138 * 139 * This function will not resume the wait if interrupted. 140 * 141 * @returns iprt status code. 142 * @param hCondVar The condition variable to wait on. 143 143 * @param hMtx The mutex to leave during the wait and which 144 144 * will be re-enter before returning. … … 146 146 * RT_INDEFINITE_WAIT to wait forever. 147 147 */ 148 RTDECL(int) RTCon vVarMutexWaitNoResume(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies);149 150 /** 151 * Wait for the condition variable to be signaled, resume on interruption. 152 * 153 * This function will resume if the wait is interrupted by an async system event 154 * (like a unix signal) or similar. 155 * 156 * @returns iprt status code. 157 * Will not return VERR_INTERRUPTED. 158 * @param hCon vVar The condition variable to wait on.148 RTDECL(int) RTCondVarMutexWaitNoResume(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies); 149 150 /** 151 * Wait for the condition variable to be signaled, resume on interruption. 152 * 153 * This function will resume if the wait is interrupted by an async system event 154 * (like a unix signal) or similar. 155 * 156 * @returns iprt status code. 157 * Will not return VERR_INTERRUPTED. 158 * @param hCondVar The condition variable to wait on. 159 159 * @param hRWSem The read/write semaphore to write-leave during 160 160 * the wait and which will be re-enter in write … … 163 163 * RT_INDEFINITE_WAIT to wait forever. 164 164 */ 165 RTDECL(int) RTCon vVarRWWriteWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);166 167 /** 168 * Wait for the condition variable to be signaled, return on interruption. 169 * 170 * This function will not resume the wait if interrupted. 171 * 172 * @returns iprt status code. 173 * @param hCon vVar The condition variable to wait on.165 RTDECL(int) RTCondVarRWWriteWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 166 167 /** 168 * Wait for the condition variable to be signaled, return on interruption. 169 * 170 * This function will not resume the wait if interrupted. 171 * 172 * @returns iprt status code. 173 * @param hCondVar The condition variable to wait on. 174 174 * @param hRWSem The read/write semaphore to write-leave during 175 175 * the wait and which will be re-enter in write … … 178 178 * RT_INDEFINITE_WAIT to wait forever. 179 179 */ 180 RTDECL(int) RTCon vVarRWWriteWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);181 182 /** 183 * Wait for the condition variable to be signaled, resume on interruption. 184 * 185 * This function will resume if the wait is interrupted by an async system event 186 * (like a unix signal) or similar. 187 * 188 * @returns iprt status code. 189 * Will not return VERR_INTERRUPTED. 190 * @param hCon vVar The condition variable to wait on.180 RTDECL(int) RTCondVarRWWriteWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 181 182 /** 183 * Wait for the condition variable to be signaled, resume on interruption. 184 * 185 * This function will resume if the wait is interrupted by an async system event 186 * (like a unix signal) or similar. 187 * 188 * @returns iprt status code. 189 * Will not return VERR_INTERRUPTED. 190 * @param hCondVar The condition variable to wait on. 191 191 * @param hRWSem The read/write semaphore to read-leave during 192 192 * the wait and which will be re-enter in read mode … … 195 195 * RT_INDEFINITE_WAIT to wait forever. 196 196 */ 197 RTDECL(int) RTCon vVarRWReadWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);198 199 /** 200 * Wait for the condition variable to be signaled, return on interruption. 201 * 202 * This function will not resume the wait if interrupted. 203 * 204 * @returns iprt status code. 205 * @param hCon vVar The condition variable to wait on.197 RTDECL(int) RTCondVarRWReadWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 198 199 /** 200 * Wait for the condition variable to be signaled, return on interruption. 201 * 202 * This function will not resume the wait if interrupted. 203 * 204 * @returns iprt status code. 205 * @param hCondVar The condition variable to wait on. 206 206 * @param hRWSem The read/write semaphore to read-leave during 207 207 * the wait and which will be re-enter in read mode … … 210 210 * RT_INDEFINITE_WAIT to wait forever. 211 211 */ 212 RTDECL(int) RTCon vVarRWReadWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);213 214 /** 215 * Wait for the condition variable to be signaled, resume on interruption. 216 * 217 * This function will resume if the wait is interrupted by an async system event 218 * (like a unix signal) or similar. 219 * 220 * @returns iprt status code. 221 * Will not return VERR_INTERRUPTED. 222 * @param hCon vVar The condition variable to wait on.212 RTDECL(int) RTCondVarRWReadWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 213 214 /** 215 * Wait for the condition variable to be signaled, resume on interruption. 216 * 217 * This function will resume if the wait is interrupted by an async system event 218 * (like a unix signal) or similar. 219 * 220 * @returns iprt status code. 221 * Will not return VERR_INTERRUPTED. 222 * @param hCondVar The condition variable to wait on. 223 223 * @param pCritSect The critical section to leave during the wait 224 224 * and which will be re-enter before returning. … … 226 226 * RT_INDEFINITE_WAIT to wait forever. 227 227 */ 228 RTDECL(int) RTCon vVarCritSectWait(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies);229 230 /** 231 * Wait for the condition variable to be signaled, return on interruption. 232 * 233 * This function will not resume the wait if interrupted. 234 * 235 * @returns iprt status code. 236 * @param hCon vVar The condition variable to wait on.228 RTDECL(int) RTCondVarCritSectWait(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies); 229 230 /** 231 * Wait for the condition variable to be signaled, return on interruption. 232 * 233 * This function will not resume the wait if interrupted. 234 * 235 * @returns iprt status code. 236 * @param hCondVar The condition variable to wait on. 237 237 * @param pCritSect The critical section to leave during the wait 238 238 * and which will be re-enter before returning. … … 240 240 * RT_INDEFINITE_WAIT to wait forever. 241 241 */ 242 RTDECL(int) RTCon vVarCritSectWaitNoResume(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies);242 RTDECL(int) RTCondVarCritSectWaitNoResume(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies); 243 243 244 244 /** … … 246 246 * 247 247 * This is only used for validating usage and deadlock detection. When used 248 * after calls to RTCon vVarAddSignaller, the specified thread will be the only248 * after calls to RTCondVarAddSignaller, the specified thread will be the only 249 249 * signalling thread. 250 250 * 251 * @param hCon vVar The condition variable.251 * @param hCondVar The condition variable. 252 252 * @param hThread The thread that will signal it. Pass 253 253 * NIL_RTTHREAD to indicate that there is no 254 254 * special signalling thread. 255 255 */ 256 RTDECL(void) RTCon vVarSetSignaller(RTCONDVAR hCondVar, RTTHREAD hThread);256 RTDECL(void) RTCondVarSetSignaller(RTCONDVAR hCondVar, RTTHREAD hThread); 257 257 258 258 /** … … 261 261 * First call RTCondVarSetSignaller then add further threads with this. 262 262 * 263 * @param hCon vVar The condition variable.263 * @param hCondVar The condition variable. 264 264 * @param hThread The thread that will signal it. NIL_RTTHREAD is 265 265 * not accepted. 266 266 */ 267 RTDECL(void) RTCon vVarAddSignaller(RTCONDVAR hCondVar, RTTHREAD hThread);267 RTDECL(void) RTCondVarAddSignaller(RTCONDVAR hCondVar, RTTHREAD hThread); 268 268 269 269 /** … … 272 272 * Reverts work done by RTCondVarAddSignaller and RTCondVarSetSignaller. 273 273 * 274 * @param hCon vVar The condition variable.274 * @param hCondVar The condition variable. 275 275 * @param hThread A previously added thread. 276 276 */ 277 RTDECL(void) RTCon vVarRemoveSignaller(RTCONDVAR hCondVar, RTTHREAD hThread);277 RTDECL(void) RTCondVarRemoveSignaller(RTCONDVAR hCondVar, RTTHREAD hThread); 278 278 279 279 /** @} */ -
trunk/include/iprt/coredumper.h
r56291 r57926 73 73 * @param pszOutputDir The directory to store the cores in. If NULL 74 74 * the current directory will be used. 75 * @param pszBaseName Base file name, no directory. If NULL the76 * dumper will generate an appropriate name.77 75 * @param fFlags Setup flags, 0 in NOT a valid flag, it must be 78 76 * one or more of RTCOREDUMPER_FLAGS_*. -
trunk/include/iprt/critsect.h
r57004 r57926 175 175 * @param pCritSect The critical section. 176 176 * @param uId Where we're entering the section. 177 * @param pszFile The source position - file. 178 * @param iLine The source position - line. 179 * @param pszFunction The source position - function. 177 * @param SRC_POS The source position where call is being made from. 178 * Use RT_SRC_POS when possible. Optional. 180 179 */ 181 180 RTDECL(int) RTCritSectEnterDebug(PRTCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 205 204 * @param pCritSect The critical section. 206 205 * @param uId Where we're entering the section. 207 * @param pszFile The source position - file. 208 * @param iLine The source position - line. 209 * @param pszFunction The source position - function. 206 * @param SRC_POS The source position where call is being made from. 207 * Use RT_SRC_POS when possible. Optional. 210 208 */ 211 209 RTDECL(int) RTCritSectTryEnterDebug(PRTCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 244 242 * @param papCritSects Array of critical section pointers. 245 243 * @param uId Where we're entering the section. 246 * @param pszFile The source position - file. 247 * @param iLine The source position - line. 248 * @param pszFunction The source position - function. 244 * @param SRC_POS The source position where call is being made from. 245 * Use RT_SRC_POS when possible. Optional. 249 246 * 250 247 * @remark See RTCritSectEnterMultiple(). … … 525 522 * @param pThis Pointer to the read/write critical section. 526 523 * @param uId Where we're entering the section. 527 * @param pszFile The source position - file. 528 * @param iLine The source position - line. 529 * @param pszFunction The source position - function. 524 * @param SRC_POS The source position where call is being made from. 525 * Use RT_SRC_POS when possible. Optional. 530 526 */ 531 527 RTDECL(int) RTCritSectRwEnterSharedDebug(PRTCRITSECTRW pThis, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 557 553 * @param pThis Pointer to the read/write critical section. 558 554 * @param uId Where we're entering the section. 559 * @param pszFile The source position - file. 560 * @param iLine The source position - line. 561 * @param pszFunction The source position - function. 555 * @param SRC_POS The source position where call is being made from. 556 * Use RT_SRC_POS when possible. Optional. 562 557 */ 563 558 RTDECL(int) RTCritSectRwTryEnterSharedDebug(PRTCRITSECTRW pThis, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 594 589 * @param pThis Pointer to the read/write critical section. 595 590 * @param uId Where we're entering the section. 596 * @param pszFile The source position - file. 597 * @param iLine The source position - line. 598 * @param pszFunction The source position - function. 591 * @param SRC_POS The source position where call is being made from. 592 * Use RT_SRC_POS when possible. Optional. 599 593 */ 600 594 RTDECL(int) RTCritSectRwEnterExclDebug(PRTCRITSECTRW pThis, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 626 620 * @param pThis Pointer to the read/write critical section. 627 621 * @param uId Where we're entering the section. 628 * @param pszFile The source position - file. 629 * @param iLine The source position - line. 630 * @param pszFunction The source position - function. 622 * @param SRC_POS The source position where call is being made from. 623 * Use RT_SRC_POS when possible. Optional. 631 624 */ 632 625 RTDECL(int) RTCritSectRwTryEnterExclDebug(PRTCRITSECTRW pThis, RTHCUINTPTR uId, RT_SRC_POS_DECL); -
trunk/include/iprt/file.h
r57613 r57926 781 781 * Opens a new file with a unique name in the temp directory. 782 782 * 783 * @returns iprt status code. 784 * @param pszTemplate The file name template on input. The actual file 785 * name on success. Empty string on failure. 786 * @param fMode The mode to create the file with. Use 0600 unless 787 * you have reason not to. 783 * Unlike the other temp file creation APIs, this does not allow you any control 784 * over the name. Nor do you have to figure out where the temporary directory 785 * is. 786 * 787 * @returns iprt status code. 788 * @param phFile Where to return the handle to the file. 789 * @param pszFilename Where to return the name (+path) of the file . 790 * @param cbFilename The size of the buffer @a pszFilename points to. 791 * @param fOpen The RTFILE_O_XXX flags to open the file with. 788 792 * 789 793 * @remarks If actual control over the filename or location is required, we'll 790 794 * create an extended edition of this API. 791 795 */ 792 RTDECL(int) RTFileOpenTemp(PRTFILE p File, char *pszFilename, size_t cbFilename, uint64_t fOpen);796 RTDECL(int) RTFileOpenTemp(PRTFILE phFile, char *pszFilename, size_t cbFilename, uint64_t fOpen); 793 797 794 798 … … 1005 1009 * @returns iprt status code. 1006 1010 * @param File Handle to the file. 1007 * @param iRequestIOCTL request to carry out.1011 * @param ulRequest IOCTL request to carry out. 1008 1012 * @param pvData IOCTL data. 1009 1013 * @param cbData Size of the IOCTL data. -
trunk/include/iprt/getopt.h
r56291 r57926 416 416 * @param papszArgv Argument vector. NULL is fine. 417 417 */ 418 RTDECL(void) RTGetOptArgvFree(char **pa Argv);418 RTDECL(void) RTGetOptArgvFree(char **papszArgv); 419 419 420 420 /** … … 430 430 * @param ppszCmdLine Where to return the command line string. This must 431 431 * be freed by calling RTStrFree. 432 * @param papszArg sThe argument vector to convert.432 * @param papszArgv The argument vector to convert. 433 433 * @param fFlags A combination of the RTGETOPTARGV_CNV_XXX flags. 434 434 */ -
trunk/include/iprt/http.h
r57613 r57926 164 164 * 165 165 * @param hHttp The HTTP client instance. 166 * @param pszProxy URL of the proxy.166 * @param pszProxyUrl URL of the proxy server. 167 167 * @param uPort port number of the proxy, use 0 for not specifying a port. 168 168 * @param pszProxyUser Username, pass NULL for no authentication. 169 169 * @param pszProxyPwd Password, pass NULL for no authentication. 170 * 171 * @todo This API does not allow specifying the type of proxy server... We're 172 * currently assuming it's a HTTP proxy. 170 173 */ 171 174 RTR3DECL(int) RTHttpSetProxy(RTHTTP hHttp, const char *pszProxyUrl, uint32_t uPort, -
trunk/include/iprt/initterm.h
r56291 r57926 77 77 * @param fFlags Flags, see RTR3INIT_XXX. 78 78 */ 79 RTR3DECL(int) RTR3InitExe(int cArgs, char ***p apszArgs, uint32_t fFlags);79 RTR3DECL(int) RTR3InitExe(int cArgs, char ***ppapszArgs, uint32_t fFlags); 80 80 81 81 /** … … 101 101 * out ourselves. 102 102 */ 103 RTR3DECL(int) RTR3InitEx(uint32_t iVersion, uint32_t fFlags, int cArgs, char ***p apszArgs, const char *pszProgramPath);103 RTR3DECL(int) RTR3InitEx(uint32_t iVersion, uint32_t fFlags, int cArgs, char ***ppapszArgs, const char *pszProgramPath); 104 104 105 105 /** -
trunk/include/iprt/isofs.h
r56291 r57926 194 194 * Retrieves the offset + length (both in bytes) of a given file 195 195 * stored in the ISO. 196 * 196 197 * @note According to the standard, a file cannot be larger than 2^32-1 bytes. 197 198 * Therefore using size_t / uint32_t is not a problem. … … 200 201 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 201 202 * @param pszPath Path of file within the ISO to retrieve information for. 202 * @param pcbOffset Pointer to store the file's absolute offset within the ISO. 203 * @param poffInIso Wheter to store the file's absolute offset within the 204 * ISO. 203 205 * @param pcbLength Pointer to store the file's size. 204 206 */ 205 RTR3DECL(int) RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath, 206 uint32_t *pcbOffset, size_t *pcbLength); 207 RTR3DECL(int) RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath, uint32_t *poffInIso, size_t *pcbLength); 207 208 208 209 /** … … 211 212 * @return IPRT status code. 212 213 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 213 * @param psz PathPath of file within the ISO to extract.214 * @param pszD estWhere to store the extracted file.215 */ 216 RTR3DECL(int) RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszS ource,217 const char *pszDest); 214 * @param pszSrcPath Path of file within the ISO to extract. 215 * @param pszDstPath Where to store the extracted file. 216 */ 217 RTR3DECL(int) RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszSrcPath, const char *pszDstPath); 218 218 219 #endif /* IN_RING3 */ 219 220 -
trunk/include/iprt/ldr.h
r56309 r57926 690 690 /** Watcom debug info. */ 691 691 RTLDRDBGINFOTYPE_WATCOM, 692 /** IBM High Level Language debug info. .*/692 /** IBM High Level Language debug info. */ 693 693 RTLDRDBGINFOTYPE_HLL, 694 694 /** The end of the valid debug info values (exclusive). */ … … 931 931 * 932 932 * @param hLdrMod The module handle. 933 * @param Rva The segment index. 934 * @param offSeg The segment offset. 935 * @param pRva Where to return the RVA. 936 */ 937 RTDECL(int) RTLdrSegOffsetToRva(RTLDRMOD hLdrMod, uint32_t iSeg, RTLDRADDR offSeg, PRTLDRADDR pRva); 938 939 /** 940 * Converts a segment:offset into an image relative virtual address (RVA). 941 * 942 * @returns IPRT status code. 943 * 944 * @param hLdrMod The module handle. 933 945 * @param Rva The link address to convert. 934 946 * @param piSeg Where to return the segment index. 935 947 * @param poffSeg Where to return the segment offset. 936 */937 RTDECL(int) RTLdrSegOffsetToRva(RTLDRMOD hLdrMod, uint32_t iSeg, RTLDRADDR offSeg, PRTLDRADDR pRva);938 939 /**940 * Converts a segment:offset into an image relative virtual address (RVA).941 *942 * @returns IPRT status code.943 *944 * @param hLdrMod The module handle.945 * @param iSeg The segment index.946 * @param offSeg The segment offset.947 * @param pRva Where to return the RVA.948 948 */ 949 949 RTDECL(int) RTLdrRvaToSegOffset(RTLDRMOD hLdrMod, RTLDRADDR Rva, uint32_t *piSeg, PRTLDRADDR poffSeg); … … 1036 1036 * 1037 1037 * @param hLdrMod The module handle. 1038 * @param enm LdrPropThe property to query.1038 * @param enmProp The property to query. 1039 1039 * @param pvBuf Pointer to the input / output buffer. In most cases 1040 1040 * it's only used for returning data. … … 1059 1059 * 1060 1060 * @param hLdrMod The module handle. 1061 * @param enm LdrPropThe property to query.1061 * @param enmProp The property to query. 1062 1062 * @param pvBits Optional pointer to bits returned by 1063 1063 * RTLdrGetBits(). This can be utilized by some module -
trunk/include/iprt/list-off32.h
r55487 r57926 233 233 * 234 234 * @param pList The list. 235 * @param pNode StructThe node structure to check. Typically235 * @param pNode The node structure to check. Typically 236 236 * something obtained from RTListOff32NodeGetNext() 237 237 * or RTListOff32NodeGetPrev(). This is NOT a -
trunk/include/iprt/list.h
r56291 r57926 179 179 * 180 180 * @param pList The list. 181 * @param pNode StructThe node structure to check. Typically181 * @param pNode The node structure to check. Typically 182 182 * something obtained from RTListNodeGetNext() or 183 183 * RTListNodeGetPrev(). This is NOT a PRTLISTNODE -
trunk/include/iprt/lockvalidator.h
r57004 r57926 694 694 * pass NIL_RTTHREAD and we'll figure it out. 695 695 * @param pSrcPos The source position of the lock operation. 696 * @param cMillies Intended sleep time in milliseconds. 696 697 */ 697 698 RTDECL(int) RTLockValidatorRecSharedCheckOrder(PRTLOCKVALRECSHRD pRec, RTTHREAD hThreadSelf, … … 716 717 * @param pSrcPos The source position of the lock operation. 717 718 * @param fRecursiveOk Whether it's ok to recurse. 719 * @param cMillies Intended sleep time in milliseconds. 718 720 * @param enmSleepState The sleep state to enter on successful return. 719 721 * @param fReallySleeping Is it really going to sleep now or not. Use … … 734 736 * @param pSrcPos The source position of the lock operation. 735 737 * @param fRecursiveOk Whether it's ok to recurse. 738 * @param cMillies Intended sleep time in milliseconds. 736 739 * @param enmSleepState The sleep state to enter on successful return. 737 740 * @param fReallySleeping Is it really going to sleep now or not. Use … … 988 991 * itself new locking order rules (true), or if the 989 992 * user will teach it all it needs to know (false). 990 * @param pszFile The source position of the call, file. 991 * @param iLine The source position of the call, line. 992 * @param pszFunction The source position of the call, function. 993 * @param SRC_POS The source position where call is being made from. 994 * Use RT_SRC_POS when possible. Optional. 993 995 * @param pszNameFmt Class name format string, optional (NULL). Max 994 996 * length is 32 bytes. … … 1007 1009 * first retainer. NIL_RTLOCKVALCLASS if we run into trouble. 1008 1010 * 1009 * @param pszFile The source position of the call, file. 1010 * @param iLine The source position of the call, line. 1011 * @param pszFunction The source position of the call, function. 1011 * @param SRC_POS The source position where call is being made from. 1012 * Use RT_SRC_POS when possible. Optional. 1012 1013 * @param pszNameFmt Class name format string, optional (NULL). Max 1013 1014 * length is 32 bytes. … … 1029 1030 * 1030 1031 * @returns Class handle (not retained!) or NIL_RTLOCKVALCLASS. 1031 * @param pszFile The source file. 1032 * @param iLine The line in that source file. 1033 * @param pszFunction The function name. 1032 * @param SRC_POS The source position where call is being made from. 1033 * Use RT_SRC_POS when possible. Optional. 1034 1034 * @param pszNameFmt Class name format string, optional (NULL). Max 1035 1035 * length is 32 bytes. … … 1058 1058 /** 1059 1059 * Teaches the class @a hClass that locks in the class @a hPriorClass can be 1060 * held when taking a lock of class @ hClass1060 * held when taking a lock of class @a hClass 1061 1061 * 1062 1062 * @returns IPRT status. … … 1073 1073 * @returns IPRT status. 1074 1074 * @param hClass Handle to the class to change. 1075 * @param fEnable 1075 * @param fEnabled Enable it (true) or disable it (false). 1076 1076 */ 1077 1077 RTDECL(int) RTLockValidatorClassEnforceStrictReleaseOrder(RTLOCKVALCLASS hClass, bool fEnabled); -
trunk/include/iprt/log.h
r57814 r57926 1104 1104 * @{ */ 1105 1105 1106 /** @def Log Warning11106 /** @def Log1Warning 1107 1107 * The same as Log(), but prepents a <tt>"WARNING! "</tt> string to the message. 1108 1108 * … … 1115 1115 #endif 1116 1116 1117 /** @def Log WarningFunc1117 /** @def Log1WarningFunc 1118 1118 * The same as LogWarning(), but prepents the log message with the function name. 1119 1119 * … … 1128 1128 #endif 1129 1129 1130 /** @def Log WarningThisFunc1130 /** @def Log1WarningThisFunc 1131 1131 * The same as LogWarningFunc() but for class functions (methods): the resulting 1132 1132 * log line is additionally prepended with a hex value of |this| pointer. -
trunk/include/iprt/manifest.h
r56291 r57926 114 114 */ 115 115 RTDECL(int) RTManifestEqualsEx(RTMANIFEST hManifest1, RTMANIFEST hManifest2, const char * const *papszIgnoreEntries, 116 const char * const *papszIgnoreAttr , uint32_t fFlags, char *pszError, size_t cbError);116 const char * const *papszIgnoreAttrs, uint32_t fFlags, char *pszError, size_t cbError); 117 117 118 118 /** @defgroup RTMANIFEST_EQUALS_XXX RTManifestEqualsEx flags … … 164 164 165 165 /** 166 * Query a manifest entryattribute.166 * Query a manifest attribute. 167 167 * 168 168 * @returns IPRT status code. 169 169 * @retval VERR_BUFFER_OVERFLOW if the value buffer is too small. The @a 170 170 * pszValue buffer will not be modified. 171 * @retval VERR_MANIFEST_ATTR_NOT_FOUND 172 * @retval VERR_MANIFEST_ATTR_TYPE_NOT_FOUND 173 * @retval VERR_MANIFEST_ATTR_TYPE_MISMATCH 174 * 175 * @param hManifest The manifest handle. 176 * @param pszAttr The attribute name. If NULL, it will be 177 * selected by @a fType alone. 178 * @param fType The attribute types the entry should match. Pass 179 * Pass RTMANIFEST_ATTR_ANY match any. If more 180 * than one is given, the first matching one is 181 * returned. 182 * @param pszValue Where to return value. 183 * @param cbValue The size of the buffer @a pszValue points to. 184 * @param pfType Where to return the attribute type value. 185 */ 186 RTDECL(int) RTManifestQueryAttr(RTMANIFEST hManifest, const char *pszAttr, uint32_t fType, 187 char *pszValue, size_t cbValue, uint32_t *pfType); 188 189 /** 190 * Sets an attribute of a manifest entry. 191 * 192 * @returns IPRT status code. 193 * @param hManifest The manifest handle. 194 * @param pszEntry The entry name. This will automatically be 195 * added if there was no previous call to 196 * RTManifestEntryAdd for this name. See 197 * RTManifestEntryAdd for the entry name rules. 198 * @param pszAttr The attribute name. If this already exists, 199 * its value will be replaced. 200 * @param pszValue The value string. 201 * @param fType The attribute type, pass 202 * RTMANIFEST_ATTR_UNKNOWN if not known. 203 */ 204 RTDECL(int) RTManifestEntrySetAttr(RTMANIFEST hManifest, const char *pszEntry, const char *pszAttr, 205 const char *pszValue, uint32_t fType); 206 207 /** 208 * Unsets (removes) an attribute of a manifest entry if they both exist. 209 * 210 * @returns IPRT status code. 211 * @retval VWRN_NOT_FOUND if not found. 212 * 213 * @param hManifest The manifest handle. 214 * @param pszEntry The entry name. 215 * @param pszAttr The attribute name. 216 */ 217 RTDECL(int) RTManifestEntryUnsetAttr(RTMANIFEST hManifest, const char *pszEntry, const char *pszAttr); 218 219 /** 220 * Query a manifest entry attribute. 221 * 222 * @returns IPRT status code. 223 * @retval VERR_BUFFER_OVERFLOW if the value buffer is too small. The @a 224 * pszValue buffer will not be modified. 225 * @retval VERR_NOT_FOUND if the entry was not found. 171 226 * @retval VERR_MANIFEST_ATTR_NOT_FOUND 172 227 * @retval VERR_MANIFEST_ATTR_TYPE_NOT_FOUND … … 185 240 * @param pfType Where to return the attribute type value. 186 241 */ 187 RTDECL(int) RTManifestQueryAttr(RTMANIFEST hManifest, const char *pszAttr, uint32_t fType,188 char *pszValue, size_t cbValue, uint32_t *pfType);189 190 /**191 * Sets an attribute of a manifest entry.192 *193 * @returns IPRT status code.194 * @param hManifest The manifest handle.195 * @param pszEntry The entry name. This will automatically be196 * added if there was no previous call to197 * RTManifestEntryAdd for this name. See198 * RTManifestEntryAdd for the entry name rules.199 * @param pszAttr The attribute name. If this already exists,200 * its value will be replaced.201 * @param pszValue The value string.202 * @param fType The attribute type, pass203 * RTMANIFEST_ATTR_UNKNOWN if not known.204 */205 RTDECL(int) RTManifestEntrySetAttr(RTMANIFEST hManifest, const char *pszEntry, const char *pszAttr,206 const char *pszValue, uint32_t fType);207 208 /**209 * Unsets (removes) an attribute of a manifest entry if they both exist.210 *211 * @returns IPRT status code.212 * @retval VWRN_NOT_FOUND if not found.213 *214 * @param hManifest The manifest handle.215 * @param pszEntry The entry name.216 * @param pszAttr The attribute name.217 */218 RTDECL(int) RTManifestEntryUnsetAttr(RTMANIFEST hManifest, const char *pszEntry, const char *pszAttr);219 220 /**221 * Query a manifest entry attribute.222 *223 * @returns IPRT status code.224 * @retval VERR_BUFFER_OVERFLOW if the value buffer is too small. The @a225 * pszValue buffer will not be modified.226 * @retval VERR_NOT_FOUND if the entry was not found.227 * @retval VERR_MANIFEST_ATTR_NOT_FOUND228 * @retval VERR_MANIFEST_ATTR_TYPE_NOT_FOUND229 * @retval VERR_MANIFEST_ATTR_TYPE_MISMATCH230 *231 * @param hManifest The manifest handle.232 * @param pszEntry The entry name.233 * @param pszAttr The attribute name. If NULL, it will be234 * selected by @a fType alone.235 * @param fType The attribute types the entry should match. Pass236 * Pass RTMANIFEST_ATTR_ANY match any. If more237 * than one is given, the first matching one is238 * returned.239 * @param pszValue Where to return value.240 * @param cbValue The size of the buffer @a pszValue points to.241 * @param pfType Where to return the attribute type value.242 */243 242 RTDECL(int) RTManifestEntryQueryAttr(RTMANIFEST hManifest, const char *pszEntry, const char *pszAttr, uint32_t fType, 244 243 char *pszValue, size_t cbValue, uint32_t *pfType); … … 492 491 * @param cbSize Size of the memory buffer. 493 492 * @param paTests Array of file names and digests. 494 * @param cTest 493 * @param cTests Number of entries in paTests. 495 494 * @param piFailed A index to paTests in the 496 495 * VERR_MANIFEST_DIGEST_MISMATCH error case -
trunk/include/iprt/mem.h
r57432 r57926 144 144 * @returns NULL on failure, assertion raised in strict builds. 145 145 * @param cb Size in bytes of the memory block to allocated. 146 * @param pszTag Allocation tag used for statistics and such.147 146 */ 148 147 #define RTMemAlloc(cb) RTMemAllocTag((cb), RTMEM_TAG) … … 299 298 300 299 301 /** @ defRTR0MemAllocEx and RTR0MemAllocExTag flags.300 /** @name RTR0MemAllocEx and RTR0MemAllocExTag flags. 302 301 * @{ */ 303 302 /** The returned memory should be zeroed. */ … … 369 368 * @param pv What to free, NULL is fine. 370 369 * @param cb The amount of allocated memory. 371 * @param fFlags The flags specified when allocating the memory.372 * Whether the exact flags are requires depends on373 * the implementation, but in general, ring-0374 * doesn't require anything while ring-3 requires375 * RTMEMALLOCEX_FLAGS_EXEC if used.376 370 */ 377 371 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_PROTO; … … 636 630 * @param cb Size in bytes of the memory block to allocate. 637 631 * @param pszTag Allocation tag used for statistics and such. 632 * @param SRC_POS The source position where call is being made from. 633 * Use RT_SRC_POS when possible. Optional. 638 634 */ 639 635 RTDECL(void *) RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 646 642 * @param cb Size in bytes of the memory block to allocate. 647 643 * @param pszTag Allocation tag used for statistics and such. 644 * @param SRC_POS The source position where call is being made from. Use 645 * RT_SRC_POS when possible. Optional. 648 646 */ 649 647 RTDECL(void *) RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 653 651 * 654 652 * @param pv Pointer to memory block. 653 * @param SRC_POS The source position where call is being made from. Use 654 * RT_SRC_POS when possible. Optional. 655 655 */ 656 656 RTDECL(void) RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 663 663 * @param cb Size in bytes of the memory block to allocate. 664 664 * @param pszTag Allocation tag used for statistics and such. 665 * @param SRC_POS The source position where call is being made from. Use 666 * RT_SRC_POS when possible. Optional. 665 667 */ 666 668 RTDECL(void *) RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 673 675 * @param cb Size in bytes of the memory block to allocate. 674 676 * @param pszTag Allocation tag used for statistics and such. 677 * @param SRC_POS The source position where call is being made from. Use 678 * RT_SRC_POS when possible. Optional. 675 679 */ 676 680 RTDECL(void *) RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 683 687 * @param cbUnaligned Size in bytes of the memory block to allocate. 684 688 * @param pszTag Allocation tag used for statistics and such. 689 * @param SRC_POS The source position where call is being made from. Use 690 * RT_SRC_POS when possible. Optional. 685 691 */ 686 692 RTDECL(void *) RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 693 699 * @param cbUnaligned Size in bytes of the memory block to allocate. 694 700 * @param pszTag Allocation tag used for statistics and such. 701 * @param SRC_POS The source position where call is being made from. Use 702 * RT_SRC_POS when possible. Optional. 695 703 */ 696 704 RTDECL(void *) RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 704 712 * @param cbNew The new block size (in bytes). 705 713 * @param pszTag Allocation tag used for statistics and such. 714 * @param SRC_POS The source position where call is being made from. Use 715 * RT_SRC_POS when possible. Optional. 706 716 */ 707 717 RTDECL(void *) RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 722 732 * @param cb The amount of memory to duplicate. 723 733 * @param pszTag Allocation tag used for statistics and such. 734 * @param SRC_POS The source position where call is being made from. Use 735 * RT_SRC_POS when possible. Optional. 724 736 */ 725 737 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 734 746 * @param cbExtra The amount of extra memory to allocate and zero. 735 747 * @param pszTag Allocation tag used for statistics and such. 748 * @param SRC_POS The source position where call is being made from. Use 749 * RT_SRC_POS when possible. Optional. 736 750 */ 737 751 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; … … 920 934 /** 921 935 * Fenced drop-in replacement for RTMemDupExTag. 922 * @copydoc RTMemDup ExTag936 * @copydoc RTMemDupTag 923 937 */ 924 938 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_PROTO; -
trunk/include/iprt/memsafer.h
r57432 r57926 163 163 * @param cbNew The size of the new allocation. 164 164 * @param ppvNew Where to return the pointer to the new memory. 165 * @param a_fFlagsFlags for controlling the allocation, see165 * @param fFlags Flags for controlling the allocation, see 166 166 * RTMEMSAFER_F_XXX. It is not permitted to drop saftely 167 167 * requirments after the initial allocation. -
trunk/include/iprt/message.h
r56919 r57926 84 84 * @param ... Format arguments. 85 85 */ 86 RTDECL(RTEXITCODE) RTMsgErrorExit(RTEXITCODE enmExit code, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3);86 RTDECL(RTEXITCODE) RTMsgErrorExit(RTEXITCODE enmExitCode, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 87 87 88 88 /** … … 106 106 * @param ... Format arguments. 107 107 */ 108 RTDECL(int) RTMsgErrorRc(int rc , const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3);108 RTDECL(int) RTMsgErrorRc(int rcRet, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 109 109 110 110 /** … … 117 117 * @param va Format arguments. 118 118 */ 119 RTDECL(int) RTMsgErrorRcV(int rc , const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0);119 RTDECL(int) RTMsgErrorRcV(int rcRet, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 120 120 121 121 /** -
trunk/include/iprt/net.h
r56291 r57926 47 47 * failure. 48 48 * 49 * @param psz Value The valueto convert.50 * @param p AddrWhere to store the result.49 * @param pszAddr The address string to convert. 50 * @param pMacAddr Where to store the result. 51 51 */ 52 52 RTDECL(int) RTNetStrToMacAddr(const char *pszAddr, PRTMAC pMacAddr); -
trunk/include/iprt/path.h
r57613 r57926 807 807 * RTPATHSPLIT::cchPath. 808 808 * 809 * @param p Parsed The parser output for @a pszSrcPath.809 * @param pSplit A split path (see RTPathSplit, RTPathSplitA). 810 810 * @param fFlags Combination of RTPATH_STR_F_STYLE_XXX. 811 811 * Most users will pass 0. -
trunk/include/iprt/process.h
r57916 r57926 160 160 * @param pszAsUser User to run the process as. Pass NULL to use the same 161 161 * user as the current process. 162 * Windows: Use user @domain format to specify a domain.162 * Windows: Use user\@domain format to specify a domain. 163 163 * @param pszPassword Password to use to authenticate @a pszAsUser. Must be 164 164 * NULL wif pszAsUser is NULL. Whether this is actually … … 341 341 * the process by returning from main(). 342 342 * 343 * @param papszArgs The argument vector of the calling process.344 * @param pszDaemonized The daemonized option. This is appended to the end345 * of the parameter list of the daemonized process.343 * @param papszArgs The argument vector of the calling process. 344 * @param pszDaemonizedOpt The daemonized option. This is appended to the 345 * end of the parameter list of the daemonized process. 346 346 */ 347 347 RTR3DECL(int) RTProcDaemonize(const char * const *papszArgs, const char *pszDaemonizedOpt); -
trunk/include/iprt/semaphore.h
r57004 r57926 215 215 * @param uId Some kind of locking location ID. Typically a 216 216 * return address up the stack. Optional (0). 217 * @param pszFile The file where the lock is being acquired from. 218 * Optional. 219 * @param iLine The line number in that file. Optional (0). 220 * @param pszFunction The function where the lock is being acquired 221 * from. Optional. 217 * @param SRC_POS The source position where call is being made 218 * from. Use RT_SRC_POS when possible. Optional. 222 219 */ 223 220 RTDECL(int) RTSemEventWaitExDebug(RTSEMEVENT hEventSem, uint32_t fFlags, uint64_t uTimeout, … … 390 387 * @param uId Some kind of locking location ID. Typically a 391 388 * return address up the stack. Optional (0). 392 * @param pszFile The file where the lock is being acquired from. 393 * Optional. 394 * @param iLine The line number in that file. Optional (0). 395 * @param pszFunction The function where the lock is being acquired 396 * from. Optional. 389 * @param SRC_POS The source position where call is being made 390 * from. Use RT_SRC_POS when possible. Optional. 397 391 */ 398 392 RTDECL(int) RTSemEventMultiWaitExDebug(RTSEMEVENTMULTI hEventMultiSem, uint32_t fFlags, uint64_t uTimeout, … … 468 462 * 469 463 * @returns iprt status code. 470 * @param ph RWSemWhere to store the handle to the newly created471 * RWsemaphore.464 * @param phMutexSem Where to store the handle to the newly created 465 * mutex semaphore. 472 466 * @param fFlags Flags, any combination of the 473 467 * RTSEMMUTEX_FLAGS_XXX \#defines. … … 556 550 * @param uId Some kind of locking location ID. Typically a 557 551 * return address up the stack. Optional (0). 558 * @param pszFile The file where the lock is being acquired from. 559 * Optional. 560 * @param iLine The line number in that file. Optional (0). 561 * @param pszFunction The function where the lock is being acquired 562 * from. Optional. 552 * @param SRC_POS The source position where call is being made 553 * from. Use RT_SRC_POS when possible. Optional. 563 554 */ 564 555 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 572 563 * @param uId Some kind of locking location ID. Typically a 573 564 * return address up the stack. Optional (0). 574 * @param pszFile The file where the lock is being acquired from. 575 * Optional. 576 * @param iLine The line number in that file. Optional (0). 577 * @param pszFunction The function where the lock is being acquired 578 * from. Optional. 565 * @param SRC_POS The source position where call is being made 566 * from. Use RT_SRC_POS when possible. Optional. 579 567 */ 580 568 RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 608 596 * @param uId Some kind of locking location ID. Typically a 609 597 * return address up the stack. Optional (0). 610 * @param pszFile The file where the lock is being acquired from. 611 * Optional. 612 * @param iLine The line number in that file. Optional (0). 613 * @param pszFunction The function where the lock is being acquired 614 * from. Optional. 598 * @param SRC_POS The source position where call is being made 599 * from. Use RT_SRC_POS when possible. Optional. 615 600 */ 616 601 RTDECL(int) RTSemMutexRequestExDebug(RTSEMMUTEX hMutexSem, uint32_t fFlags, uint64_t uTimeout, … … 916 901 * @param uId Some kind of locking location ID. Typically a 917 902 * return address up the stack. Optional (0). 918 * @param pszFile The file where the lock is being acquired from. 919 * Optional. 920 * @param iLine The line number in that file. Optional (0). 921 * @param pszFunction The function where the lock is being acquired 922 * from. Optional. 903 * @param SRC_POS The source position where call is being made 904 * from. Use RT_SRC_POS when possible. Optional. 923 905 */ 924 906 RTDECL(int) RTSemRWRequestReadDebug(RTSEMRW hRWSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 936 918 * @param uId Some kind of locking location ID. Typically a 937 919 * return address up the stack. Optional (0). 938 * @param pszFile The file where the lock is being acquired from. 939 * Optional. 940 * @param iLine The line number in that file. Optional (0). 941 * @param pszFunction The function where the lock is being acquired 942 * from. Optional. 920 * @param SRC_POS The source position where call is being made 921 * from. Use RT_SRC_POS when possible. Optional. 943 922 */ 944 923 RTDECL(int) RTSemRWRequestReadNoResumeDebug(RTSEMRW hRWSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 979 958 * @param uId Some kind of locking location ID. Typically a 980 959 * return address up the stack. Optional (0). 981 * @param pszFile The file where the lock is being acquired from. 982 * Optional. 983 * @param iLine The line number in that file. Optional (0). 984 * @param pszFunction The function where the lock is being acquired 985 * from. Optional. 960 * @param SRC_POS The source position where call is being made 961 * from. Use RT_SRC_POS when possible. Optional. 986 962 */ 987 963 RTDECL(int) RTSemRWRequestReadExDebug(RTSEMRW hRWSem, uint32_t fFlags, uint64_t uTimeout, … … 1033 1009 * @param uId Some kind of locking location ID. Typically a 1034 1010 * return address up the stack. Optional (0). 1035 * @param pszFile The file where the lock is being acquired from. 1036 * Optional. 1037 * @param iLine The line number in that file. Optional (0). 1038 * @param pszFunction The function where the lock is being acquired 1039 * from. Optional. 1011 * @param SRC_POS The source position where call is being made 1012 * from. Use RT_SRC_POS when possible. Optional. 1040 1013 */ 1041 1014 RTDECL(int) RTSemRWRequestWriteDebug(RTSEMRW hRWSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 1049 1022 * @param uId Some kind of locking location ID. Typically a 1050 1023 * return address up the stack. Optional (0). 1051 * @param pszFile The file where the lock is being acquired from. 1052 * Optional. 1053 * @param iLine The line number in that file. Optional (0). 1054 * @param pszFunction The function where the lock is being acquired 1055 * from. Optional. 1024 * @param SRC_POS The source position where call is being made 1025 * from. Use RT_SRC_POS when possible. Optional. 1056 1026 */ 1057 1027 RTDECL(int) RTSemRWRequestWriteNoResumeDebug(RTSEMRW hRWSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL); … … 1088 1058 * @param uId Some kind of locking location ID. Typically a 1089 1059 * return address up the stack. Optional (0). 1090 * @param pszFile The file where the lock is being acquired from. 1091 * Optional. 1092 * @param iLine The line number in that file. Optional (0). 1093 * @param pszFunction The function where the lock is being acquired 1094 * from. Optional. 1060 * @param SRC_POS The source position where call is being made 1061 * from. Use RT_SRC_POS when possible. Optional. 1095 1062 */ 1096 1063 RTDECL(int) RTSemRWRequestWriteExDebug(RTSEMRW hRWSem, uint32_t fFlags, uint64_t uTimeout, -
trunk/include/iprt/sha.h
r57572 r57926 63 63 * @param pvBuf Pointer to the data. 64 64 * @param cbBuf The amount of data (in bytes). 65 * @param pab DigestWhere to store the hash. (What is passed is a pointer to66 * the caller's buffer.) 67 */ 68 RTDECL(void) RTSha1(const void *pvBuf, size_t cbBuf, uint8_t pab Digest[RTSHA1_HASH_SIZE]);65 * @param pabHash Where to store the hash. (What is passed is a pointer to 66 * the caller's buffer.) 67 */ 68 RTDECL(void) RTSha1(const void *pvBuf, size_t cbBuf, uint8_t pabHash[RTSHA1_HASH_SIZE]); 69 69 70 70 /** … … 77 77 * caller's buffer.) 78 78 */ 79 RTDECL(bool) RTSha1Check(const void *pvBuf, size_t cbBuf, uint8_t const pab Digest[RTSHA1_HASH_SIZE]);79 RTDECL(bool) RTSha1Check(const void *pvBuf, size_t cbBuf, uint8_t const pabHash[RTSHA1_HASH_SIZE]); 80 80 81 81 /** … … 99 99 * 100 100 * @param pCtx Pointer to the SHA-1 context. 101 * @param pab DigestWhere to store the hash. (What is passed is a pointer to102 * the caller's buffer.) 103 */ 104 RTDECL(void) RTSha1Final(PRTSHA1CONTEXT pCtx, uint8_t pab Digest[RTSHA1_HASH_SIZE]);101 * @param pabHash Where to store the hash. (What is passed is a pointer to 102 * the caller's buffer.) 103 */ 104 RTDECL(void) RTSha1Final(PRTSHA1CONTEXT pCtx, uint8_t pabHash[RTSHA1_HASH_SIZE]); 105 105 106 106 /** … … 109 109 * @returns IPRT status code. 110 110 * 111 * @param pab DigestThe binary digest returned by RTSha1Final or RTSha1.111 * @param pabHash The binary digest returned by RTSha1Final or RTSha1. 112 112 * @param pszDigest Where to return the stringified digest. 113 113 * @param cchDigest The size of the output buffer. Should be at least 114 114 * RTSHA1_DIGEST_LEN + 1 bytes. 115 115 */ 116 RTDECL(int) RTSha1ToString(uint8_t const pab Digest[RTSHA1_HASH_SIZE], char *pszDigest, size_t cchDigest);116 RTDECL(int) RTSha1ToString(uint8_t const pabHash[RTSHA1_HASH_SIZE], char *pszDigest, size_t cchDigest); 117 117 118 118 /** … … 123 123 * @param pszDigest The stringified digest. Leading and trailing spaces are 124 124 * ignored. 125 * @param pab DigestWhere to store the hash. (What is passed is a pointer to126 * the caller's buffer.) 127 */ 128 RTDECL(int) RTSha1FromString(char const *pszDigest, uint8_t pab Digest[RTSHA1_HASH_SIZE]);125 * @param pabHash Where to store the hash. (What is passed is a pointer to 126 * the caller's buffer.) 127 */ 128 RTDECL(int) RTSha1FromString(char const *pszDigest, uint8_t pabHash[RTSHA1_HASH_SIZE]); 129 129 130 130 /** … … 182 182 * @param pvBuf Pointer to the data. 183 183 * @param cbBuf The amount of data (in bytes). 184 * @param pab DigestWhere to store the hash. (What is passed is a pointer to185 * the caller's buffer.) 186 */ 187 RTDECL(void) RTSha256(const void *pvBuf, size_t cbBuf, uint8_t pab Digest[RTSHA256_HASH_SIZE]);184 * @param pabHash Where to store the hash. (What is passed is a pointer to 185 * the caller's buffer.) 186 */ 187 RTDECL(void) RTSha256(const void *pvBuf, size_t cbBuf, uint8_t pabHash[RTSHA256_HASH_SIZE]); 188 188 189 189 /** … … 196 196 * caller's buffer.) 197 197 */ 198 RTDECL(bool) RTSha256Check(const void *pvBuf, size_t cbBuf, uint8_t const pab Digest[RTSHA256_HASH_SIZE]);198 RTDECL(bool) RTSha256Check(const void *pvBuf, size_t cbBuf, uint8_t const pabHash[RTSHA256_HASH_SIZE]); 199 199 200 200 /** … … 218 218 * 219 219 * @param pCtx Pointer to the SHA-256 context. 220 * @param pab DigestWhere to store the hash. (What is passed is a pointer to221 * the caller's buffer.) 222 */ 223 RTDECL(void) RTSha256Final(PRTSHA256CONTEXT pCtx, uint8_t pab Digest[RTSHA256_HASH_SIZE]);220 * @param pabHash Where to store the hash. (What is passed is a pointer to 221 * the caller's buffer.) 222 */ 223 RTDECL(void) RTSha256Final(PRTSHA256CONTEXT pCtx, uint8_t pabHash[RTSHA256_HASH_SIZE]); 224 224 225 225 /** … … 228 228 * @returns IPRT status code. 229 229 * 230 * @param pab DigestThe binary digest returned by RTSha256Final or RTSha256.230 * @param pabHash The binary digest returned by RTSha256Final or RTSha256. 231 231 * @param pszDigest Where to return the stringified digest. 232 232 * @param cchDigest The size of the output buffer. Should be at least 233 233 * RTSHA256_DIGEST_LEN + 1 bytes. 234 234 */ 235 RTDECL(int) RTSha256ToString(uint8_t const pab Digest[RTSHA256_HASH_SIZE], char *pszDigest, size_t cchDigest);235 RTDECL(int) RTSha256ToString(uint8_t const pabHash[RTSHA256_HASH_SIZE], char *pszDigest, size_t cchDigest); 236 236 237 237 /** … … 242 242 * @param pszDigest The stringified digest. Leading and trailing spaces are 243 243 * ignored. 244 * @param pab DigestWhere to store the hash. (What is passed is a pointer to245 * the caller's buffer.) 246 */ 247 RTDECL(int) RTSha256FromString(char const *pszDigest, uint8_t pab Digest[RTSHA256_HASH_SIZE]);244 * @param pabHash Where to store the hash. (What is passed is a pointer to 245 * the caller's buffer.) 246 */ 247 RTDECL(int) RTSha256FromString(char const *pszDigest, uint8_t pabHash[RTSHA256_HASH_SIZE]); 248 248 249 249 /** … … 291 291 * @param pvBuf Pointer to the data. 292 292 * @param cbBuf The amount of data (in bytes). 293 * @param pab DigestWhere to store the hash. (What is passed is a pointer to294 * the caller's buffer.) 295 */ 296 RTDECL(void) RTSha224(const void *pvBuf, size_t cbBuf, uint8_t pab Digest[RTSHA224_HASH_SIZE]);293 * @param pabHash Where to store the hash. (What is passed is a pointer to 294 * the caller's buffer.) 295 */ 296 RTDECL(void) RTSha224(const void *pvBuf, size_t cbBuf, uint8_t pabHash[RTSHA224_HASH_SIZE]); 297 297 298 298 /** … … 305 305 * caller's buffer.) 306 306 */ 307 RTDECL(bool) RTSha224Check(const void *pvBuf, size_t cbBuf, uint8_t const pab Digest[RTSHA224_HASH_SIZE]);307 RTDECL(bool) RTSha224Check(const void *pvBuf, size_t cbBuf, uint8_t const pabHash[RTSHA224_HASH_SIZE]); 308 308 309 309 /** … … 327 327 * 328 328 * @param pCtx Pointer to the SHA-224 context. 329 * @param pab DigestWhere to store the hash. (What is passed is a pointer to330 * the caller's buffer.) 331 */ 332 RTDECL(void) RTSha224Final(PRTSHA224CONTEXT pCtx, uint8_t pab Digest[RTSHA224_HASH_SIZE]);329 * @param pabHash Where to store the hash. (What is passed is a pointer to 330 * the caller's buffer.) 331 */ 332 RTDECL(void) RTSha224Final(PRTSHA224CONTEXT pCtx, uint8_t pabHash[RTSHA224_HASH_SIZE]); 333 333 334 334 /** … … 337 337 * @returns IPRT status code. 338 338 * 339 * @param pab DigestThe binary digest returned by RTSha224Final or RTSha224.339 * @param pabHash The binary digest returned by RTSha224Final or RTSha224. 340 340 * @param pszDigest Where to return the stringified digest. 341 341 * @param cchDigest The size of the output buffer. Should be at least 342 342 * RTSHA224_DIGEST_LEN + 1 bytes. 343 343 */ 344 RTDECL(int) RTSha224ToString(uint8_t const pab Digest[RTSHA224_HASH_SIZE], char *pszDigest, size_t cchDigest);344 RTDECL(int) RTSha224ToString(uint8_t const pabHash[RTSHA224_HASH_SIZE], char *pszDigest, size_t cchDigest); 345 345 346 346 /** … … 351 351 * @param pszDigest The stringified digest. Leading and trailing spaces are 352 352 * ignored. 353 * @param pab DigestWhere to store the hash. (What is passed is a pointer to354 * the caller's buffer.) 355 */ 356 RTDECL(int) RTSha224FromString(char const *pszDigest, uint8_t pab Digest[RTSHA224_HASH_SIZE]);353 * @param pabHash Where to store the hash. (What is passed is a pointer to 354 * the caller's buffer.) 355 */ 356 RTDECL(int) RTSha224FromString(char const *pszDigest, uint8_t pabHash[RTSHA224_HASH_SIZE]); 357 357 358 358 /** … … 410 410 * @param pvBuf Pointer to the data. 411 411 * @param cbBuf The amount of data (in bytes). 412 * @param pab DigestWhere to store the hash. (What is passed is a pointer to413 * the caller's buffer.) 414 */ 415 RTDECL(void) RTSha512(const void *pvBuf, size_t cbBuf, uint8_t pab Digest[RTSHA512_HASH_SIZE]);412 * @param pabHash Where to store the hash. (What is passed is a pointer to 413 * the caller's buffer.) 414 */ 415 RTDECL(void) RTSha512(const void *pvBuf, size_t cbBuf, uint8_t pabHash[RTSHA512_HASH_SIZE]); 416 416 417 417 /** … … 424 424 * caller's buffer.) 425 425 */ 426 RTDECL(bool) RTSha512Check(const void *pvBuf, size_t cbBuf, uint8_t const pab Digest[RTSHA512_HASH_SIZE]);426 RTDECL(bool) RTSha512Check(const void *pvBuf, size_t cbBuf, uint8_t const pabHash[RTSHA512_HASH_SIZE]); 427 427 428 428 /** … … 446 446 * 447 447 * @param pCtx Pointer to the SHA-512 context. 448 * @param pab DigestWhere to store the hash. (What is passed is a pointer to449 * the caller's buffer.) 450 */ 451 RTDECL(void) RTSha512Final(PRTSHA512CONTEXT pCtx, uint8_t pab Digest[RTSHA512_HASH_SIZE]);448 * @param pabHash Where to store the hash. (What is passed is a pointer to 449 * the caller's buffer.) 450 */ 451 RTDECL(void) RTSha512Final(PRTSHA512CONTEXT pCtx, uint8_t pabHash[RTSHA512_HASH_SIZE]); 452 452 453 453 /** … … 456 456 * @returns IPRT status code. 457 457 * 458 * @param pab DigestThe binary digest returned by RTSha512Final or RTSha512.458 * @param pabHash The binary digest returned by RTSha512Final or RTSha512. 459 459 * @param pszDigest Where to return the stringified digest. 460 460 * @param cchDigest The size of the output buffer. Should be at least 461 461 * RTSHA512_DIGEST_LEN + 1 bytes. 462 462 */ 463 RTDECL(int) RTSha512ToString(uint8_t const pab Digest[RTSHA512_HASH_SIZE], char *pszDigest, size_t cchDigest);463 RTDECL(int) RTSha512ToString(uint8_t const pabHash[RTSHA512_HASH_SIZE], char *pszDigest, size_t cchDigest); 464 464 465 465 /** … … 470 470 * @param pszDigest The stringified digest. Leading and trailing spaces are 471 471 * ignored. 472 * @param pab DigestWhere to store the hash. (What is passed is a pointer to473 * the caller's buffer.) 474 */ 475 RTDECL(int) RTSha512FromString(char const *pszDigest, uint8_t pab Digest[RTSHA512_HASH_SIZE]);472 * @param pabHash Where to store the hash. (What is passed is a pointer to 473 * the caller's buffer.) 474 */ 475 RTDECL(int) RTSha512FromString(char const *pszDigest, uint8_t pabHash[RTSHA512_HASH_SIZE]); 476 476 477 477 … … 481 481 typedef RTSHA512CONTEXT RT_CONCAT3(RTSHA,a_UName,CONTEXT); \ 482 482 typedef RTSHA512CONTEXT *RT_CONCAT3(PRTSHA,a_UName,CONTEXT); \ 483 RTDECL(void) RT_CONCAT(RTSha,a_Name)(const void *pvBuf, size_t cbBuf, uint8_t pab Digest[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)]); \484 RTDECL(bool) RT_CONCAT3(RTSha,a_Name,Check)(const void *pvBuf, size_t cbBuf, uint8_t const pab Digest[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)]); \483 RTDECL(void) RT_CONCAT(RTSha,a_Name)(const void *pvBuf, size_t cbBuf, uint8_t pabHash[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)]); \ 484 RTDECL(bool) RT_CONCAT3(RTSha,a_Name,Check)(const void *pvBuf, size_t cbBuf, uint8_t const pabHash[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)]); \ 485 485 RTDECL(void) RT_CONCAT3(RTSha,a_Name,Init)(RT_CONCAT3(PRTSHA,a_UName,CONTEXT) pCtx); \ 486 486 RTDECL(void) RT_CONCAT3(RTSha,a_Name,Update)(RT_CONCAT3(PRTSHA,a_UName,CONTEXT) pCtx, const void *pvBuf, size_t cbBuf); \ 487 RTDECL(void) RT_CONCAT3(RTSha,a_Name,Final)(RT_CONCAT3(PRTSHA,a_UName,CONTEXT) pCtx, uint8_t pab Digest[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)]); \488 RTDECL(int) RT_CONCAT3(RTSha,a_Name,ToString)(uint8_t const pab Digest[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)], char *pszDigest, size_t cchDigest); \489 RTDECL(int) RT_CONCAT3(RTSha,a_Name,FromString)(char const *pszDigest, uint8_t pab Digest[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)])487 RTDECL(void) RT_CONCAT3(RTSha,a_Name,Final)(RT_CONCAT3(PRTSHA,a_UName,CONTEXT) pCtx, uint8_t pabHash[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)]); \ 488 RTDECL(int) RT_CONCAT3(RTSha,a_Name,ToString)(uint8_t const pabHash[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)], char *pszDigest, size_t cchDigest); \ 489 RTDECL(int) RT_CONCAT3(RTSha,a_Name,FromString)(char const *pszDigest, uint8_t pabHash[RT_CONCAT3(RTSHA,a_UName,_HASH_SIZE)]) 490 490 491 491 -
trunk/include/iprt/socket.h
r53615 r57926 228 228 * 229 229 * @returns iprt status code. 230 * @param Sock Socket descriptor. 231 * @param fEvents Event mask to wait for. 232 * @param pfEvents Where to store the event mask on return. 233 * @param cMillies Number of milliseconds to wait for the socket. 234 * Use RT_INDEFINITE_WAIT to wait for ever. 235 */ 236 RTR3DECL(int) RTSocketSelectOneEx(RTSOCKET Sock, uint32_t fEvents, uint32_t *pfEvents, 237 RTMSINTERVAL cMillies); 230 * @param hSocket The Socket handle. 231 * @param fEvents Event mask to wait for. 232 * @param pfEvents Where to store the event mask on return. 233 * @param cMillies Number of milliseconds to wait for the socket. Use 234 * RT_INDEFINITE_WAIT to wait for ever. 235 */ 236 RTR3DECL(int) RTSocketSelectOneEx(RTSOCKET hSocket, uint32_t fEvents, uint32_t *pfEvents, RTMSINTERVAL cMillies); 238 237 239 238 /** … … 241 240 * 242 241 * @returns IPRT status code. 243 * @param hSocket 244 * @param fRead 245 * @param fWrite 242 * @param hSocket The socket handle. 243 * @param fRead Whether to shutdown our read direction. 244 * @param fWrite Whether to shutdown our write direction. 246 245 */ 247 246 RTDECL(int) RTSocketShutdown(RTSOCKET hSocket, bool fRead, bool fWrite); … … 251 250 * 252 251 * @returns IPRT status code. 253 * @param Sock Socket descriptor.252 * @param hSocket The Socket handle. 254 253 * @param pAddr Where to store the local address on success. 255 254 */ … … 260 259 * 261 260 * @returns IPRT status code. 262 * @param Sock Socket descriptor.261 * @param hSocket The Socket handle. 263 262 * @param pAddr Where to store the peer address on success. 264 263 */ … … 349 348 * @returns iprt status code. 350 349 * 351 * @param Sock Socket descriptor.350 * @param hSocket The Socket handle. 352 351 * @param pSgBuf Scatter/gather buffer to write data to socket. 353 352 * @param pcbWritten Number of bytes written. 354 353 */ 355 RTR3DECL(int) RTSocketSgWriteNB(RTSOCKET Sock, PCRTSGBUF pSgBuf, size_t *pcbWritten);354 RTR3DECL(int) RTSocketSgWriteNB(RTSOCKET hSocket, PCRTSGBUF pSgBuf, size_t *pcbWritten); 356 355 357 356 -
trunk/include/iprt/string.h
r57722 r57926 183 183 * this as pointer to a volatile but read-only string. 184 184 */ 185 #if ndef RTSTR_TAG185 #if !defined(RTSTR_TAG) || defined(DOXYGEN_RUNNING) 186 186 # define RTSTR_TAG (__FILE__) 187 187 #endif … … 729 729 * may be partially processed. 730 730 * @param psz The string to sanitise. 731 * @param puszValidSet sA zero-terminated array of pairs of Unicode points.731 * @param puszValidSet A zero-terminated array of pairs of Unicode points. 732 732 * Each pair is the start and end point of a range, 733 733 * and the union of these ranges forms the white list. … … 929 929 * This is undefined on failure. 930 930 */ 931 RTDECL(int) RTStrCalcLatin1LenEx(const char *psz, size_t cch, size_t *pc wc);931 RTDECL(int) RTStrCalcLatin1LenEx(const char *psz, size_t cch, size_t *pcch); 932 932 933 933 /** … … 1460 1460 * @param psz Pointer to the current code point. 1461 1461 */ 1462 DECLINLINE(char *) RTLatin1PrevCp(const char *psz )1462 DECLINLINE(char *) RTLatin1PrevCp(const char *pszStart const char *psz) 1463 1463 { 1464 psz--; 1465 return (char *)psz; 1464 if ((uintptr_t)psz > (uintptr_t)pszStart) 1465 { 1466 psz--; 1467 return (char *)psz; 1468 } 1469 return (char *)pszStart; 1466 1470 } 1467 1471 … … 3480 3484 * terminated. 3481 3485 * 3482 * @param p szDstThe destination buffer.3486 * @param pwszDst The destination buffer. 3483 3487 * @param cwcDst The size of the destination buffer in RTUTF16s. 3484 3488 * @param pwszSrc The source string. NULL is not OK. … … 3494 3498 * terminated. 3495 3499 * 3496 * @param p szDstThe destination buffer.3500 * @param pwszDst The destination buffer. 3497 3501 * @param cwcDst The size of the destination buffer in RTUTF16s. 3498 3502 * @param pszSrc The source string, pure ASCII. NULL is not OK. 3499 3503 */ 3500 RTDECL(int) RTUtf16CatAscii(PRTUTF16 pwszDst, size_t cwcDst, const char *p wszSrc);3504 RTDECL(int) RTUtf16CatAscii(PRTUTF16 pwszDst, size_t cwcDst, const char *pszSrc); 3501 3505 3502 3506 /** … … 3650 3654 * may be partially processed. 3651 3655 * @param pwsz The string to sanitise. 3652 * @param puszValidSet sA zero-terminated array of pairs of Unicode points.3656 * @param puszValidSet A zero-terminated array of pairs of Unicode points. 3653 3657 * Each pair is the start and end point of a range, 3654 3658 * and the union of these ranges forms the white list. -
trunk/src/VBox/Runtime/Doxyfile
r36507 r57926 205 205 \ 206 206 Implements the callback \link \1 \1 " 207 208 # bugref - xTracker bug reference, takes one to four bug numbers. 209 ALIASES += bugref{1}="https://xtracker.innotek.de/index.php?bug=\1" 210 ALIASES += bugref{2}="https://xtracker.innotek.de/index.php?bug=\1, \ 211 https://xtracker.innotek.de/index.php?bug=\2" 212 ALIASES += bugref{3}="https://xtracker.innotek.de/index.php?bug=\1, \ 213 https://xtracker.innotek.de/index.php?bug=\2, \ 214 https://xtracker.innotek.de/index.php?bug=\3" 215 ALIASES += bugref{4}="https://xtracker.innotek.de/index.php?bug=\1, \ 216 https://xtracker.innotek.de/index.php?bug=\2, \ 217 https://xtracker.innotek.de/index.php?bug=\3, \ 218 https://xtracker.innotek.de/index.php?bug=\4" 219 220 # ticketref - Track ticket reference, takes one to four ticket numbers. 221 ALIASES += ticketref{1}="http://www.virtualbox.org/ticket/\1" 222 ALIASES += ticketref{2}="http://www.virtualbox.org/ticket/\1, \ 223 http://www.virtualbox.org/ticket/\2" 224 ALIASES += ticketref{3}="http://www.virtualbox.org/ticket/\1, \ 225 http://www.virtualbox.org/ticket/\2, \ 226 http://www.virtualbox.org/ticket/\3" 227 ALIASES += ticketref{4}="http://www.virtualbox.org/ticket/\1, \ 228 http://www.virtualbox.org/ticket/\2, \ 229 http://www.virtualbox.org/ticket/\3, \ 230 http://www.virtualbox.org/ticket/\4" 231 207 232 208 233 # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C … … 1194 1219 "DECLINLINE(type)=inline type" \ 1195 1220 DECL_FORCE_INLINE(type)=DECLINLINE(type) \ 1221 DECL_NO_INLINE(type)=type \ 1196 1222 \ 1197 1223 AssertCompile(expr) \ … … 1203 1229 AssertCompile2MemberOffsets(a,b,c) \ 1204 1230 \ 1231 RT_SRC_POS=1 \ 1232 RT_SRC_POS_ARGS=SRC_POS \ 1233 "RT_SRC_POS_DECL=int SRC_POS" \ 1234 \ 1235 RT_IPRT_FORMAT_ATTR(a,b)= \ 1236 RT_IPRT_FORMAT_ATTR_MAYBE_NULL(a,b)= \ 1237 RT_NO_THROW_PROTO= 1205 1238 1206 1239 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then … … 1245 1278 CTXMID \ 1246 1279 OTHERCTXMID \ 1247 \1248 RT_SRC_POS \1249 RT_SRC_POS_ARGS \1250 RT_SRC_POS_DECL1251 1280 1252 1281 -
trunk/src/VBox/Runtime/common/asn1/asn1-basics.cpp
r57358 r57926 334 334 */ 335 335 336 RTDECL(void) RTAsn1VtDelete(PRTASN1CORE p Asn1Core)337 { 338 if (p Asn1Core)339 { 340 PCRTASN1COREVTABLE pOps = p Asn1Core->pOps;336 RTDECL(void) RTAsn1VtDelete(PRTASN1CORE pThisCore) 337 { 338 if (pThisCore) 339 { 340 PCRTASN1COREVTABLE pOps = pThisCore->pOps; 341 341 if (pOps) 342 pOps->pfnDtor(p Asn1Core);342 pOps->pfnDtor(pThisCore); 343 343 } 344 344 } … … 355 355 356 356 357 static DECLCALLBACK(int) rtAsn1VtDeepEnumDepthFirst(PRTASN1CORE p Asn1Core, const char *pszName, uint32_t uDepth, void *pvUser)358 { 359 AssertReturn(p Asn1Core, VINF_SUCCESS);360 361 if (p Asn1Core->pOps && pAsn1Core->pOps->pfnEnum)362 { 363 int rc = p Asn1Core->pOps->pfnEnum(pAsn1Core, rtAsn1VtDeepEnumDepthFirst, uDepth, pvUser);357 static DECLCALLBACK(int) rtAsn1VtDeepEnumDepthFirst(PRTASN1CORE pThisCore, const char *pszName, uint32_t uDepth, void *pvUser) 358 { 359 AssertReturn(pThisCore, VINF_SUCCESS); 360 361 if (pThisCore->pOps && pThisCore->pOps->pfnEnum) 362 { 363 int rc = pThisCore->pOps->pfnEnum(pThisCore, rtAsn1VtDeepEnumDepthFirst, uDepth, pvUser); 364 364 if (rc != VINF_SUCCESS) 365 365 return rc; … … 367 367 368 368 RTASN1DEEPENUMCTX *pCtx = (RTASN1DEEPENUMCTX *)pvUser; 369 return pCtx->pfnCallback(p Asn1Core, pszName, uDepth, pCtx->pvUser);370 } 371 372 373 static DECLCALLBACK(int) rtAsn1VtDeepEnumDepthLast(PRTASN1CORE p Asn1Core, const char *pszName, uint32_t uDepth, void *pvUser)374 { 375 AssertReturn(p Asn1Core, VINF_SUCCESS);369 return pCtx->pfnCallback(pThisCore, pszName, uDepth, pCtx->pvUser); 370 } 371 372 373 static DECLCALLBACK(int) rtAsn1VtDeepEnumDepthLast(PRTASN1CORE pThisCore, const char *pszName, uint32_t uDepth, void *pvUser) 374 { 375 AssertReturn(pThisCore, VINF_SUCCESS); 376 376 377 377 RTASN1DEEPENUMCTX *pCtx = (RTASN1DEEPENUMCTX *)pvUser; 378 int rc = pCtx->pfnCallback(p Asn1Core, pszName, uDepth, pCtx->pvUser);378 int rc = pCtx->pfnCallback(pThisCore, pszName, uDepth, pCtx->pvUser); 379 379 if (rc == VINF_SUCCESS) 380 380 { 381 if (p Asn1Core->pOps && pAsn1Core->pOps->pfnEnum)382 rc = p Asn1Core->pOps->pfnEnum(pAsn1Core, rtAsn1VtDeepEnumDepthFirst, uDepth, pvUser);381 if (pThisCore->pOps && pThisCore->pOps->pfnEnum) 382 rc = pThisCore->pOps->pfnEnum(pThisCore, rtAsn1VtDeepEnumDepthFirst, uDepth, pvUser); 383 383 } 384 384 return rc; -
trunk/src/VBox/Runtime/common/checksum/manifest2.cpp
r57358 r57926 135 135 const char * const *papszIgnoreEntries; 136 136 /** Name of attributes to ignore. */ 137 const char * const *papszIgnoreAttr ;137 const char * const *papszIgnoreAttrs; 138 138 /** Flags governing the comparision. */ 139 139 uint32_t fFlags; … … 350 350 * Ignore this entry? 351 351 */ 352 char const * const *ppsz = pEquals->papszIgnoreAttr ;352 char const * const *ppsz = pEquals->papszIgnoreAttrs; 353 353 if (ppsz) 354 354 { … … 425 425 * Ignore this entry? 426 426 */ 427 char const * const *ppsz = pEquals->papszIgnoreAttr ;427 char const * const *ppsz = pEquals->papszIgnoreAttrs; 428 428 if (ppsz) 429 429 { … … 571 571 572 572 RTDECL(int) RTManifestEqualsEx(RTMANIFEST hManifest1, RTMANIFEST hManifest2, const char * const *papszIgnoreEntries, 573 const char * const *papszIgnoreAttr , uint32_t fFlags, char *pszError, size_t cbError)573 const char * const *papszIgnoreAttrs, uint32_t fFlags, char *pszError, size_t cbError) 574 574 { 575 575 /* … … 614 614 Equals.fFlags = fFlags; 615 615 Equals.papszIgnoreEntries = papszIgnoreEntries; 616 Equals.papszIgnoreAttr = papszIgnoreAttr;616 Equals.papszIgnoreAttrs = papszIgnoreAttrs; 617 617 Equals.pszError = pszError; 618 618 Equals.cbError = cbError; -
trunk/src/VBox/Runtime/common/err/RTErrConvertFromErrno.cpp
r57358 r57926 120 120 #endif 121 121 #ifdef ENFILE 122 case ENFILE: return VERR_TOO_MANY_OPEN_FILES; /** @Todo fix duplicate error */122 case ENFILE: return VERR_TOO_MANY_OPEN_FILES; /** @todo fix duplicate error */ 123 123 #endif 124 124 #ifdef EMFILE -
trunk/src/VBox/Runtime/common/err/errmsg.cpp
r57358 r57926 46 46 static const RTSTATUSMSG g_aStatusMsgs[] = 47 47 { 48 #if ndef IPRT_NO_ERROR_DATA48 #if !defined(IPRT_NO_ERROR_DATA) && !defined(DOXYGEN_RUNNING) 49 49 # include "errmsgdata.h" 50 50 #else -
trunk/src/VBox/Runtime/common/err/errmsgxpcom.cpp
r57358 r57926 107 107 MY_ERR("NS_SUCCESS_FILE_DIRECTORY_EMPTY", "NS_SUCCESS_FILE_DIRECTORY_EMPTY", UINT32_C(0x00520001)), 108 108 109 #if defined(VBOX) && !defined(IN_GUEST) 109 #if defined(VBOX) && !defined(IN_GUEST) && !defined(DOXYGEN_RUNNING) 110 110 # include "errmsgvboxcomdata.h" 111 111 #endif -
trunk/src/VBox/Runtime/r0drv/solaris/semeventwait-r0drv-solaris.h
r56290 r57926 101 101 * @param fFlags The wait flags. 102 102 * @param uTimeout The timeout. 103 * @param pWaitQueue The wait queue head.104 103 */ 105 104 DECLINLINE(int) rtR0SemSolWaitInit(PRTR0SEMSOLWAIT pWait, uint32_t fFlags, uint64_t uTimeout) -
trunk/src/VBox/Runtime/r3/init.cpp
r57358 r57926 369 369 * rtR3Init worker. 370 370 */ 371 static int rtR3InitBody(uint32_t fFlags, int cArgs, char ***p apszArgs, const char *pszProgramPath)371 static int rtR3InitBody(uint32_t fFlags, int cArgs, char ***ppapszArgs, const char *pszProgramPath) 372 372 { 373 373 /* … … 448 448 AssertLogRelMsgRCReturn(rc, ("Failed to get executable directory path, rc=%Rrc!\n", rc), rc); 449 449 450 rc = rtR3InitArgv(fFlags, cArgs, p apszArgs);450 rc = rtR3InitArgv(fFlags, cArgs, ppapszArgs); 451 451 AssertLogRelMsgRCReturn(rc, ("Failed to convert the arguments, rc=%Rrc!\n", rc), rc); 452 452 … … 550 550 * out ourselves. 551 551 */ 552 static int rtR3Init(uint32_t fFlags, int cArgs, char ***p apszArgs, const char *pszProgramPath)552 static int rtR3Init(uint32_t fFlags, int cArgs, char ***ppapszArgs, const char *pszProgramPath) 553 553 { 554 554 /* no entry log flow, because prefixes and thread may freak out. */ … … 590 590 rc = rtR3InitProgramPath(pszProgramPath); 591 591 if (RT_SUCCESS(rc)) 592 rc = rtR3InitArgv(fFlags, cArgs, p apszArgs);592 rc = rtR3InitArgv(fFlags, cArgs, ppapszArgs); 593 593 return rc; 594 594 } … … 598 598 * Do the initialization. 599 599 */ 600 int rc = rtR3InitBody(fFlags, cArgs, p apszArgs, pszProgramPath);600 int rc = rtR3InitBody(fFlags, cArgs, ppapszArgs, pszProgramPath); 601 601 if (RT_FAILURE(rc)) 602 602 { … … 614 614 615 615 616 RTR3DECL(int) RTR3InitExe(int cArgs, char ***p apszArgs, uint32_t fFlags)616 RTR3DECL(int) RTR3InitExe(int cArgs, char ***ppapszArgs, uint32_t fFlags) 617 617 { 618 618 Assert(!(fFlags & RTR3INIT_FLAGS_DLL)); 619 return rtR3Init(fFlags, cArgs, p apszArgs, NULL);619 return rtR3Init(fFlags, cArgs, ppapszArgs, NULL); 620 620 } 621 621 … … 635 635 636 636 637 RTR3DECL(int) RTR3InitEx(uint32_t iVersion, uint32_t fFlags, int cArgs, char ***p apszArgs, const char *pszProgramPath)637 RTR3DECL(int) RTR3InitEx(uint32_t iVersion, uint32_t fFlags, int cArgs, char ***ppapszArgs, const char *pszProgramPath) 638 638 { 639 639 AssertReturn(iVersion == RTR3INIT_VER_CUR, VERR_NOT_SUPPORTED); 640 return rtR3Init(fFlags, cArgs, p apszArgs, pszProgramPath);640 return rtR3Init(fFlags, cArgs, ppapszArgs, pszProgramPath); 641 641 } 642 642 -
trunk/src/VBox/Runtime/r3/isofs.cpp
r57358 r57926 525 525 526 526 527 RTR3DECL(int) RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath, 528 uint32_t *pcbOffset, size_t *pcbLength) 527 RTR3DECL(int) RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath, uint32_t *poffInIso, size_t *pcbLength) 529 528 { 530 529 AssertPtrReturn(pFile, VERR_INVALID_PARAMETER); 531 530 AssertPtrReturn(pszPath, VERR_INVALID_PARAMETER); 532 AssertPtrReturn(p cbOffset, VERR_INVALID_PARAMETER);531 AssertPtrReturn(poffInIso, VERR_INVALID_PARAMETER); 533 532 534 533 PRTISOFSDIRRECORD pDirRecord; … … 545 544 if (RT_SUCCESS(rc)) 546 545 { 547 *p cbOffset= pFileRecord->extent_location * RTISOFS_SECTOR_SIZE;546 *poffInIso = pFileRecord->extent_location * RTISOFS_SECTOR_SIZE; 548 547 *pcbLength = pFileRecord->extent_data_length; 549 548 rtIsoFsFreeDirectoryRecord(pFileRecord); … … 555 554 556 555 557 RTR3DECL(int) RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszSource, 558 const char *pszDest) 559 { 560 AssertPtrReturn(pFile, VERR_INVALID_PARAMETER); 561 AssertPtrReturn(pszSource, VERR_INVALID_PARAMETER); 562 AssertPtrReturn(pszDest, VERR_INVALID_PARAMETER); 556 RTR3DECL(int) RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszSrcPath, const char *pszDstPath) 557 { 558 AssertPtrReturn(pFile, VERR_INVALID_PARAMETER); 559 AssertPtrReturn(pszSrcPath, VERR_INVALID_PARAMETER); 560 AssertPtrReturn(pszDstPath, VERR_INVALID_PARAMETER); 563 561 564 562 uint32_t cbOffset; 565 563 size_t cbLength; 566 int rc = RTIsoFsGetFileInfo(pFile, pszS ource, &cbOffset, &cbLength);564 int rc = RTIsoFsGetFileInfo(pFile, pszSrcPath, &cbOffset, &cbLength); 567 565 if (RT_SUCCESS(rc)) 568 566 { … … 571 569 { 572 570 RTFILE fileDest; 573 rc = RTFileOpen(&fileDest, pszD est, RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_DENY_WRITE);571 rc = RTFileOpen(&fileDest, pszDstPath, RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_DENY_WRITE); 574 572 if (RT_SUCCESS(rc)) 575 573 { -
trunk/src/VBox/Runtime/r3/nt/internal-r3-nt.h
r56290 r57926 49 49 * @returns @c true if equal, @c false if not. 50 50 * @param pwsz1 The first string. 51 * @param c b1The length of the first string, in bytes.51 * @param cch1 The length of the first string, in bytes. 52 52 * @param psz2 The second string. 53 53 * @param cch2 The length of the second string. -
trunk/src/VBox/Runtime/win/errmsgwin.cpp
r57358 r57926 45 45 static const RTWINERRMSG g_aStatusMsgs[] = 46 46 { 47 #if ndef IPRT_NO_ERROR_DATA47 #if !defined(IPRT_NO_ERROR_DATA) && !defined(DOXYGEN_RUNNING) 48 48 # include "errmsgcomdata.h" 49 49 # if defined(VBOX) && !defined(IN_GUEST)
Note:
See TracChangeset
for help on using the changeset viewer.