Searched refs:c_desc (Results 1 - 15 of 15) sorted by relevance

/xnu-2422.115.4/bsd/hfs/
H A Dhfs_cnode.h146 struct cat_desc c_desc; /* cnode's descriptor */ member in struct:cnode
172 #define c_cnid c_desc.cd_cnid
173 #define c_hint c_desc.cd_hint
174 #define c_parentcnid c_desc.cd_parentcnid
175 #define c_encoding c_desc.cd_encoding
H A Dhfs_link.c178 orig_cnid = cp->c_desc.cd_cnid;
211 retval = cat_rename(hfsmp, &cp->c_desc, &hfsmp->hfs_private_desc[type],
227 link_desc.cd_nameptr = cp->c_desc.cd_nameptr;
228 link_desc.cd_namelen = cp->c_desc.cd_namelen;
237 cp->c_desc.cd_cnid = orig_cnid;
240 err = cat_rename(hfsmp, &to_desc, &dcp->c_desc, &cp->c_desc, NULL);
246 cp->c_desc.cd_cnid = linkcnid;
283 (void) cat_delete(hfsmp, &cp->c_desc, &cp->c_attr);
286 cp->c_desc
[all...]
H A Dhfs_search.c606 || (cp->c_desc.cd_nameptr != NULL
607 && is_package_name((const char *)cp->c_desc.cd_nameptr, cp->c_desc.cd_namelen)) ) {
614 if ( cp->c_parentcnid == kRootDirID && cp->c_desc.cd_nameptr != NULL &&
615 vn_searchfs_inappropriate_name((const char *)cp->c_desc.cd_nameptr, cp->c_desc.cd_namelen) ) {
1123 struct cat_desc c_desc; local
1128 bzero(&c_desc, sizeof(c_desc));
1152 err = cat_convertkey(hfsmp, key, rec, &c_desc);
[all...]
H A Dhfs_cnode.c410 if (cp->c_desc.cd_namelen == 0) {
422 desc_ptr = &cp->c_desc;
534 cat_releasedesc(&cp->c_desc);
540 error = cat_delete(hfsmp, &cp->c_desc, &cp->c_attr);
1192 bcopy(descp, &cp->c_desc, sizeof(struct cat_desc));
1446 if ((cp->c_desc.cd_flags & CD_HASBUF) && (cp->c_desc.cd_nameptr != 0)) {
1449 nameptr = (const char *) cp->c_desc.cd_nameptr;
1450 cp->c_desc.cd_nameptr = 0;
1451 cp->c_desc
[all...]
H A Dhfs_lookup.c540 (cnp->cn_namelen != cp->c_desc.cd_namelen) ||
541 (bcmp(cnp->cn_nameptr, cp->c_desc.cd_nameptr, cp->c_desc.cd_namelen) != 0)) {
H A Dhfs_vnops.c507 // printf("clearing doc-id from ino %d\n", ocp->c_desc.cd_cnid);
511 /* cat_update(hfsmp, &ocp->c_desc, &ocp->c_attr, NULL, NULL); */
625 (void) cat_update(hfsmp, &cp->c_desc, &cp->c_attr, NULL, NULL);
1259 ((cp->c_desc.cd_namelen == 0) || (vap->va_linkid != cp->c_cnid))) {
1264 if ((cp->c_desc.cd_namelen == 0) && (vap->va_linkid == cp->c_fileid)) {
1290 /* By this point, we've either patched up the name above and the c_desc
1302 else if (cp->c_desc.cd_namelen) {
1303 strlcpy(vap->va_name, (const char*) cp->c_desc.cd_nameptr, MAXPATHLEN);
1527 // printf("SETATTR: assigning doc-id %d to %s (ino %d)\n", document_id, vp->v_name, cp->c_desc.cd_cnid);
1538 // printf("hfs: could not acquire a new document_id for %s (ino %d)\n", vp->v_name, cp->c_desc
[all...]
H A Dhfs_vfsutils.c1636 cnode.c_desc.cd_parentcnid = hfsmp->hfs_private_desc[FILE_HARDLINKS].cd_cnid;
1637 cnode.c_desc.cd_nameptr = (const u_int8_t *)filename;
1638 cnode.c_desc.cd_namelen = namelen;
1639 cnode.c_desc.cd_cnid = cnode.c_attr.ca_fileid;
1703 if (cat_delete(hfsmp, &cnode.c_desc, &cnode.c_attr) != 0) {
1704 printf("hfs_remove_orphans: error deleting cat rec for id %d!\n", cnode.c_desc.cd_cnid);
2997 filename = (const char *)cp->c_desc.cd_nameptr;
3431 (void) cat_update(hfsmp, &cp->c_desc, &cp->c_attr, NULL, NULL);
H A Dhfs_chash.c267 result = callout(&cp->c_desc, &cp->c_attr, arg);
H A Dhfs_vfsops.c582 error = cat_lookup(args->hfsmp, &cp->c_desc, 0, 0, &cndesc, &cnattr, NULL, NULL);
611 strlcpy((char *)vcb->vcbVN, (const char *)cp->c_desc.cd_nameptr, NAME_MAX+1);
612 cp->c_desc.cd_encoding = args->hfsmp->hfs_encoding;
5958 const char *filename = (const char *) cp->c_desc.cd_nameptr;
5959 int namelen = cp->c_desc.cd_namelen;
7740 error = cat_rename(hfsmp, &cp->c_desc, &todir_desc, &to_desc, &new_desc);
7769 if (cp->c_desc.cd_flags & CD_HASBUF) {
7770 const char *tmp_name = (const char *)cp->c_desc.cd_nameptr;
7772 cp->c_desc.cd_nameptr = 0;
7773 cp->c_desc
[all...]
H A Dhfs_readwrite.c1725 if (cp->c_desc.cd_cnid == kHFSRootFolderID) {
1788 (void) cat_update(hfsmp, &cp->c_desc, &cp->c_attr, NULL, NULL);
1905 (void) cat_update(hfsmp, &cp->c_desc, &cp->c_attr, NULL, NULL);
1906 (void) cat_update(hfsmp, &to_cp->c_desc, &to_cp->c_attr, NULL, NULL);
5005 if (cp->c_desc.cd_nameptr != NULL) {
5006 filestr = (const char *)&cp->c_desc.cd_nameptr[0];
H A Dhfs_hotfiles.c1181 if (VTOC(vp)->c_desc.cd_nameptr)
1182 data = *(const u_int32_t *)(VTOC(vp)->c_desc.cd_nameptr);
H A Dhfs_attrlist.c283 cdescp = &cp->c_desc;
H A Dhfs_xattr.c342 namelen = cp->c_desc.cd_namelen;
860 namelen = cp->c_desc.cd_namelen;
/xnu-2422.115.4/bsd/hfs/hfscommon/Misc/
H A DFileExtentMapping.c1630 FTOC(fcb)->c_desc.cd_nameptr ? (const char *)FTOC(fcb)->c_desc.cd_nameptr : "", error);
1665 FTOC(fcb)->c_desc.cd_nameptr ? (const char *)FTOC(fcb)->c_desc.cd_nameptr : "", error);
1679 FTOC(fcb)->c_desc.cd_nameptr ? (const char *)FTOC(fcb)->c_desc.cd_nameptr : "", error);
1694 FTOC(fcb)->c_desc.cd_nameptr ? (const char *)FTOC(fcb)->c_desc.cd_nameptr : "", error);
/xnu-2422.115.4/tools/lldbmacros/
H A Dmemory.py1601 name = "hfs: %s" % str( Cast(cnode.c_desc.cd_nameptr, 'char *'))

Completed in 216 milliseconds