/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/devfs/ |
H A D | devfs_vnops.c | 342 struct vnode_attr *vap = ap->a_vap; local 353 VATTR_RETURN(vap, va_mode, file_node->dn_mode); 363 VATTR_RETURN(vap, va_rdev, (dev_t)file_node->dn_dvm); 364 vap->va_mode |= (S_IFDIR); 367 VATTR_RETURN(vap, va_rdev, vp->v_rdev); 368 vap->va_mode |= (S_IFCHR); 371 VATTR_RETURN(vap, va_rdev, vp->v_rdev); 372 vap->va_mode |= (S_IFBLK); 375 VATTR_RETURN(vap, va_rdev, 0); 376 vap 427 struct vnode_attr *vap = ap->a_vap; local 974 struct vnode_attr * vap = ap->a_vap; local 1043 struct vnode_attr * vap = ap->a_vap; local 1093 struct vnode_attr * vap = ap->a_vap; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/synthfs/ |
H A D | synthfs_vnops.c | 140 IN struct vnode_attr *vap; 236 IN struct vnode_attr *vap; 249 struct vnode_attr *vap = ap->a_vap; local 252 VATTR_RETURN(vap, va_type, vp->v_type); 253 VATTR_RETURN(vap, va_mode, sp->s_mode); 254 VATTR_RETURN(vap, va_nlink, sp->s_linkcount); 255 VATTR_RETURN(vap, va_uid, sp->s_uid); 256 VATTR_RETURN(vap, va_gid, sp->s_gid); 257 VATTR_RETURN(vap, va_fsid, VTOVFS(vp)->mnt_vfsstat.f_fsid.val[0]); 258 VATTR_RETURN(vap, va_filei 383 struct vnode_attr *vap = ap->a_vap; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/ |
H A D | nfs4_subs.c | 227 nfs_vattr_set_supported(uint32_t *bitmap, struct vnode_attr *vap) argument 230 VATTR_SET_SUPPORTED(vap, va_type); 233 VATTR_SET_SUPPORTED(vap, va_data_size); 236 VATTR_SET_SUPPORTED(vap, va_fsid); 238 // VATTR_SET_SUPPORTED(vap, va_acl); 240 VATTR_SET_SUPPORTED(vap, va_flags); 242 VATTR_SET_SUPPORTED(vap, va_fileid); 244 VATTR_SET_SUPPORTED(vap, va_flags); 247 VATTR_SET_SUPPORTED(vap, va_mode); 249 VATTR_SET_SUPPORTED(vap, va_nlin 672 nfsm_chain_add_fattr4_f(struct nfsm_chain *nmc, struct vnode_attr *vap, struct nfsmount *nmp) argument [all...] |
H A D | nfs_serv.c | 466 struct vnode_attr vattr, *vap = &vattr; local 487 VATTR_INIT(vap); 488 error = nfsm_chain_get_sattr(nd, nmreq, vap); 533 if ((vap->va_uid == saved_uid) && (kauth_cred_getuid(nd->nd_cr) != saved_uid)) { 535 VATTR_SET(vap, va_uid, kauth_cred_getuid(nd->nd_cr)); 536 if (kauth_cred_ismember_gid(nd->nd_cr, vap->va_gid, &ismember) || !ismember) 537 VATTR_SET(vap, va_gid, kauth_cred_getgid(nd->nd_cr)); 541 error = vnode_authattr(vp, vap, &action, ctx); 547 error = vnode_setattr(vp, vap, ctx); 598 struct vnode_attr va, dirattr, *vap local 820 struct vnode_attr vattr, *vap = &vattr; local 1787 struct vnode_attr va, *vap = &va; local 2123 struct vnode_attr va, *vap = &va; local 3279 struct vnode_attr va, *vap = &va; local 3504 struct vnode_attr va, *vap = &va; local 4116 struct vnode_attr attr, va, *vap = &va; local [all...] |
H A D | nfs_vnops.c | 950 struct vnode_attr *vap = ap->a_vap; local 958 VATTR_RETURN(vap, va_type, nva.nva_type); 959 VATTR_RETURN(vap, va_mode, nva.nva_mode); 961 VATTR_RETURN(vap, va_rdev, rdev); 962 VATTR_RETURN(vap, va_uid, nva.nva_uid); 963 VATTR_RETURN(vap, va_gid, nva.nva_gid); 964 VATTR_RETURN(vap, va_nlink, nva.nva_nlink); 965 VATTR_RETURN(vap, va_fileid, nva.nva_fileid); 966 VATTR_RETURN(vap, va_data_size, nva.nva_size); 967 VATTR_RETURN(vap, va_data_allo 999 struct vnode_attr *vap = ap->a_vap; local 1218 nfs3_setattr_rpc( nfsnode_t np, struct vnode_attr *vap, vfs_context_t ctx, int alreadylocked) argument 2674 struct vnode_attr *vap = ap->a_vap; local 2822 struct vnode_attr *vap = ap->a_vap; local 3574 struct vnode_attr *vap = ap->a_vap; local 3734 struct vnode_attr *vap = ap->a_vap; local [all...] |
H A D | nfs_subs.c | 786 nfsm_chain_add_v2sattr_f(struct nfsm_chain *nmc, struct vnode_attr *vap, uint32_t szrdev) argument 790 nfsm_chain_add_32(error, nmc, vtonfsv2_mode(vap->va_type, 791 (VATTR_IS_ACTIVE(vap, va_mode) ? vap->va_mode : 0600))); 793 VATTR_IS_ACTIVE(vap, va_uid) ? vap->va_uid : (uint32_t)-1); 795 VATTR_IS_ACTIVE(vap, va_gid) ? vap->va_gid : (uint32_t)-1); 798 VATTR_IS_ACTIVE(vap, va_access_time) ? 799 &vap 811 nfsm_chain_add_v3sattr_f(struct nfsm_chain *nmc, struct vnode_attr *vap) argument 1815 nfsm_chain_add_fattr( struct nfsrv_descript *nd, struct nfsm_chain *nmc, struct vnode_attr *vap) argument 1859 nfsm_chain_get_sattr( struct nfsrv_descript *nd, struct nfsm_chain *nmc, struct vnode_attr *vap) argument [all...] |
H A D | nfs4_vnops.c | 1230 struct vnode_attr *vap = ap->a_vap; local 1241 VATTR_RETURN(vap, va_rdev, rdev); 1244 VATTR_RETURN(vap, va_nlink, nva.nva_nlink); 1246 VATTR_RETURN(vap, va_data_size, nva.nva_size); 1247 // VATTR_RETURN(vap, va_data_alloc, ???); 1248 // VATTR_RETURN(vap, va_total_size, ???); 1250 VATTR_RETURN(vap, va_total_alloc, nva.nva_bytes); 1252 VATTR_RETURN(vap, va_uid, nva.nva_uid); 1254 VATTR_RETURN(vap, va_gid, nva.nva_gid); 1256 VATTR_RETURN(vap, va_mod 1308 nfs4_setattr_rpc( nfsnode_t np, struct vnode_attr *vap, vfs_context_t ctx, int alreadylocked) argument 1420 struct vnode_attr *vap = ap->a_vap; local 1703 nfs4_create_rpc( vfs_context_t ctx, nfsnode_t dnp, struct componentname *cnp, struct vnode_attr *vap, int type, char *link, nfsnode_t *npp) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/fdesc/ |
H A D | fdesc_vnops.c | 115 static int fdesc_attr(int fd, struct vnode_attr *vap, vfs_context_t a_context); 367 fdesc_attr(int fd, struct vnode_attr *vap, vfs_context_t a_context) argument 385 error = vnode_getattr((struct vnode *)fp->f_fglob->fg_data, vap, a_context); 386 if (error == 0 && vap->va_type == VDIR) { 393 vap->va_mode &= ~((VEXEC)|(VEXEC>>3)|(VEXEC>>6)); 409 VATTR_RETURN(vap, va_type, VSOCK); 411 VATTR_RETURN(vap, va_type, VFIFO); 413 VATTR_RETURN(vap, va_mode, stb.st_mode); 414 VATTR_RETURN(vap, va_nlink, stb.st_nlink); 415 VATTR_RETURN(vap, va_ui 443 struct vnode_attr *vap = ap->a_vap; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/ |
H A D | ufs_vnops.c | 157 struct vnode_attr *vap = ap->a_vap; local 182 if (vap->va_rdev != VNOVAL) { 187 ip->i_rdev = vap->va_rdev; 252 register struct vnode_attr *vap = ap->a_vap; local 262 VATTR_RETURN(vap, va_fsid, ip->i_dev); 263 VATTR_RETURN(vap, va_fileid, ip->i_number); 264 VATTR_RETURN(vap, va_mode, ip->i_mode & ~IFMT); 265 VATTR_RETURN(vap, va_nlink, ip->i_nlink); 266 VATTR_RETURN(vap, va_uid, ip->i_uid); 267 VATTR_RETURN(vap, va_gi 306 struct vnode_attr *vap = ap->a_vap; local 1104 register struct vnode_attr *vap = ap->a_vap; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/ |
H A D | kpi_vfs.c | 138 struct vnode_attr * vap, vfs_context_t ctx, 2069 vnode_getattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument 2079 VATTR_CLEAR_ACTIVE(vap, va_acl); 2080 VATTR_CLEAR_ACTIVE(vap, va_uuuid); 2081 VATTR_CLEAR_ACTIVE(vap, va_guuid); 2088 if (VATTR_IS_ACTIVE(vap, va_data_alloc) || 2089 VATTR_IS_ACTIVE(vap, va_total_size) || 2090 VATTR_IS_ACTIVE(vap, va_total_alloc)) { 2091 VATTR_SET_ACTIVE(vap, va_data_size); 2092 VATTR_SET_ACTIVE(vap, va_data_allo 2301 vnode_setattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument 2394 vnode_setattr_fallback(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx) argument 2615 VNOP_CREATE(vnode_t dvp, vnode_t * vpp, struct componentname * cnp, struct vnode_attr * vap, vfs_context_t ctx) argument 2708 VNOP_MKNOD(vnode_t dvp, vnode_t * vpp, struct componentname * cnp, struct vnode_attr * vap, vfs_context_t ctx) argument 2890 VNOP_GETATTR(vnode_t vp, struct vnode_attr * vap, vfs_context_t ctx) argument 2929 VNOP_SETATTR(vnode_t vp, struct vnode_attr * vap, vfs_context_t ctx) argument 3893 VNOP_MKDIR(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, vfs_context_t ctx) argument 4075 xattrfile_setattr(vnode_t dvp, const char * basename, struct vnode_attr * vap, vfs_context_t ctx, int thread_safe) argument 4148 VNOP_SYMLINK(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, char *target, vfs_context_t ctx) argument [all...] |
H A D | vfs_subr.c | 4457 * vap Pointer to the vnode_attr structure 4470 * *vap May be modified by the underlying VFS. 4477 * Notes: The kauth_filesec_t in 'vap', if any, is in host byte order. 4479 * Modification of '*cnp' and '*vap' by the underlying VFS is 4488 vn_create(vnode_t dvp, vnode_t *vpp, struct componentname *cnp, struct vnode_attr *vap, int flags, vfs_context_t ctx) argument 4506 if (VATTR_IS_ACTIVE(vap, va_acl)) { 4508 oacl = vap->va_acl; 4511 vap->va_acl = NULL; 4515 vap->va_type == VDIR, 4526 VATTR_CLEAR_ACTIVE(vap, va_ac 4618 struct vnode_attr *vap; member in struct:_vnode_authorize_context 4688 vnode_immutable(struct vnode_attr *vap, int append, int ignore) argument 4716 vauth_node_owner(struct vnode_attr *vap, kauth_cred_t cred) argument 4735 vauth_node_group(struct vnode_attr *vap, kauth_cred_t cred, int *ismember) argument 4852 struct vnode_attr *vap; local 5005 struct vnode_attr *vap = vcp->vap; local 5108 struct vnode_attr *vap = vcp->vap; local 5278 vnode_authorize_checkimmutable(vnode_t vp, struct vnode_attr *vap, int rights, int ignore) argument 5760 vnode_authattr_new(vnode_t dvp, struct vnode_attr *vap, int noauth, vfs_context_t ctx) argument 5965 vnode_authattr(vnode_t vp, struct vnode_attr *vap, kauth_action_t *actionp, vfs_context_t ctx) argument [all...] |
H A D | vfs_vnops.c | 158 * pointed to by ndp, fmodep, and vap as necessary to perform the requested 166 * vap A pointer to the vnode attribute 176 * Notes: The kauth_filesec_t in 'vap', if any, is in host byte order. 191 * The contents of '*vap' will be modified as necessary to 202 vn_open_auth(struct nameidata *ndp, int *fmodep, struct vnode_attr *vap) argument 238 if (vap == NULL) { 243 VATTR_SET(vap, va_type, VREG); 246 dvp, &ndp->ni_cnd, vap); 256 vap->va_vaflags |= VA_EXCLUSIVE; 263 if ((error = vn_create(dvp, &ndp->ni_vp, &ndp->ni_cnd, vap, [all...] |
H A D | vfs_syscalls.c | 2088 open1(vfs_context_t ctx, struct nameidata *ndp, int uflags, struct vnode_attr *vap, register_t *retval) argument 2111 AUDIT_ARG(mode, vap->va_mode); 2138 if ((error = vn_open_auth(ndp, &flags, vap))) { 2349 static int mkfifo1(vfs_context_t ctx, user_addr_t upath, struct vnode_attr *vap); 2468 mkfifo1(vfs_context_t ctx, user_addr_t upath, struct vnode_attr *vap) argument 2487 VATTR_SET(vap, va_type, VFIFO); 2491 &nd.ni_cnd, vap); 2501 error = vn_create(dvp, &vp, &nd.ni_cnd, vap, 0, ctx); 3983 chmod2(vfs_context_t ctx, vnode_t vp, struct vnode_attr *vap) argument 3988 AUDIT_ARG(mode, (mode_t)vap 4026 chmod1(vfs_context_t ctx, user_addr_t path, struct vnode_attr *vap) argument 4120 fchmod1(__unused proc_t p, int fd, struct vnode_attr *vap) argument 5276 mkdir1(vfs_context_t ctx, user_addr_t path, struct vnode_attr *vap) argument [all...] |
H A D | vfs_attrlist.c | 281 * Given the attributes listed in alp, configure vap to request 395 getattrlist_parsetab(struct getattrlist_attrtab *tab, attrgroup_t attrs, struct vnode_attr *vap, argument 405 vap->va_active |= tab->bits; 426 * Given the attributes listed in alp, configure vap to request 430 getattrlist_setupvattr(struct attrlist *alp, struct vnode_attr *vap, ssize_t *sizep, kauth_action_t *actionp, int is_64bit, int isdir) argument 440 (error = getattrlist_parsetab(getattrlist_common_tab, alp->commonattr, vap, sizep, actionp, is_64bit)) != 0) 443 (error = getattrlist_parsetab(getattrlist_dir_tab, alp->dirattr, vap, sizep, actionp, is_64bit)) != 0) 446 (error = getattrlist_parsetab(getattrlist_file_tab, alp->fileattr, vap, sizep, actionp, is_64bit)) != 0)
|
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/ |
H A D | hfs_vnops.c | 81 struct componentname *cnp, struct vnode_attr *vap, 186 struct vnode_attr *vap = ap->a_vap; local 197 error = hfs_makenode(dvp, vpp, ap->a_cnp, vap, ap->a_context); 206 if ((vap->va_rdev != VNOVAL) && 207 (vap->va_type == VBLK || vap->va_type == VCHR)) 208 cp->c_rdev = vap->va_rdev; 391 struct vnode_attr *vap = ap->a_vap; local 406 if ((vap->va_active & ~VNODE_ATTR_AUTH) == 0) { 411 vap 719 struct vnode_attr *vap = ap->a_vap; local 3470 hfs_makenode(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp, struct vnode_attr *vap, vfs_context_t ctx) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/isofs/cd9660/ |
H A D | cd9660_vnops.c | 137 register struct vnode_attr *vap = ap->a_vap; local 140 VATTR_RETURN(vap, va_fsid, ip->i_dev); 141 VATTR_RETURN(vap, va_fileid, ip->i_number); 143 VATTR_RETURN(vap, va_mode, ip->inode.iso_mode); 144 VATTR_RETURN(vap, va_nlink, ip->inode.iso_links); 145 VATTR_RETURN(vap, va_uid, ip->inode.iso_uid); 146 VATTR_RETURN(vap, va_gid, ip->inode.iso_gid); 147 VATTR_RETURN(vap, va_access_time, ip->inode.iso_atime); 148 VATTR_RETURN(vap, va_modify_time, ip->inode.iso_mtime); 149 VATTR_RETURN(vap, va_change_tim [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/ |
H A D | union_subr.c | 918 struct vnode_attr *vap; local 925 vap = &vattr; 926 VATTR_INIT(vap); 927 VATTR_WANTED(vap, va_flags); 928 if (vnode_getattr(lvp, vap, context) == 0 ) 995 VATTR_INIT(vap); 996 VATTR_SET(vap, va_type, VREG); 997 VATTR_SET(vap, va_mode, cmode); 1000 if ((error = vn_create(udvp, &uvp, &cn, vap, 0, context)) != 0) { 1231 struct vnode_attr *vap local [all...] |
H A D | union_vnops.c | 699 struct vnode_attr *vap; local 712 vap = ap->a_vap; 725 error = vnode_getattr(vp, vap, ap->a_context); 730 union_newsize(ap->a_vp, vap->va_data_size, VNOVAL); 741 vap = &va; 747 error = vnode_getattr(vp, vap, ap->a_context); 752 union_newsize(ap->a_vp, VNOVAL, vap->va_data_size); 756 if ((vap != ap->a_vap) && (vap->va_type == VDIR)) 757 ap->a_vap->va_nlink += vap [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kern_exec.c | 2427 struct vnode_attr *vap = imgp->ip_vattr; local 2437 VATTR_INIT(vap); 2438 VATTR_WANTED(vap, va_uid); 2439 VATTR_WANTED(vap, va_gid); 2440 VATTR_WANTED(vap, va_mode); 2441 VATTR_WANTED(vap, va_fsid); 2442 VATTR_WANTED(vap, va_fileid); 2443 VATTR_WANTED(vap, va_data_size); 2444 if ((error = vnode_getattr(vp, vap, imgp->ip_vfs_context)) != 0) 2452 if ((vap [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/nullfs/ |
H A D | null_vnops.c | 401 struct vnode_attr *vap = ap->a_vap; local 403 if (VATTR_IS_ACTIVE(vap, va_data_size)) {
|
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | vnode.h | 554 int vnode_getattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx); 555 int vnode_setattr(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx);
|
H A D | vnode_internal.h | 435 int vnode_setattr_fallback(vnode_t vp, struct vnode_attr *vap, vfs_context_t ctx);
|
/macosx-10.5.8/xnu-1228.15.4/security/ |
H A D | mac_vfs.c | 505 struct componentname *cnp, struct vnode_attr *vap) 515 MAC_CHECK(vnode_check_create, cred, dvp, dvp->v_label, cnp, vap); 504 mac_vnode_check_create(vfs_context_t ctx, struct vnode *dvp, struct componentname *cnp, struct vnode_attr *vap) argument
|
H A D | mac_framework.h | 436 struct componentname *cnp, struct vnode_attr *vap);
|
H A D | mac_policy.h | 4651 @param vap vnode attributes for vap 4668 struct vnode_attr *vap
|