Searched refs:btcb (Results 1 - 8 of 8) sorted by relevance
/darwin-on-arm/xnu/bsd/hfs/hfscommon/BTree/ |
H A D | BTreeScanner.c | 88 err = GetRecordByIndex( scanState->btcb, scanState->currentNodePtr, 108 if ( scanState->recordsFound >= scanState->btcb->leafRecords ) 179 if ( scanState->nodeNum >= scanState->btcb->totalNodes ) 189 + scanState->btcb->nodeSize); 196 block.blockSize = scanState->btcb->nodeSize; 200 fref = scanState->btcb->fileRefNum; 254 myBTreeCBPtr = theScanStatePtr->btcb; 285 theScanStatePtr->nodesLeftInBuffer = buf_count(theScanStatePtr->bufferPtr) / theScanStatePtr->btcb->nodeSize; 338 BTreeControlBlock *btcb; local 343 btcb [all...] |
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/ |
H A D | BTreeWrapper.c | 36 static OSErr CheckBTreeKey(const BTreeKey *key, const BTreeControlBlock *btcb); 37 static Boolean ValidHFSRecord(const void *record, const BTreeControlBlock *btcb, u_int16_t recordSize); 45 BTreeControlBlock *btcb; local 55 btcb = (BTreeControlBlock*) fcb->fcbBTCBPtr; 63 result = CheckBTreeKey((const BTreeKey *) key, btcb); 68 BlockMoveData(key, &iterator->key, CalcKeySize(btcb, (const BTreeKey *) key)); //�� should we range check against maxkeylen? 70 if ( DEBUG_BUILD && !ValidHFSRecord(newData, btcb, dataSize) ) 85 static OSErr CheckBTreeKey(const BTreeKey *key, const BTreeControlBlock *btcb) argument 89 if ( btcb->attributes & kBTBigKeysMask ) 94 if ( (keyLen < 6) || (keyLen > btcb 105 ValidHFSRecord(const void *record, const BTreeControlBlock *btcb, u_int16_t recordSize) argument [all...] |
/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs_btreeio.c | 621 BTreeControlBlockPtr btcb = NULL; local 685 MALLOC(btcb, BTreeControlBlock *, sizeof(BTreeControlBlock), M_TEMP, M_WAITOK); 686 bzero(btcb, sizeof(BTreeControlBlock)); 688 btcb->nodeSize = nodesize; 689 btcb->maxKeyLength = kHFSPlusAttrKeyMaximumLength; 690 btcb->btreeType = 0xFF; 691 btcb->attributes = kBTVariableIndexKeysMask | kBTBigKeysMask; 692 btcb->version = kBTreeVersion; 693 btcb->writeCount = 1; 694 btcb [all...] |
H A D | hfs_endian.c | 93 BTreeControlBlockPtr btcb = (BTreeControlBlockPtr)VTOF(vp)->fcbBTCBPtr; local 124 if (btcb->totalNodes != 0) { 125 if (srcDesc->fLink >= btcb->totalNodes) { 126 printf("hfs_swap_BTNode: invalid forward link (0x%08x >= 0x%08x)\n", srcDesc->fLink, btcb->totalNodes); 130 if (srcDesc->bLink >= btcb->totalNodes) { 131 printf("hfs_swap_BTNode: invalid backward link (0x%08x >= 0x%08x)\n", srcDesc->bLink, btcb->totalNodes); 278 if (srcDesc->fLink >= btcb->totalNodes) { 290 if (srcDesc->bLink >= btcb->totalNodes) {
|
H A D | hfs_search.c | 336 && myCatPositionPtr->writeCount != myBTScanState.btcb->writeCount) { 337 myCatPositionPtr->writeCount = myBTScanState.btcb->writeCount; 407 myCatPositionPtr->writeCount = myBTScanState.btcb->writeCount;
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/headers/ |
H A D | BTreeScanner.h | 87 BTreeControlBlock * btcb; member in struct:BTScanState
|
H A D | BTreesPrivate.h | 235 u_int32_t CalcKeySize(const BTreeControlBlock *btcb, const BTreeKey *key); 236 #define CalcKeySize(btcb, key) ( ((btcb)->attributes & kBTBigKeysMask) ? ((key)->length16 + 2) : ((key)->length8 + 1) ) 238 u_int32_t KeyLength(const BTreeControlBlock *btcb, const BTreeKey *key); 239 #define KeyLength(btcb, key) ( ((btcb)->attributes & kBTBigKeysMask) ? (key)->length16 : (key)->length8 )
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Catalog/ |
H A D | CatalogUtilities.c | 141 BTreeControlBlock *btcb; local 152 btcb = (BTreeControlBlock *)fcb->fcbBTCBPtr; 163 BlockMoveData(&searchIterator->key, keyPtr, CalcKeySize(btcb, &searchIterator->key));
|
Completed in 96 milliseconds