Home
last modified time | relevance | path

Searched refs:fh2 (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/sys/nfs/
H A Dnfs_srvsubs.c418 nfsrv_comparefh(const nfsrvfh_t *fh1, const nfsrvfh_t *fh2) in nfsrv_comparefh() argument
421 if (NFSRVFH_SIZE(fh1) != NFSRVFH_SIZE(fh2)) { in nfsrv_comparefh()
422 return NFSRVFH_SIZE(fh2) - NFSRVFH_SIZE(fh1); in nfsrv_comparefh()
424 return memcmp(NFSRVFH_DATA(fh1), NFSRVFH_DATA(fh2), NFSRVFH_SIZE(fh1)); in nfsrv_comparefh()
428 nfsrv_copyfh(nfsrvfh_t *fh1, const nfsrvfh_t *fh2) in nfsrv_copyfh() argument
432 fh1->nsfh_size = size = NFSRVFH_SIZE(fh2); in nfsrv_copyfh()
433 memcpy(NFSRVFH_DATA(fh1), NFSRVFH_DATA(fh2), size); in nfsrv_copyfh()
/netbsd-src/external/bsd/atf/dist/tools/
H A Dio_test.cpp144 file_handle fh2(STDOUT_FILENO); in ATF_TEST_CASE_BODY() local
145 ATF_REQUIRE(fh2.is_valid()); in ATF_TEST_CASE_BODY()
146 fh2.disown(); in ATF_TEST_CASE_BODY()
159 file_handle fh2(STDOUT_FILENO); in ATF_TEST_CASE_BODY() local
161 file_handle fh3(fh2); in ATF_TEST_CASE_BODY()
162 ATF_REQUIRE(!fh2.is_valid()); in ATF_TEST_CASE_BODY()
/netbsd-src/external/bsd/am-utils/dist/hlfsd/
H A Dstubs.c100 eq_fh(const am_nfs_fh *fh1, const am_nfs_fh *fh2) in eq_fh() argument
102 return (!memcmp((char *) fh1, (char *) fh2, sizeof(am_nfs_fh))); in eq_fh()
/netbsd-src/usr.sbin/rpc.lockd/
H A Dlockd_lock.c59 fhcmp(const nfs_fhandle_t *fh1, const nfs_fhandle_t *fh2) in fhcmp() argument
61 return memcmp(fh1->fhdata, fh2->fhdata, MIN(fh1->fhsize, fh2->fhsize)); in fhcmp()