Lines Matching defs:keyp
93 static int cat_lookupbykey(struct hfsmount *hfsmp, CatalogKey *keyp, int allow_system_files, u_long hint, int wantrsrc,
122 static void promotekey(struct hfsmount *hfsmp, const HFSCatalogKey *hfskey, HFSPlusCatalogKey *keyp, u_long *encoding);
132 static int buildthread(void *keyp, void *recp, int std_hfs, int directory);
306 CatalogKey * keyp;
312 MALLOC(keyp, CatalogKey *, sizeof(CatalogKey), M_TEMP, M_WAITOK);
314 result = buildkey(hfsmp, descp, (HFSPlusCatalogKey *)keyp, 1);
318 result = cat_lookupbykey(hfsmp, keyp, 0, descp->cd_hint, wantrsrc, outdescp, attrp, forkp, desc_cnid);
337 // result = cat_lookupbykey(hfsmp, keyp, descp->cd_hint, attrp, forkp);
342 FREE(keyp, M_TEMP);
418 CatalogKey * keyp;
444 keyp = (CatalogKey *)((char *)&recp->hfsThread.reserved + 6);
445 keyp->hfs.keyLength = kHFSCatalogKeyMinimumLength + keyp->hfs.nodeName[0];
452 keyp = (CatalogKey *)&recp->hfsPlusThread.reserved;
453 keyp->hfsPlus.keyLength = kHFSPlusCatalogKeyMinimumLength +
454 (keyp->hfsPlus.nodeName.length * 2);
465 promotekey(hfsmp, &keyp->hfs, pluskey, &encoding);
470 builddesc((HFSPlusCatalogKey *)keyp, cnid, 0, 0, isdir, outdescp);
493 CatalogKey * keyp;
516 keyp = (CatalogKey *)((char *)&recp->hfsThread.reserved + 6);
517 keyp->hfs.keyLength = kHFSCatalogKeyMinimumLength + keyp->hfs.nodeName[0];
522 keyp = (CatalogKey *)&recp->hfsPlusThread.reserved;
523 keyp->hfsPlus.keyLength = kHFSPlusCatalogKeyMinimumLength +
524 (keyp->hfsPlus.nodeName.length * 2);
532 result = cat_lookupbykey(hfsmp, keyp, allow_system_files, 0, 0, outdescp, attrp, forkp, NULL);
603 cat_lookupbykey(struct hfsmount *hfsmp, CatalogKey *keyp, int allow_system_files, u_long hint, int wantrsrc,
623 bcopy(keyp, &iterator->key, sizeof(CatalogKey));
1744 HFSPlusCatalogKey *keyp;
1755 keyp = (HFSPlusCatalogKey *)&ip->key;
1764 if ((result = getkey(hfsmp, cnid, (CatalogKey *)keyp))) {
1779 cnid = keyp->parentID;
3524 CatalogKey * keyp;
3547 keyp = (CatalogKey *)((char *)&recp->hfsThread.reserved + 6);
3548 keyp->hfs.keyLength = kHFSCatalogKeyMinimumLength + keyp->hfs.nodeName[0];
3549 bcopy(keyp, key, keyp->hfs.keyLength + 1);
3554 keyp = (CatalogKey *)&recp->hfsPlusThread.reserved;
3555 keyp->hfsPlus.keyLength = kHFSPlusCatalogKeyMinimumLength +
3556 (keyp->hfsPlus.nodeName.length * 2);
3557 bcopy(keyp, key, keyp->hfsPlus.keyLength + 2);
3872 HFSPlusCatalogKey *keyp, u_long *encoding)
3880 error = hfs_get_unicode(hfskey->nodeName, keyp->nodeName.unicode,
3889 keyp->nodeName.unicode,
3894 keyp->nodeName.length = uniCount;
3895 keyp->parentID = hfskey->parentID;
3986 buildthread(void *keyp, void *recp, int std_hfs, int directory)
3991 HFSCatalogKey *key = (HFSCatalogKey *)keyp;
4004 HFSPlusCatalogKey *key = (HFSPlusCatalogKey *)keyp;