/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/headers/ |
H A D | HFSUnicodeWrappers.h | 91 HFSCatalogNodeID cnid);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/ |
H A D | hfs_catalog.c | 106 static int getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key); 113 static void buildrecord(struct cat_attr *attrp, cnid_t cnid, int std_hfs, u_int32_t encoding, CatalogRecord *crp, u_int32_t *recordSize); 117 static int builddesc(const HFSPlusCatalogKey *key, cnid_t cnid, u_long hint, u_long encoding, 404 * cat_findname - obtain a descriptor from cnid 414 cat_findname(struct hfsmount *hfsmp, cnid_t cnid, struct cat_desc *outdescp) argument 428 buildthreadkey(cnid, std_hfs, (CatalogKey *)&iterator->key); 466 builddesc(pluskey, cnid, 0, encoding, isdir, outdescp); 470 builddesc((HFSPlusCatalogKey *)keyp, cnid, 0, 0, isdir, outdescp); 487 cat_idlookup(struct hfsmount *hfsmp, cnid_t cnid, int allow_system_files, argument 502 buildthreadkey(cnid, std_hf 613 cnid_t cnid = 0; local 1017 cnid_t cnid = from_cdp->cd_cnid; local 1271 cnid_t cnid; local 1677 cat_set_childlinkbit(struct hfsmount *hfsmp, cnid_t cnid) argument 1742 cat_check_link_ancestry(struct hfsmount *hfsmp, cnid_t cnid, cnid_t pointed_at_cnid) argument 2629 cnid_t cnid; local 2902 cnid_t cnid; local 3519 getkey(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key) argument 3582 cat_getkeyplusattr(struct hfsmount *hfsmp, cnid_t cnid, CatalogKey * key, struct cat_attr *attrp) argument 3623 buildrecord(struct cat_attr *attrp, cnid_t cnid, int std_hfs, u_int32_t encoding, CatalogRecord *crp, u_int32_t *recordSize) argument 3704 builddesc(const HFSPlusCatalogKey *key, cnid_t cnid, u_long hint, u_long encoding, int isdir, struct cat_desc *descp) argument 4067 cnid_t cnid = 0; local 4096 cnid_t cnid = 0; local [all...] |
H A D | hfs_catalog.h | 76 cnid_t ca_fileid; /* inode number (for stat) normally == cnid */ 279 cnid_t cnid, 286 cnid_t cnid, 357 cnid_t cnid, 370 cnid_t cnid);
|
H A D | hfs_chash.c | 473 hfs_chash_search_cnid(dev_t dev, cnid_t cnid) argument 477 for (cp = CNODEHASH(dev, cnid)->lh_first; cp; cp = cp->c_hash.le_next) { 478 if ((cp->c_fileid == cnid) && (cp->c_dev == dev)) { 503 hfs_chash_set_childlinkbit(dev_t dev, cnid_t cnid) argument 509 cp = hfs_chash_search_cnid(dev, cnid);
|
H A D | hfs_cnode.h | 89 cnid_t lo_cnid; /* hardlink's cnid */ 90 cnid_t lo_parentcnid; /* hardlink's parent cnid */ 275 extern int hfs_valid_cnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, cnid_t cnid); 277 extern int hfs_chash_set_childlinkbit(dev_t dev, cnid_t cnid);
|
H A D | hfs_hotfiles.c | 229 u_int32_t cnid; local 234 cnid = GetFileInfo(HFSTOVCB(hfsmp), kRootDirID, HFC_FILENAME, &cattr, NULL); 235 if ((cnid == 0) && 522 u_int32_t cnid; local 549 cnid = GetFileInfo(HFSTOVCB(hfsmp), kRootDirID, HFC_FILENAME, &cattr, NULL); 550 if (cnid != 0 && S_ISREG(cattr.ca_mode)) { 638 cnid = filep->fileID; 641 if (cnid == hfsmp->hfs_jnlfileid || cnid == hfsmp->hfs_jnlinfoblkid) { 651 key->fileID = cnid; [all...] |
H A D | hfs_readwrite.c | 808 * Lookup the cnid's attr info (uid, gid, and mode) as well as its parent id. If the item 812 do_attr_lookup(struct hfsmount *hfsmp, struct access_cache *cache, dev_t dev, cnid_t cnid, argument 818 if (cnid == skip_cp->c_cnid) { 827 if (hfs_chash_snoop(dev, cnid, snoop_callback, &c_info) == 0) { 838 /* lookup this cnid in the catalog */ 839 error = cat_getkeyplusattr(hfsmp, cnid, keyp, cnattrp); 938 /* get the vnode for this cnid */ 1041 cnid_t cnid; local 1191 cnid = (cnid_t) file_ids[i]; 1201 error = do_attr_lookup(hfsmp, &cache, dev, cnid, skip_c 1346 cnid_t cnid; local [all...] |
H A D | hfs_cnode.c | 234 // case of regular files the fileid and cnid are the 857 hfs_valid_cnode(struct hfsmount *hfsmp, struct vnode *dvp, struct componentname *cnp, cnid_t cnid) argument 865 if (cnid < kHFSFirstUserCatalogNodeID) 880 (cnid == attr.ca_fileid)) { 884 if (cat_idlookup(hfsmp, cnid, 0, NULL, NULL, NULL) == 0) {
|
H A D | hfs_vfsops.c | 2578 hfs_vget(struct hfsmount *hfsmp, cnid_t cnid, struct vnode **vpp, int skiplock) argument 2588 if ((cnid < kHFSFirstUserCatalogNodeID) && 2589 (cnid != kHFSRootFolderID && cnid != kHFSRootParentID)) { 2593 if (cnid == hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid || 2594 cnid == hfsmp->hfs_private_desc[DIR_HARDLINKS].cd_cnid) { 2600 vp = hfs_chash_getvnode(hfsmp->hfs_raw_dev, cnid, 0, skiplock); 2613 if (cnid == kHFSRootParentID) { 2633 error = cat_idlookup(hfsmp, cnid, 0, &cndesc, &cnattr, &cnfork);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Unicode/ |
H A D | UnicodeWrappers.c | 426 ByteCount *actualDstLen, unsigned char* dstStr, HFSCatalogNodeID cnid) 433 snprintf(fileIDStr, sizeof(fileIDStr), "#%X", cnid); 425 ConvertUnicodeToUTF8Mangled(ByteCount srcLen, ConstUniCharArrayPtr srcStr, ByteCount maxDstLen, ByteCount *actualDstLen, unsigned char* dstStr, HFSCatalogNodeID cnid) argument
|