Lines Matching refs:cap
61 struct cat_attr * cap, struct proc *p);
517 struct cat_attr * cap,
551 *((fsobj_type_t *)attrbufptr) = IFTOVT(cap->ca_mode);
591 ((struct user_timespec *)attrbufptr)->tv_sec = cap->ca_itime;
596 ((struct timespec *)attrbufptr)->tv_sec = cap->ca_itime;
603 ((struct user_timespec *)attrbufptr)->tv_sec = cap->ca_mtime;
608 ((struct timespec *)attrbufptr)->tv_sec = cap->ca_mtime;
615 ((struct user_timespec *)attrbufptr)->tv_sec = cap->ca_ctime;
620 ((struct timespec *)attrbufptr)->tv_sec = cap->ca_ctime;
627 ((struct user_timespec *)attrbufptr)->tv_sec = cap->ca_atime;
632 ((struct timespec *)attrbufptr)->tv_sec = cap->ca_atime;
639 ((struct user_timespec *)attrbufptr)->tv_sec = cap->ca_btime;
644 ((struct timespec *)attrbufptr)->tv_sec = cap->ca_btime;
650 bcopy(&cap->ca_finderinfo, attrbufptr, sizeof(u_int8_t) * 32);
652 if (S_ISLNK(cap->ca_mode)) {
662 uid_t nuid = cap->ca_uid;
675 gid_t ngid = cap->ca_gid;
696 *((u_int32_t *)attrbufptr) = (cap->ca_uid == UNKNOWNUID) ?
697 cap->ca_mode & ~(S_ISUID | S_ISGID) : cap->ca_mode;
701 *((u_int32_t *)attrbufptr) = cap->ca_flags;
708 if ((vp != NULLVP) && (cap->ca_recflags & kHFSHasSecurityMask)) {
711 user_access = DerivePermissionSummary(cap->ca_uid, cap->ca_gid,
712 cap->ca_mode, mp, proc_ucred(current_proc()), 0);
719 if ((cap->ca_flags & UF_IMMUTABLE) && (vfs_context_suser(abp->ab_context) != 0))
721 if ((cap->ca_flags & SF_IMMUTABLE) && (vfs_context_suser(abp->ab_context) == 0))
728 *((u_int64_t *)attrbufptr) = cap->ca_fileid;