Searched refs:c_mode (Results 1 - 8 of 8) sorted by relevance

/xnu-2782.1.97/bsd/hfs/
H A Dhfs_cprotect.c157 if (!S_ISREG(cp->c_mode) && !S_ISDIR(cp->c_mode)) {
180 if (S_ISREG(cp->c_mode)) {
200 if (S_ISDIR(cp->c_mode)) {
205 error = cp_new (target_class, hfsmp, cp, cp->c_mode, keyflags, &entry);
974 if (!S_ISREG(cp->c_mode))
1722 if (!S_ISREG(cp->c_mode)) {
2087 if (S_ISREG(cp->c_mode)) {
2094 error = cp_new (targetclass, hfsmp, cp, cp->c_mode, keyflags, &newcp);
H A Dhfs_cnode.h192 #define c_mode c_attr.ca_mode macro
283 #define CTOV(cp,rsrc) (((rsrc) && S_ISREG((cp)->c_mode)) ? \
H A Dhfs_link.c152 type = S_ISDIR(cp->c_mode) ? DIR_HARDLINKS : FILE_HARDLINKS;
230 link_desc.cd_flags = S_ISDIR(cp->c_mode) ? CD_ISDIR : 0;
274 link_desc.cd_flags = S_ISDIR(cp->c_mode) ? CD_ISDIR : 0;
1145 int maxorigins = (S_ISDIR(cp->c_mode)) ? MAX_CACHED_ORIGINS : MAX_CACHED_FILE_ORIGINS;
H A Dhfs_lookup.c563 desc.cd_flags = S_ISDIR(cp->c_mode) ? CD_ISDIR : 0;
H A Dhfs_vnops.c861 && (S_ISDIR(cp->c_mode) || S_ISREG(cp->c_mode) || S_ISLNK(cp->c_mode)));
927 vap->va_mode = cp->c_mode;
1211 vap->va_mode = cp->c_mode;
1744 cp->c_mode &= ~ALLPERMS;
1745 cp->c_mode |= (mode & ALLPERMS);
1784 return ((cp->c_mode & S_IWUSR) == S_IWUSR ? 0 : EACCES);
1788 return ((cp->c_mode & S_IWGRP) == S_IWGRP ? 0 : EACCES);
1792 return ((cp->c_mode
[all...]
H A Dhfs_readwrite.c793 if (cp->c_mode & (S_ISUID | S_ISGID)) {
796 cp->c_mode &= ~(S_ISUID | S_ISGID);
1060 cip->mode = cp->c_mode;
1081 cnattrp->ca_mode = skip_cp->c_mode;
3556 if (cp->c_mode & (S_ISUID | S_ISGID)) {
3558 cp->c_mode &= ~(S_ISUID | S_ISGID);
4808 if ((cp->c_mode & (S_ISUID | S_ISGID)) &&
4810 cp->c_mode &= ~(S_ISUID | S_ISGID);
H A Dhfs_xattr.c125 if ( !S_ISREG(cp->c_mode) ) {
168 if ( !S_ISREG(cp->c_mode) ) {
328 if ( !S_ISREG(cp->c_mode) ) {
1798 if (S_ISREG(cp->c_mode) && hfs_has_rsrc(cp)) {
H A Dhfs_vfsops.c589 cp->c_mode = cnattr.ca_mode;

Completed in 65 milliseconds