• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/hfs/

Lines Matching refs:cp

110 	struct cnode *cp;
121 cp = VTOC(vp);
122 if ( !S_ISREG(cp->c_mode) ) {
128 if (!RSRC_FORK_EXISTS(cp) && (ap->a_operation != NS_OPEN)) {
129 hfs_unlock(cp);
133 hfs_unlock(cp);
146 struct cnode *cp;
157 cp = VTOC(vp);
158 if ( !S_ISREG(cp->c_mode) ) {
161 if ((error = hfs_lock(cp, HFS_EXCLUSIVE_LOCK))) {
165 hfs_unlock(cp);
223 struct cnode *cp;
235 cp = VTOC(vp);
236 if (vp == cp->c_vp) {
242 if ((result = hfs_lock(cp, HFS_SHARED_LOCK))) {
246 bcopy(cp->c_finderinfo, finderinfo, sizeof(finderinfo));
247 hfs_unlock(cp);
276 if ( !S_ISREG(cp->c_mode) ) {
279 if ((result = hfs_lock(cp, HFS_EXCLUSIVE_LOCK))) {
282 if ( !RSRC_FORK_EXISTS(cp)) {
283 hfs_unlock(cp);
288 hfs_unlock(cp);
309 if ((result = hfs_lock(cp, HFS_SHARED_LOCK))) {
314 (cp->c_attr.ca_recflags & kHFSHasAttributesMask) == 0) {
463 hfs_unlock(cp);
493 struct cnode *cp = NULL;
538 cp = VTOC(vp);
543 finderinfo_start = &cp->c_finderinfo[8];
546 finderinfo_start = &cp->c_finderinfo[0];
552 hfs_unlock(cp);
560 hfs_unlock(cp);
566 hfs_unlock(cp);
571 if (attrsize == sizeof(cp->c_finderinfo))
577 cp->c_touch_chgtime = TRUE;
578 cp->c_flag |= C_MODIFIED;
587 fdFlags = *((u_int16_t *) &cp->c_finderinfo[8]);
589 cp->c_flags |= UF_HIDDEN;
591 cp->c_flags &= ~UF_HIDDEN;
595 hfs_unlock(cp);
608 cp = VTOC(vp);
610 if (RSRC_FORK_EXISTS(cp)) {
613 hfs_unlock(cp);
619 hfs_unlock(cp);
624 hfs_unlock(cp);
667 cp = VTOC(vp);
680 if (cp->c_flag & C_NOEXISTS) {
876 cp = VTOC(vp);
880 cp->c_touch_chgtime = TRUE;
881 cp->c_attr.ca_recflags |= kHFSHasAttributesMask;
883 cp->c_attr.ca_recflags |= kHFSHasSecurityMask;
893 if (cp) {
894 hfs_unlock(cp);
931 struct cnode *cp = VTOC(vp);
952 if ((result = hfs_lock(cp, HFS_EXCLUSIVE_LOCK))) {
955 if ( !RSRC_FORK_EXISTS(cp)) {
956 hfs_unlock(cp);
960 hfs_unlock(cp);
967 hfs_unlock_truncate(cp, TRUE);
976 hfs_unlock_truncate(cp, TRUE);
977 hfs_unlock(cp);
984 cp->c_touch_chgtime = TRUE;
985 cp->c_flag |= C_MODIFIED;
1001 if ((result = hfs_lock(cp, HFS_EXCLUSIVE_LOCK))) {
1008 finderinfo_start = &cp->c_finderinfo[8];
1009 finderinfo_size = sizeof(cp->c_finderinfo) - 8;
1011 finderinfo_start = &cp->c_finderinfo[0];
1012 finderinfo_size = sizeof(cp->c_finderinfo);
1015 hfs_unlock(cp);
1022 cp->c_touch_chgtime = TRUE;
1023 cp->c_flag |= C_MODIFIED;
1026 hfs_unlock(cp);
1046 if ((result = hfs_lock(cp, HFS_EXCLUSIVE_LOCK))) {
1050 result = hfs_buildattrkey(cp->c_fileid, ap->a_name, (HFSPlusAttrKey *)&iterator->key);
1066 cp->c_touch_chgtime = TRUE;
1071 result = file_attribute_exist(hfsmp, cp->c_fileid);
1073 cp->c_attr.ca_recflags &= ~kHFSHasAttributesMask;
1083 cp->c_attr.ca_recflags &= ~kHFSHasSecurityMask;
1090 hfs_unlock(cp);
1264 struct cnode *cp = VTOC(vp);
1283 if ((result = hfs_lock(cp, HFS_SHARED_LOCK))) {
1290 finderinfo_start = &cp->c_finderinfo[8];
1291 finderinfo_size = sizeof(cp->c_finderinfo) - 8;
1293 finderinfo_start = &cp->c_finderinfo[0];
1294 finderinfo_size = sizeof(cp->c_finderinfo);
1311 if (S_ISREG(cp->c_mode) && RSRC_FORK_EXISTS(cp)) {
1334 (cp->c_attr.ca_recflags & kHFSHasAttributesMask) == 0) {
1346 result = hfs_buildattrkey(cp->c_fileid, NULL, (HFSPlusAttrKey *)&iterator->key);
1371 state.fileID = cp->c_fileid;
1395 hfs_unlock(cp);