/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/ |
H A D | parsenfsfh.c | 127 register const unsigned char *fhp = fh; local 163 else if ((fhp[0] == 0) && (fhp[1] == 0)) { 166 if ((fhp[2] == 0) && (fhp[3] == 0)) { 176 if ((fhp[4] != 0) && (fhp[5] == 0) && 177 (fhp[8] == 12) && (fhp[9] == 0)) { 183 /* XXX the test of fhp[ [all...] |
/netbsd-6-1-5-RELEASE/lib/libc/compat/sys/ |
H A D | compat_fhstatvfs.c | 51 int _fhstatvfs(const struct compat_30_fhandle *fhp, struct statvfs *buf); 52 int __fhstatvfs140(const void *fhp, size_t fh_size, struct statvfs *buf, 59 _fhstatvfs(const struct compat_30_fhandle *fhp, struct statvfs *buf) 61 return __fhstatvfs140(fhp, FHANDLE30_SIZE, buf, ST_WAIT);
|
H A D | compat_fhstatvfs1.c | 47 int fhstatvfs1(const struct compat_30_fhandle *fhp, struct statvfs *buf, 49 int __fhstatvfs140(const void *fhp, size_t fh_size, struct statvfs *buf, 56 fhstatvfs1(const struct compat_30_fhandle *fhp, struct statvfs *buf, int flags) argument 58 return __fhstatvfs140(fhp, FHANDLE30_SIZE, buf, flags);
|
H A D | compat_getfh.c | 51 int getfh(const char *path, struct compat_30_fhandle *fhp); 57 getfh(const char *path, struct compat_30_fhandle *fhp) argument 59 size_t fh_size = sizeof(*fhp); 62 ret = __getfh30(path, (void*)fhp, &fh_size);
|
H A D | compat___fhstat30.c | 52 __fhstat30(const struct compat_30_fhandle *fhp, struct stat30 *sb) argument 54 return __fhstat40(fhp, FHANDLE30_SIZE, sb);
|
H A D | compat_fhopen.c | 55 fhopen(const struct compat_30_fhandle *fhp, int flags) argument 57 return __fhopen40(fhp, FHANDLE30_SIZE, flags);
|
/netbsd-6-1-5-RELEASE/tests/fs/vfs/ |
H A D | t_vfsops.c | 80 void *fhp; local 105 fhp = malloc(fhsize); 106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1) 110 fd = rump_sys_fhopen(fhp, fhsize, O_RDONLY); 129 void *fhp; local 145 fhp = malloc(fhsize); 146 RL(rump_sys_getfh(FNAME, fhp, &fhsize)); 152 ATF_REQUIRE_ERRNO(ESTALE, rump_sys_fhopen(fhp, fhsize, O_RDONLY) == -1); 167 void *fhp; local 184 fhp [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/tcpdrop/ |
H A D | tcpdrop.c | 110 struct hpinfo fhp, lhp; local 131 egetnameinfo(aif, &fhp); 158 lhp.host, lhp.serv, fhp.host, fhp.serv); 161 lhp.host, lhp.serv, fhp.host, fhp.serv);
|
/netbsd-6-1-5-RELEASE/sys/fs/msdosfs/ |
H A D | msdosfs_denode.c | 105 const struct fh_key * const fhp = key; local 108 if (pnp->fh_mount != fhp->fhk_mount) 109 return (intptr_t)pnp->fh_mount - (intptr_t)fhp->fhk_mount; 110 if (pnp->fh_dircluster != fhp->fhk_dircluster) 111 return pnp->fh_dircluster - fhp->fhk_dircluster; 112 return pnp->fh_diroffset - fhp->fhk_diroffset; 791 struct fh_node *fhp; local 798 fhp = rb_tree_find_node(&fh_rbtree, &fhkey); 799 if (fhp == NULL) { 801 fhp 817 struct fh_node *fhp; local 840 struct fh_node *fhp; local 861 struct fh_node *fhp, *nfhp; local [all...] |
/netbsd-6-1-5-RELEASE/lib/libc/sys/ |
H A D | statvfs.c | 57 int __fhstatvfs140(const void *fhp, size_t fh_size, struct statvfs *buf,
|
/netbsd-6-1-5-RELEASE/dist/smbfs/lib/smb/ |
H A D | print.c | 61 const char *ident, smbfh *fhp) 79 mb_get_uint16(mbp, fhp); 60 smb_smb_open_print_file(struct smb_ctx *ctx, int setuplen, int mode, const char *ident, smbfh *fhp) argument
|
/netbsd-6-1-5-RELEASE/sys/compat/netbsd32/ |
H A D | netbsd32_compat_30.c | 160 syscallarg(const netbsd32_fhandlep_t) fhp; 177 if ((error = copyin(SCARG_P32(uap, fhp), &fh, sizeof(fh))) != 0) 199 syscallarg(const netbsd32_fhandlep_t) fhp; 208 error = do_fhstatvfs(l, SCARG_P32(uap, fhp), FHANDLE_SIZE_COMPAT, sbuf, 243 syscallarg(netbsd32_compat_30_fhandlep_t) fhp; 248 NETBSD32TOP_UAP(fhp, struct compat_30_fhandle); 258 syscallarg(const netbsd32_fhandlep_t) fhp; 265 error = do_fhstat(l, SCARG_P32(uap, fhp), FHANDLE_SIZE_COMPAT, &sb); 284 syscallarg(const fhandle_t *) fhp; 289 NETBSD32TOP_UAP(fhp, struc [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/amd/ |
H A D | amfs_host.c | 178 do_mount(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf) argument 190 return mount_nfs_fh(fhp, mntdir, fs_name, mf); 208 fetch_fhandle(CLIENT *client, char *dir, am_nfs_handle_t *fhp, u_long nfs_version) argument 250 memset((voidp) &fhp->v3, 0, sizeof(am_nfs_fh3)); 251 fhp->v3.am_fh3_length = res3.mountres3_u.mountinfo.fhandle.fhandle3_len; 252 memmove(fhp->v3.am_fh3_data, 254 fhp->v3.am_fh3_length); 274 memmove(&fhp->v2, &res.fhs_fh, NFS_FHSIZE);
|
H A D | nfs_subr.c | 86 static am_node *fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop); 87 static am_node *fh_to_mp(am_nfs_fh *fhp); 635 fh_to_mp3(am_nfs_fh *fhp, int *rp, int vop) argument 637 struct am_fh *fp = (struct am_fh *) fhp; 642 int len = sizeof(*fhp) - sizeof(fp->fhh_gen); 645 * Because fhp is treated as a filehandle we use memcpy 780 fh_to_mp(am_nfs_fh *fhp) argument 784 return fh_to_mp3(fhp, &dummy, VLOOK_CREATE); 792 mp_to_fh(am_node *mp, am_nfs_fh *fhp) argument 795 struct am_fh *fp = (struct am_fh *) fhp; [all...] |
H A D | autil.c | 538 am_nfs_fh *fhp; local 548 fhp = get_root_nfs_fh(dir); 549 if (!fhp) { 572 memmove(&anh.v2, fhp, sizeof(*fhp));
|
/netbsd-6-1-5-RELEASE/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 273 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, vnode_t **vpp) argument 279 if (fhp->fid_len != sizeof(tmpfs_fid_t)) { 282 memcpy(&tfh, fhp, sizeof(tmpfs_fid_t)); 302 tmpfs_vptofh(vnode_t *vp, struct fid *fhp, size_t *fh_size) argument 318 memcpy(fhp, &tfh, sizeof(tfh));
|
/netbsd-6-1-5-RELEASE/sys/nfs/ |
H A D | nfs_srvsubs.c | 297 fhandle_t *fhp; local 299 fhp = NFSRVFH_FHANDLE(nsfh); 305 fhp = nfs_pub.np_handle; 308 error = netexport_check(&fhp->fh_fsid, nam, &mp, &exflags, &credanon); 313 error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp);
|
H A D | nfs_node.c | 160 nfs_nget1(struct mount *mntp, nfsfh_t *fhp, int fhsize, struct nfsnode **npp, argument 169 fhm.fhm_fhp = fhp; 206 memcpy(np->n_fhp, fhp, fhsize);
|
/netbsd-6-1-5-RELEASE/sys/compat/common/ |
H A D | vfs_syscalls_30.c | 137 syscallarg(const struct compat_30_fhandle *) fhp; 154 if ((error = copyin(SCARG(uap, fhp), &fh, sizeof(fh))) != 0) 336 syscallarg(struct compat_30_fhandle *) fhp; 370 error = copyout(&fh, SCARG(uap, fhp), sizeof(struct compat_30_fhandle)); 384 syscallarg(const fhandle_t *) fhp; 388 return dofhopen(l, SCARG(uap, fhp), FHANDLE_SIZE_COMPAT, 397 syscallarg(const fhandle_t *) fhp; 404 error = do_fhstat(l, SCARG(uap_30, fhp), FHANDLE_SIZE_COMPAT, &sb); 417 syscallarg(const fhandle_t *) fhp; 423 SCARG(&uap, fhp) [all...] |
/netbsd-6-1-5-RELEASE/sys/fs/efs/ |
H A D | efs_vfsops.c | 476 efs_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp) argument 483 if (fhp->fid_len != sizeof(struct efs_fid)) 486 efp = (struct efs_fid *)fhp; 510 efs_vptofh(struct vnode *vp, struct fid *fhp, size_t *fh_size) argument 522 efp = (struct efs_fid *)fhp; 524 fhp->fid_len = sizeof(struct efs_fid);
|
/netbsd-6-1-5-RELEASE/sys/miscfs/genfs/ |
H A D | layer_vfsops.c | 235 layerfs_vptofh(struct vnode *vp, struct fid *fhp, size_t *fh_size) argument 238 return VFS_VPTOFH(LAYERVPTOLOWERVP(vp), fhp, fh_size);
|
/netbsd-6-1-5-RELEASE/sys/fs/puffs/ |
H A D | puffs_vfsops.c | 621 puffs_vfsop_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp) argument 634 fhlen = fhp->fid_len; 635 fhdata = fhp; 637 fhlen = PUFFS_FROMFHSIZE(fhp->fid_len); 638 fhdata = fhp->fid_data; 681 puffs_vfsop_vptofh(struct vnode *vp, struct fid *fhp, size_t *fh_size) argument 740 if (fhp) { 742 memcpy(fhp, nodetofh_msg->pvfsr_data, fhlen); 744 fhp->fid_len = *fh_size; 745 memcpy(fhp [all...] |
/netbsd-6-1-5-RELEASE/sys/kern/ |
H A D | vfs_syscalls.c | 1584 vfs__fhfree(fhandle_t *fhp) argument 1588 if (fhp == NULL) { 1591 fhsize = FHANDLE_SIZE(fhp); 1592 kmem_free(fhp, fhsize); 1600 vfs_composefh(struct vnode *vp, fhandle_t *fhp, size_t *fh_size) argument 1614 if (fhp != NULL) { 1615 memset(fhp, 0, *fh_size); 1616 fhp->fh_fsid = mp->mnt_stat.f_fsidx; 1617 fidp = &fhp->fh_fid; 1633 fhandle_t *fhp; local 1666 vfs_composefh_free(fhandle_t *fhp) argument 1677 vfs_fhtovp(fhandle_t *fhp, struct vnode **vpp) argument 1705 fhandle_t *fhp; local 1748 vfs_copyinfh_free(fhandle_t *fhp) argument [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/libamu/ |
H A D | mount_fs.c | 482 * fhp: file handle structure pointer 494 am_nfs_handle_t *fhp, 516 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3.am_fh3_data); 518 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v3); 528 NFS_FH_DREF(nap->NFS_FH_FIELD, &fhp->v2); 533 nap->fhsize = fhp->v3.am_fh3_length; 543 nap->fh_len = fhp->v3.am_fh3_length; 487 compute_nfs_args(nfs_args_t *nap, mntent_t *mntp, int genflags, struct netconfig *nfsncp, struct sockaddr_in *ip_addr, u_long nfs_version, char *nfs_proto, am_nfs_handle_t *fhp, char *host_name, char *fs_name) argument
|
/netbsd-6-1-5-RELEASE/usr.sbin/repquota/ |
H A D | repquota.c | 503 struct fileusage *fup, **fhp; local 535 fhp = &fuhead[idtype][id & (FUHASH - 1)]; 536 fup->fu_next = *fhp; 537 *fhp = fup;
|