Lines Matching defs:rec
1384 * (using thread rec).
1388 * (i.e. thread rec) is needed.
1802 printf("updatelink_callback: unexpected rec type %d\n", crp->recordType);
2332 getentriesattr_callback(const CatalogKey *key, const CatalogRecord *rec,
2345 switch(rec->recordType) {
2362 if (rec->recordType == kHFSPlusFolderRecord) {
2363 if (rec->hfsPlusFolder.folderID == hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid ||
2364 rec->hfsPlusFolder.folderID == hfsmp->hfs_private_desc[DIR_HARDLINKS].cd_cnid) {
2370 (rec->recordType == kHFSPlusFileRecord) &&
2371 ((rec->hfsPlusFile.fileID == hfsmp->hfs_jnlfileid) ||
2372 (rec->hfsPlusFile.fileID == hfsmp->hfs_jnlinfoblkid))) {
2385 promoteattr(hfsmp, rec, &cnoderec);
2390 builddesc(pluskey, getcnid(rec), 0, encoding, isadir(rec), &cep->ce_desc);
2393 if (rec->recordType == kHFSFileRecord) {
2396 cep->ce_datasize = rec->hfsFile.dataLogicalSize;
2397 cep->ce_datablks = rec->hfsFile.dataPhysicalSize / blksize;
2398 cep->ce_rsrcsize = rec->hfsFile.rsrcLogicalSize;
2399 cep->ce_rsrcblks = rec->hfsFile.rsrcPhysicalSize / blksize;
2402 getbsdattr(hfsmp, (const struct HFSPlusCatalogFile *)rec, &cep->ce_attr);
2403 builddesc((const HFSPlusCatalogKey *)key, getcnid(rec), 0, getencoding(rec),
2404 isadir(rec), &cep->ce_desc);
2406 if (rec->recordType == kHFSPlusFileRecord) {
2407 cep->ce_datasize = rec->hfsPlusFile.dataFork.logicalSize;
2408 cep->ce_datablks = rec->hfsPlusFile.dataFork.totalBlocks;
2409 cep->ce_rsrcsize = rec->hfsPlusFile.resourceFork.logicalSize;
2410 cep->ce_rsrcblks = rec->hfsPlusFile.resourceFork.totalBlocks;
2413 if ((SWAP_BE32(rec->hfsPlusFile.userInfo.fdType) == kHardLinkFileType) &&
2414 (SWAP_BE32(rec->hfsPlusFile.userInfo.fdCreator) == kHFSPlusCreator)) {
2415 cep->ce_attr.ca_linkref = rec->hfsPlusFile.bsdInfo.special.iNodeNum;
2416 } else if ((rec->hfsPlusFile.flags & kHFSHasLinkChainMask) &&
2417 (SWAP_BE32(rec->hfsPlusFile.userInfo.fdType) == kHFSAliasType) &&
2418 (SWAP_BE32(rec->hfsPlusFile.userInfo.fdCreator) == kHFSAliasCreator)) {
2419 cep->ce_attr.ca_linkref = rec->hfsPlusFile.bsdInfo.special.iNodeNum;
3992 HFSCatalogThread *rec = (HFSCatalogThread *)recp;
3995 bzero(rec, size);
3997 rec->recordType = kHFSFolderThreadRecord;
3999 rec->recordType = kHFSFileThreadRecord;
4000 rec->parentID = key->parentID;
4001 bcopy(key->nodeName, rec->nodeName, key->nodeName[0]+1);
4005 HFSPlusCatalogThread *rec = (HFSPlusCatalogThread *)recp;
4009 rec->recordType = kHFSPlusFolderThreadRecord;
4011 rec->recordType = kHFSPlusFileThreadRecord;
4012 rec->reserved = 0;
4013 rec->parentID = key->parentID;
4014 bcopy(&key->nodeName, &rec->nodeName,
4018 size -= (sizeof(rec->nodeName.unicode) -
4019 (rec->nodeName.length * sizeof(UniChar)));