/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | spawn.c | 212 perform_file_actions(file_attr_t *fap, void *dirbuf) in perform_file_actions() argument 214 file_attr_t *froot = fap; in perform_file_actions() 218 switch (fap->fa_type) { in perform_file_actions() 220 fd = __open(fap->fa_path, fap->fa_oflag, fap->fa_mode); in perform_file_actions() 223 if (fd != fap->fa_filedes) { in perform_file_actions() 224 if (__fcntl(fd, F_DUP2FD, fap->fa_filedes) < 0) in perform_file_actions() 230 if (chdir(fap->fa_path) == -1) in perform_file_actions() 234 if (__close(fap->fa_filedes) == -1 && in perform_file_actions() 239 fd = __fcntl(fap->fa_filedes, F_DUP2FD, in perform_file_actions() 240 fap->fa_newfiledes); in perform_file_actions() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_client.c | 212 struct smbfattr *fap, in smbfs_cache_check() argument 227 if (np->r_attr.fa_mtime.tv_sec != fap->fa_mtime.tv_sec || in smbfs_cache_check() 228 np->r_attr.fa_mtime.tv_nsec != fap->fa_mtime.tv_nsec) in smbfs_cache_check() 230 if (np->r_attr.fa_size != fap->fa_size) in smbfs_cache_check() 233 if (np->r_attr.fa_ctime.tv_sec != fap->fa_ctime.tv_sec || in smbfs_cache_check() 234 np->r_attr.fa_ctime.tv_nsec != fap->fa_ctime.tv_nsec) in smbfs_cache_check() 254 smbfs_attrcache_fa(vnode_t *vp, struct smbfattr *fap) in smbfs_attrcache_fa() argument 270 if (fap->fa_attr & SMB_FA_DIR) { in smbfs_attrcache_fa() 296 if (fap->fa_mtime.tv_sec != np->r_attr.fa_mtime.tv_sec || in smbfs_attrcache_fa() 297 fap->fa_mtime.tv_nsec != np->r_attr.fa_mtime.tv_nsec || in smbfs_attrcache_fa() [all …]
|
H A D | smbfs_subr.h | 178 struct smbfattr *fap, struct smb_cred *scrp); 179 int smbfs_smb_getpattr(struct smbnode *np, struct smbfattr *fap, 199 smb_fh_t *fhpp, uint32_t *cr_act_p, struct smbfattr *fap); 206 smb_fh_t **fidpp, struct smbfattr *fap); 223 struct smbfattr *fap, struct smb_cred *scrp); 236 struct smbfattr *fap, struct smb_cred *scrp); 272 int smbfs_smb2_getpattr(struct smbnode *np, struct smbfattr *fap, 275 struct smbfattr *fap, struct smb_cred *scrp); 313 struct mdchain *mdp, struct smbfattr *fap); 353 void smbfs_attrcache_fa(vnode_t *vp, struct smbfattr *fap); [all …]
|
H A D | smbfs_subr.c | 351 struct mdchain *mdp, struct smbfattr *fap) in smbfs_decode_file_all_info() argument 363 smb_time_NT2local(llongint, &fap->fa_createtime); in smbfs_decode_file_all_info() 367 smb_time_NT2local(llongint, &fap->fa_atime); in smbfs_decode_file_all_info() 371 smb_time_NT2local(llongint, &fap->fa_mtime); in smbfs_decode_file_all_info() 375 smb_time_NT2local(llongint, &fap->fa_ctime); in smbfs_decode_file_all_info() 379 fap->fa_attr = dattr; in smbfs_decode_file_all_info() 390 fap->fa_allocsz = lsize; in smbfs_decode_file_all_info() 394 fap->fa_size = lsize; in smbfs_decode_file_all_info()
|
H A D | smbfs_smb.c | 75 struct smbfattr *fap, in smbfs_smb_getfattr() argument 82 error = smbfs_smb2_qfileinfo(ssp, &fhp->fh_fid2, fap, scrp); in smbfs_smb_getfattr() 84 error = smbfs_smb1_trans2_query(np, fhp->fh_fid1, fap, scrp); in smbfs_smb_getfattr() 101 struct smbfattr *fap, in smbfs_smb_getpattr() argument 108 error = smbfs_smb2_getpattr(np, fap, scrp); in smbfs_smb_getpattr() 111 error = smbfs_smb1_trans2_query(np, fid, fap, scrp); in smbfs_smb_getpattr() 311 struct smbfattr *fap) /* optional returned attributes */ in smbfs_smb_ntcreatex() argument 330 scrp, fhp, cr_act_p, fap); in smbfs_smb_ntcreatex() 411 smbfattr_t *fap) in smbfs_smb_open() argument 429 scrp, fhp, NULL, fap); in smbfs_smb_open() [all …]
|
H A D | smbfs_node.c | 162 struct smbfattr *fap, vnode_t **vpp) in smbfs_nget() argument 169 ASSERT(fap != NULL); in smbfs_nget() 182 name, nmlen, sep, fap); in smbfs_nget()
|
H A D | smbfs_xattr.c | 246 smbfs_xa_getfattr(struct smbnode *xnp, struct smbfattr *fap, in smbfs_xa_getfattr() argument 263 fap->fa_attr = SMB_FA_DIR; in smbfs_xa_getfattr() 264 fap->fa_size = DEV_BSIZE; in smbfs_xa_getfattr() 286 error = smbfs_smb_lookup(pnp, &name, &nlen, fap, scrp); in smbfs_xa_getfattr()
|
H A D | smbfs_subr2.c | 228 struct smbfattr *fap) in smbfs_node_findcreate() argument 269 if (fap == NULL) in smbfs_node_findcreate() 278 if (fap == NULL) { in smbfs_node_findcreate() 292 if (fap == &smbfs_fattr0) in smbfs_node_findcreate() 300 smbfs_attrcache_fa(vp, fap); in smbfs_node_findcreate()
|
H A D | smbfs_smb2.c | 89 struct smbfattr *fap, in smbfs_smb2_getpattr() argument 106 NULL, fap); in smbfs_smb2_getpattr() 208 struct smbfattr *fap, struct smb_cred *scrp) in smbfs_smb2_qfileinfo() argument 221 error = smbfs_decode_file_all_info(ssp, mdp, fap); in smbfs_smb2_qfileinfo()
|
H A D | smbfs_smb1.c | 138 struct smbfattr *fap, struct smb_cred *scrp) in smbfs_smb1_trans2_query() argument 186 error = smbfs_decode_file_all_info(ssp, mdp, fap); in smbfs_smb1_trans2_query()
|
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | pe.c | 1646 fake_arp_t *fap; in pe_make_fake_arp() local 1664 fap = (fake_arp_t *)&bp->b_rptr[SZ_CPL_TX_PKT]; in pe_make_fake_arp() 1666 bcopy(arpp, fap, sizeof (*fap)); /* copy first arp to mblk */ in pe_make_fake_arp() 1668 bcopy(buf, fap->fa_dst, 6); /* overwrite dst mac */ in pe_make_fake_arp() 1669 chp->ch_ip = fap->fa_src_ip; /* not used yet */ in pe_make_fake_arp() 1670 bcopy(buf, fap->fa_dst_mac, 6); /* overwrite dst mac */ in pe_make_fake_arp() 1697 fake_arp_t fap; in pe_get_ip() local 1703 bcopy(arpp, &fap, sizeof (fap)); /* copy first arp to buffer */ in pe_get_ip() 1704 return (fap.fa_src_ip); in pe_get_ip()
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_subr.h | 161 uint32_t *cr_act_p, struct smbfattr *fap); 206 uint32_t *cr_act_p, struct smbfattr *fap); 239 uint32_t *cr_act_p, struct smbfattr *fap);
|
H A D | smb_smb.c | 887 struct smbfattr *fap) /* optional attributes */ in smb1_smb_ntcreate() argument 990 if (fap) in smb1_smb_ntcreate() 991 *fap = fa; /* struct copy */ in smb1_smb_ntcreate()
|
H A D | smb2_smb.c | 823 struct smbfattr *fap) /* optional attributes */ in smb2_smb_ntcreate() argument 995 if (fap) in smb2_smb_ntcreate() 996 *fap = fa; /* struct copy */ in smb2_smb_ntcreate()
|
H A D | smb_subrs.c | 1188 uint32_t *cr_act_p, struct smbfattr *fap) in smb_smb_ntcreate() argument 1195 impersonate, scrp, &fhp->fh_fid2, cr_act_p, fap); in smb_smb_ntcreate() 1199 &fhp->fh_fid1, cr_act_p, fap); in smb_smb_ntcreate()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs3_srv.c | 4298 vattr_to_fattr3(struct vattr *vap, fattr3 *fap) in vattr_to_fattr3() argument 4306 fap->type = vt_to_nf3[vap->va_type]; in vattr_to_fattr3() 4307 fap->mode = (mode3)(vap->va_mode & MODEMASK); in vattr_to_fattr3() 4308 fap->nlink = (uint32)vap->va_nlink; in vattr_to_fattr3() 4310 fap->uid = (uid3)NFS_UID_NOBODY; in vattr_to_fattr3() 4312 fap->uid = (uid3)vap->va_uid; in vattr_to_fattr3() 4314 fap->gid = (gid3)NFS_GID_NOBODY; in vattr_to_fattr3() 4316 fap->gid = (gid3)vap->va_gid; in vattr_to_fattr3() 4317 fap->size = (size3)vap->va_size; in vattr_to_fattr3() 4318 fap->used = (size3)DEV_BSIZE * (size3)vap->va_nblocks; in vattr_to_fattr3() [all …]
|
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()
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | b.c | 112 struct fa *fap; local 124 fap = cgotofn(); 126 return (fap);
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_vn.c | 5249 struct anon *fap = NULL; in segvn_fault() local 5271 fap = NULL; in segvn_fault() 5277 fap = anon_get_ptr(amp->ahp, in segvn_fault() 5279 if (fap != NULL) { in segvn_fault() 5280 swap_xlate(fap, &fvp, &fpgoff); in segvn_fault()
|