Changeset 33540 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Oct 28, 2010 9:27:05 AM (14 years ago)
- Location:
- trunk/src/VBox/Runtime/common/misc
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/cidr.cpp
r29845 r33540 64 64 if ( RT_FAILURE(rc) 65 65 || cBits > 32 66 || rc != VINF_SUCCESS) /* No trailing symbols are acc ptable after the digit */66 || rc != VINF_SUCCESS) /* No trailing symbols are acceptable after the digit */ 67 67 return VERR_INVALID_PARAMETER; 68 68 } -
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r28800 r33540 699 699 /* 700 700 * Not a known option argument. If it starts with a switch char (-) we'll 701 * fail with unk own option, and if it doesn't we'll return it as a non-option.701 * fail with unknown option, and if it doesn't we'll return it as a non-option. 702 702 */ 703 703 if (*pszArgThis == '-') -
trunk/src/VBox/Runtime/common/misc/getoptargv.cpp
r28800 r33540 45 45 * 46 46 * We include some extra stuff here that the corresponding shell would normally 47 * require q outing of.47 * require quoting of. 48 48 */ 49 49 static uint8_t const g_abmQuoteChars[RTGETOPTARGV_CNV_QUOTE_MASK + 1][128/8] = -
trunk/src/VBox/Runtime/common/misc/handle.cpp
r28800 r33540 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - Generic Handle Manip luation.3 * IPRT - Generic Handle Manipulation. 4 4 */ 5 5 -
trunk/src/VBox/Runtime/common/misc/handletable.cpp
r28800 r33540 132 132 133 133 /* 134 * Validate input, qui tely ignore the NIL handle.134 * Validate input, quietly ignore the NIL handle. 135 135 */ 136 136 if (hHandleTable == NIL_RTHANDLETABLE) -
trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp
r33269 r33540 128 128 RTLOCKVALDDENTRY a[32]; 129 129 } RTLOCKVALDDSTACK; 130 /** Pointer to a deadlock det ction stack. */130 /** Pointer to a deadlock detection stack. */ 131 131 typedef RTLOCKVALDDSTACK *PRTLOCKVALDDSTACK; 132 132 … … 159 159 { 160 160 /** Array of refs. */ 161 #if 0 /** @todo for testing alloc tion of new chunks. */161 #if 0 /** @todo for testing allocation of new chunks. */ 162 162 RTLOCKVALCLASSREF aRefs[ARCH_BITS == 32 ? 10 : 8]; 163 163 #else … … 1407 1407 * @param pClass The class to work on. 1408 1408 * @param pPriorClass The class to add. 1409 * @param fAutodidacticism Whether we're teaching oursel fs (true) or1409 * @param fAutodidacticism Whether we're teaching ourselves (true) or 1410 1410 * somebody is teaching us via the API (false). 1411 1411 * @param pSrcPos Where this rule was added (optional). … … 1872 1872 * 1873 1873 * @returns true / false. 1874 * @param pThreadSelf The curren thread.1874 * @param pThreadSelf The current thread. 1875 1875 * @param pRec The lock record. 1876 1876 */ … … 2014 2014 * @param pThreadSelf The current thread. 2015 2015 * @param pRec The lock record. 2016 * @param pSrcPos Where the recursion occur ed.2016 * @param pSrcPos Where the recursion occurred. 2017 2017 */ 2018 2018 static void rtLockValidatorStackPushRecursion(PRTTHREADINT pThreadSelf, PRTLOCKVALRECUNION pRec, PCRTLOCKVALSRCPOS pSrcPos) -
trunk/src/VBox/Runtime/common/misc/req.cpp
r30111 r33540 50 50 51 51 /** 52 * Create a request packet queue u52 * Create a request packet queue 53 53 * 54 54 * @returns iprt status code. … … 74 74 75 75 /** 76 * Destroy a request packet queue u76 * Destroy a request packet queue 77 77 * 78 78 * @returns iprt status code. … … 120 120 * Process loop. 121 121 * 122 * We do not repeat the outer loop if we've got an information tional status code122 * We do not repeat the outer loop if we've got an informational status code 123 123 * since that code needs processing by our caller. 124 124 */ … … 187 187 * 188 188 * If it's desired to poll on the completion of the request set cMillies 189 * to 0 and use RTReqWait() to check for complet ation. In the other case189 * to 0 and use RTReqWait() to check for completion. In the other case 190 190 * use RT_INDEFINITE_WAIT. 191 191 * The returned request packet must be freed using RTReqFree(). … … 222 222 * 223 223 * If it's desired to poll on the completion of the request set cMillies 224 * to 0 and use RTReqWait() to check for complet ation. In the other case224 * to 0 and use RTReqWait() to check for completion. In the other case 225 225 * use RT_INDEFINITE_WAIT. 226 226 * The returned request packet must be freed using RTReqFree(). … … 232 232 * @param pQueue The request queue. 233 233 * @param ppReq Where to store the pointer to the request. 234 * This will be NULL or a valid request pointer not matter what happen ds.234 * This will be NULL or a valid request pointer not matter what happens. 235 235 * @param cMillies Number of milliseconds to wait for the request to 236 236 * be completed. Use RT_INDEFINITE_WAIT to only … … 257 257 * 258 258 * If it's desired to poll on the completion of the request set cMillies 259 * to 0 and use RTReqWait() to check for complet ation. In the other case259 * to 0 and use RTReqWait() to check for completion. In the other case 260 260 * use RT_INDEFINITE_WAIT. 261 261 * The returned request packet must be freed using RTReqFree(). … … 267 267 * @param pQueue The request queue. 268 268 * @param ppReq Where to store the pointer to the request. 269 * This will be NULL or a valid request pointer not matter what happen ds, unless fFlags269 * This will be NULL or a valid request pointer not matter what happens, unless fFlags 270 270 * contains RTREQFLAGS_NO_WAIT when it will be optional and always NULL. 271 271 * @param cMillies Number of milliseconds to wait for the request to … … 294 294 * 295 295 * If it's desired to poll on the completion of the request set cMillies 296 * to 0 and use RTReqWait() to check for complet ation. In the other case296 * to 0 and use RTReqWait() to check for completion. In the other case 297 297 * use RT_INDEFINITE_WAIT. 298 298 * The returned request packet must be freed using RTReqFree(). … … 304 304 * @param pQueue The request queue. 305 305 * @param ppReq Where to store the pointer to the request. 306 * This will be NULL or a valid request pointer not matter what happen ds, unless fFlags306 * This will be NULL or a valid request pointer not matter what happens, unless fFlags 307 307 * contains RTREQFLAGS_NO_WAIT when it will be optional and always NULL. 308 308 * @param cMillies Number of milliseconds to wait for the request to … … 639 639 * The quest must be allocated using RTReqAlloc() and contain 640 640 * all the required data. 641 * If it's d isired to poll on the completion of the request set cMillies642 * to 0 and use RTReqWait() to check for complet ation. In the other case641 * If it's desired to poll on the completion of the request set cMillies 642 * to 0 and use RTReqWait() to check for completion. In the other case 643 643 * use RT_INDEFINITE_WAIT. 644 644 * -
trunk/src/VBox/Runtime/common/misc/s3.cpp
r28800 r33540 768 768 769 769 RTS3TMPMEMCHUNK chunk = { NULL, 0 }; 770 /* Set the callback which rec ieve the content */770 /* Set the callback which receive the content */ 771 771 curl_easy_setopt(pS3Int->pCurl, CURLOPT_WRITEFUNCTION, rtS3WriteMemoryCallback); 772 772 curl_easy_setopt(pS3Int->pCurl, CURLOPT_WRITEDATA, (void *)&chunk); … … 795 795 } 796 796 } 797 /* Free the tempor y memory */797 /* Free the temporary memory */ 798 798 RTMemFree(chunk.pszMem); 799 799 -
trunk/src/VBox/Runtime/common/misc/tar.cpp
r33484 r33540 541 541 if (RT_FAILURE(rc)) 542 542 break; 543 /* Seek back, to position atethe file pointer at the start of the header. */543 /* Seek back, to position the file pointer at the start of the header. */ 544 544 rc = RTFileSeek(hFile, -(int64_t)sizeof(RTTARRECORD), RTFILE_SEEK_CURRENT, puOffset); 545 545 fFound = true; … … 1126 1126 1127 1127 /* This is done by internal methods, cause we didn't have a RTTARDIR 1128 * interface, yet. This should be fixed someday s. */1128 * interface, yet. This should be fixed someday. */ 1129 1129 1130 1130 PRTTARINTERNAL pInt = hTar; -
trunk/src/VBox/Runtime/common/misc/term.cpp
r28800 r33540 203 203 204 204 /* 205 * Run the callback list. This is a bit paranoid in order to guard ag inst205 * Run the callback list. This is a bit paranoid in order to guard against 206 206 * recursive calls to RTTermRunCallbacks. 207 207 */ -
trunk/src/VBox/Runtime/common/misc/zip.cpp
r31847 r33540 151 151 struct 152 152 { 153 /** Current buffer pos tition. (where to start write) */153 /** Current buffer position. (where to start write) */ 154 154 uint8_t *pb; 155 155 } Store; … … 167 167 struct 168 168 { 169 /** Current output buffer pos tition. */169 /** Current output buffer position. */ 170 170 uint8_t *pbOutput; 171 171 /** The input buffer position. */ … … 214 214 struct 215 215 { 216 /** Current buffer pos tition. (where to start read) */216 /** Current buffer position. (where to start read) */ 217 217 uint8_t *pb; 218 218 /** Number of bytes left in the buffer. */ … … 233 233 { 234 234 # ifndef RTZIP_LZF_BLOCK_BY_BLOCK 235 /** Current input buffer pos tition. */235 /** Current input buffer position. */ 236 236 uint8_t *pbInput; 237 237 /** The number of bytes left in the input buffer. */ … … 424 424 static int zipErrConvertFromZlib(int rc) 425 425 { 426 /** @todo proper zlib error conver tion. */426 /** @todo proper zlib error conversion. */ 427 427 switch (rc) 428 428 { … … 644 644 static int zipErrConvertFromBZlib(int rc) 645 645 { 646 /** @todo proper bzlib error conver tion. */646 /** @todo proper bzlib error conversion. */ 647 647 switch (rc) 648 648 { … … 940 940 941 941 /* 942 * Up ate the header and advance the input buffer.942 * Update the header and advance the input buffer. 943 943 */ 944 944 pHdr->cbData = cbOutput; … … 1297 1297 1298 1298 /** 1299 * Init alize the decompressor instance.1299 * Initialize the decompressor instance. 1300 1300 * @returns iprt status code. 1301 1301 * @param pZip The decompressor instance. … … 1347 1347 1348 1348 /* 1349 * Determin auto type.1349 * Determine auto type. 1350 1350 */ 1351 1351 if (enmType == RTZIPTYPE_AUTO) … … 1540 1540 { 1541 1541 /* 1542 * Read the first byte from the stream so we can determin the type.1542 * Read the first byte from the stream so we can determine the type. 1543 1543 */ 1544 1544 uint8_t u8Type; … … 1548 1548 1549 1549 /* 1550 * Determin type and do type specific init.1550 * Determine type and do type specific init. 1551 1551 */ 1552 1552 pZip->enmType = (RTZIPTYPE)u8Type;
Note:
See TracChangeset
for help on using the changeset viewer.