• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xnu-2782.1.97/bsd/hfs/

Lines Matching refs:c_desc

501 		// printf("clearing doc-id from ino %d\n", ocp->c_desc.cd_cnid);
505 /* cat_update(hfsmp, &ocp->c_desc, &ocp->c_attr, NULL, NULL); */
619 (void) cat_update(hfsmp, &cp->c_desc, &cp->c_attr, NULL, NULL);
860 && cp->c_desc.cd_cnid != kHFSRootFolderID
945 if (cp->c_desc.cd_cnid == kHFSRootFolderID)
1321 ((cp->c_desc.cd_namelen == 0) || (vap->va_linkid != cp->c_cnid))) {
1326 if ((cp->c_desc.cd_namelen == 0) && (vap->va_linkid == cp->c_fileid)) {
1352 /* By this point, we've either patched up the name above and the c_desc
1364 else if (cp->c_desc.cd_namelen) {
1365 strlcpy(vap->va_name, (const char*) cp->c_desc.cd_nameptr, MAXPATHLEN);
1579 // printf("SETATTR: assigning doc-id %d to %s (ino %d)\n", document_id, vp->v_name, cp->c_desc.cd_cnid);
1590 // printf("hfs: could not acquire a new document_id for %s (ino %d)\n", vp->v_name, cp->c_desc.cd_cnid);
1600 // printf("SETATTR: clearing doc-id %d from %s (ino %d)\n", fip->document_id, vp->v_name, cp->c_desc.cd_cnid);
2192 from_nameptr = from_cp->c_desc.cd_nameptr;
2202 to_nameptr = to_cp->c_desc.cd_nameptr;
2260 bcopy(&from_cp->c_desc, &tempdesc, sizeof(struct cat_desc));
2291 bcopy(&to_cp->c_desc, &from_cp->c_desc, sizeof(struct cat_desc));
2351 bcopy(&tempdesc, &to_cp->c_desc, sizeof(struct cat_desc));
2747 if ((error = cat_update(hfsmp, &to_cp->c_desc, &to_cp->c_attr,
2787 if ((error = cat_update(hfsmp, &from_cp->c_desc, &from_cp->c_attr,
3405 * the cp->c_desc which may have changed).
3463 (void) cat_update(hfsmp, &dcp->c_desc, &dcp->c_attr, NULL, NULL);
3953 * the cp->c_desc which may have changed). Also, be aware that
3963 desc.cd_encoding = cp->c_desc.cd_encoding;
3967 desc.cd_hint = cp->c_desc.cd_hint;
4039 (void) cat_update(hfsmp, &dcp->c_desc, &dcp->c_attr, NULL, NULL);
4110 cp->c_desc.cd_nameptr, cp->c_attr.ca_fileid, hfsmp->vcbVN, error);
4122 (void) cat_update(hfsmp, &dcp->c_desc, &dcp->c_attr, NULL, NULL);
4239 cat_releasedesc(&cp->c_desc);
4269 if (&cp->c_desc == cdp) {
4274 if (cp->c_desc.cd_flags & CD_HASBUF && cp->c_desc.cd_nameptr != 0) {
4275 const u_int8_t *name = cp->c_desc.cd_nameptr;
4277 cp->c_desc.cd_nameptr = 0;
4278 cp->c_desc.cd_namelen = 0;
4279 cp->c_desc.cd_flags &= ~CD_HASBUF;
4282 bcopy(cdp, &cp->c_desc, sizeof(cp->c_desc));
4794 from_desc.cd_flags = fcp->c_desc.cd_flags & ~(CD_HASBUF | CD_DECOMPOSED);
4801 to_desc.cd_flags = fcp->c_desc.cd_flags & ~(CD_HASBUF | CD_DECOMPOSED);
4840 tmpdesc.cd_flags = fcp->c_desc.cd_flags & CD_ISDIR;
4914 (void) cat_update(hfsmp, &tcp->c_desc, &tcp->c_attr, NULL, NULL);
4918 // printf("RENAME: preserving doc-id %d onto %s (from ino %d, to ino %d)\n", document_id, tcp->c_desc.cd_nameptr, tcp->c_desc.cd_cnid, fcp->c_desc.cd_cnid);
4922 (void) cat_update(hfsmp, &fcp->c_desc, &fcp->c_attr, NULL, NULL);
4939 // ut->t_lastop_document_id, ut->t_lastop_filename, fcp->c_desc.cd_cnid);
5064 // ut->t_lastop_document_id, ut->t_lastop_filename, fcp->c_desc.cd_cnid);
5073 //printf("RENAME: %s (ino %d) inheriting doc-id %lld\n", tcnp->cn_nameptr, fcp->c_desc.cd_cnid, ut->t_lastop_document_id);
5077 cat_update(hfsmp, &fcp->c_desc, &fcp->c_attr, NULL, NULL);
5104 error = cat_rename(hfsmp, &from_desc, &tdcp->c_desc, &to_desc, &out_desc);
6084 error = cat_update(hfsmp, &cp->c_desc, &cp->c_attr, dataforkp, rsrcforkp);
6342 (void) cat_update(hfsmp, &dcp->c_desc, &dcp->c_attr, NULL, NULL);
6369 (void) cat_update(hfsmp, &dcp->c_desc, &dcp->c_attr, NULL, NULL);
6452 && strcmp((char *)ut->t_lastop_filename, (char *)cp->c_desc.cd_nameptr) == 0) {
6465 (void) cat_update(hfsmp, &cp->c_desc, &cp->c_attr, NULL, NULL);
6649 const char * name = (const char *)VTOC(vp)->c_desc.cd_nameptr;
6688 if ((cp->c_flag & C_DELETED ) && (cp->c_desc.cd_namelen == 0)) {
6701 descptr = &cp->c_desc;