| /onnv-gate/usr/src/lib/libc/port/threads/ |
| H A D | spawn.c | 189 perform_file_actions(file_attr_t *fap, void *dirbuf) in perform_file_actions() argument 191 file_attr_t *froot = fap; in perform_file_actions() 195 switch (fap->fa_type) { in perform_file_actions() 197 fd = __open(fap->fa_path, fap->fa_oflag, fap->fa_mode); in perform_file_actions() 200 if (fd != fap->fa_filedes) { in perform_file_actions() 201 if (__fcntl(fd, F_DUP2FD, fap->fa_filedes) < 0) in perform_file_actions() 207 if (__close(fap->fa_filedes) == -1 && in perform_file_actions() 212 fd = __fcntl(fap->fa_filedes, F_DUP2FD, in perform_file_actions() 213 fap->fa_newfiledes); in perform_file_actions() 218 if (spawn_closefrom(fap->fa_filedes, dirbuf)) in perform_file_actions() [all …]
|
| /onnv-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
| H A D | smbfs_client.c | 152 struct smbfattr *fap) in smbfs_cache_check() argument 166 if (np->r_attr.fa_mtime.tv_sec != fap->fa_mtime.tv_sec || in smbfs_cache_check() 167 np->r_attr.fa_mtime.tv_nsec != fap->fa_mtime.tv_nsec) in smbfs_cache_check() 169 if (np->r_attr.fa_size != fap->fa_size) in smbfs_cache_check() 172 if (np->r_attr.fa_ctime.tv_sec != fap->fa_ctime.tv_sec || in smbfs_cache_check() 173 np->r_attr.fa_ctime.tv_nsec != fap->fa_ctime.tv_nsec) in smbfs_cache_check() 210 smbfs_attrcache_fa(vnode_t *vp, struct smbfattr *fap) in smbfs_attrcache_fa() argument 226 if (fap->fa_attr & SMB_FA_DIR) { in smbfs_attrcache_fa() 252 if (fap->fa_mtime.tv_sec != np->r_attr.fa_mtime.tv_sec || in smbfs_attrcache_fa() 253 fap->fa_mtime.tv_nsec != np->r_attr.fa_mtime.tv_nsec || in smbfs_attrcache_fa() [all …]
|
| H A D | smbfs_subr.h | 164 int smbfs_smb_getfattr(struct smbnode *np, struct smbfattr *fap, 173 uint16_t *fidp, uint32_t *rightsp, struct smbfattr *fap); 201 struct smbfattr *fap, struct smb_cred *scrp); 247 void smbfs_attrcache_fa(vnode_t *vp, struct smbfattr *fap); 248 void smbfs_cache_check(struct vnode *vp, struct smbfattr *fap); 263 char sep, struct smbfattr *fap); 266 struct smbfattr *fap, vnode_t **vpp); 289 int smbfs_xa_getfattr(struct smbnode *np, struct smbfattr *fap,
|
| H A D | smbfs_node.c | 159 struct smbfattr *fap, vnode_t **vpp) in smbfs_nget() argument 166 ASSERT(fap != NULL); in smbfs_nget() 179 name, nmlen, sep, fap); in smbfs_nget()
|
| H A D | smbfs_smb.c | 70 struct smbfattr *fap, struct smb_cred *scrp); 71 int smbfs_smb_trans2_query(struct smbnode *np, struct smbfattr *fap, 193 struct smbfattr *fap, in smbfs_smb_getfattr() argument 208 error = smbfs_xa_getfattr(np, fap, scrp); in smbfs_smb_getfattr() 212 error = smbfs_smb_trans2_query(np, fap, scrp, 0); in smbfs_smb_getfattr() 217 error = smbfs_smb_query_info(np, NULL, 0, fap, scrp); in smbfs_smb_getfattr() 226 smbfs_smb_trans2_query(struct smbnode *np, struct smbfattr *fap, in smbfs_smb_trans2_query() argument 302 smb_dos2unixtime(date, time, 0, svtz, &fap->fa_createtime); in smbfs_smb_trans2_query() 305 smb_dos2unixtime(date, time, 0, svtz, &fap->fa_atime); in smbfs_smb_trans2_query() 308 smb_dos2unixtime(date, time, 0, svtz, &fap->fa_mtime); in smbfs_smb_trans2_query() [all …]
|
| H A D | smbfs_xattr.c | 242 smbfs_xa_getfattr(struct smbnode *xnp, struct smbfattr *fap, in smbfs_xa_getfattr() argument 259 fap->fa_attr = SMB_FA_DIR; in smbfs_xa_getfattr() 260 fap->fa_size = DEV_BSIZE; in smbfs_xa_getfattr() 282 error = smbfs_smb_lookup(pnp, &name, &nlen, fap, scrp); in smbfs_xa_getfattr()
|
| H A D | smbfs_subr2.c | 214 struct smbfattr *fap) in smbfs_node_findcreate() argument 255 if (fap == NULL) in smbfs_node_findcreate() 264 if (fap == NULL) { in smbfs_node_findcreate() 278 if (fap == &smbfs_fattr0) in smbfs_node_findcreate() 291 smbfs_cache_check(vp, fap); in smbfs_node_findcreate() 293 smbfs_attrcache_fa(vp, fap); in smbfs_node_findcreate()
|
| /onnv-gate/usr/src/uts/common/io/chxge/ |
| H A D | pe.c | 1648 fake_arp_t *fap; in pe_make_fake_arp() local 1666 fap = (fake_arp_t *)&bp->b_rptr[SZ_CPL_TX_PKT]; in pe_make_fake_arp() 1668 bcopy(arpp, fap, sizeof (*fap)); /* copy first arp to mblk */ in pe_make_fake_arp() 1670 bcopy(buf, fap->fa_dst, 6); /* overwrite dst mac */ in pe_make_fake_arp() 1671 chp->ch_ip = fap->fa_src_ip; /* not used yet */ in pe_make_fake_arp() 1672 bcopy(buf, fap->fa_dst_mac, 6); /* overwrite dst mac */ in pe_make_fake_arp() 1699 fake_arp_t fap; in pe_get_ip() local 1705 bcopy(arpp, &fap, sizeof (fap)); /* copy first arp to buffer */ in pe_get_ip() 1706 return (fap.fa_src_ip); in pe_get_ip()
|
| /onnv-gate/usr/src/uts/common/fs/nfs/ |
| H A D | nfs4_callback.c | 180 struct fattr4 *fap; in cb_getattr() local 302 fap = &resp->obj_attributes; in cb_getattr() 304 fap->attrmask = 0; in cb_getattr() 306 fap->attrlist4 = (char *)fdata; in cb_getattr() 307 fap->attrlist4_len = 0; in cb_getattr() 347 fap->attrlist4_len += 2 * BYTES_PER_XDR_UNIT; in cb_getattr() 348 fap->attrmask |= FATTR4_CHANGE_MASK; in cb_getattr() 365 fap->attrlist4_len += 2 * BYTES_PER_XDR_UNIT; in cb_getattr() 366 fap->attrmask |= FATTR4_SIZE_MASK; in cb_getattr()
|
| H A D | nfs3_srv.c | 4584 vattr_to_fattr3(struct vattr *vap, fattr3 *fap) in vattr_to_fattr3() argument 4592 fap->type = vt_to_nf3[vap->va_type]; in vattr_to_fattr3() 4593 fap->mode = (mode3)(vap->va_mode & MODEMASK); in vattr_to_fattr3() 4594 fap->nlink = (uint32)vap->va_nlink; in vattr_to_fattr3() 4596 fap->uid = (uid3)NFS_UID_NOBODY; in vattr_to_fattr3() 4598 fap->uid = (uid3)vap->va_uid; in vattr_to_fattr3() 4600 fap->gid = (gid3)NFS_GID_NOBODY; in vattr_to_fattr3() 4602 fap->gid = (gid3)vap->va_gid; in vattr_to_fattr3() 4603 fap->size = (size3)vap->va_size; in vattr_to_fattr3() 4604 fap->used = (size3)DEV_BSIZE * (size3)vap->va_nblocks; in vattr_to_fattr3() [all …]
|
| /onnv-gate/usr/src/cmd/oawk/ |
| H A D | b.c | 114 struct fa *fap; local 126 fap = cgotofn(); 128 return (fap);
|
| /onnv-gate/usr/src/uts/common/vm/ |
| H A D | seg_vn.c | 5197 struct anon *fap = NULL; in segvn_fault() local 5219 fap = NULL; in segvn_fault() 5225 fap = anon_get_ptr(amp->ahp, in segvn_fault() 5227 if (fap != NULL) { in segvn_fault() 5228 swap_xlate(fap, &fvp, &fpgoff); in segvn_fault()
|