Home
last modified time | relevance | path

Searched refs:clnt (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-14.2/usr.sbin/rpc.lockd/
H A Dtest.c21 CLIENT *clnt;
36 CLIENT *clnt;
54 CLIENT *clnt;
69 CLIENT *clnt;
84 CLIENT *clnt;
99 CLIENT *clnt;
114 CLIENT *clnt;
130 CLIENT *clnt;
145 CLIENT *clnt;
160 CLIENT *clnt;
[all …]
/freebsd-14.2/sys/nlm/
H A Dnlm_prot_clnt.c21 return (CLNT_CALL_EXT(clnt, ext, NLM_SM_NOTIFY, in nlm_sm_notify_0()
30 return (CLNT_CALL_EXT(clnt, ext, NLM_TEST, in nlm_test_1()
39 return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK, in nlm_lock_1()
48 return (CLNT_CALL_EXT(clnt, ext, NLM_CANCEL, in nlm_cancel_1()
57 return (CLNT_CALL_EXT(clnt, ext, NLM_UNLOCK, in nlm_unlock_1()
66 return (CLNT_CALL_EXT(clnt, ext, NLM_GRANTED, in nlm_granted_1()
75 return (CLNT_CALL_EXT(clnt, ext, NLM_TEST_MSG, in nlm_test_msg_1()
84 return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK_MSG, in nlm_lock_msg_1()
165 return (CLNT_CALL_EXT(clnt, ext, NLM_SHARE, in nlm_share_3()
201 return (CLNT_CALL_EXT(clnt, ext, NLM4_TEST, in nlm4_test_4()
[all …]
/freebsd-14.2/contrib/lib9p/pytest/
H A Dclient.py60 clnt = pair[0]
62 clnt.connect()
75 clnt = pair[0]
88 clnt = pair[0]
100 return clnt
447 clnt = tc.ccs()
449 fid, qid = clnt.lookup(clnt.rootfid, [b''])
459 fid, qid = clnt.lookup(clnt.rootfid, [b'/'])
511 qid = clnt.mkdir(clnt.rootfid, b'dir', 0o777, tstate.gid)
513 qid, _ = clnt.create(clnt.rootfid, b'dir',
[all …]
/freebsd-14.2/libexec/ypxfr/
H A Dypxfr_misc.c150 CLIENT *clnt; in ypxfr_get_master() local
164 yp_error("%s",clnt_sperror(clnt,"YPPROC_MASTER \ in ypxfr_get_master()
166 clnt_destroy(clnt); in ypxfr_get_master()
170 clnt_destroy(clnt); in ypxfr_get_master()
215 CLIENT *clnt; in ypxfr_get_order() local
230 clnt_destroy(clnt); in ypxfr_get_order()
234 clnt_destroy(clnt); in ypxfr_get_order()
260 CLIENT *clnt; in ypxfr_match() local
277 clnt_destroy(clnt); in ypxfr_match()
279 clnt_sperror(clnt,"YPPROC_MATCH failed")); in ypxfr_match()
[all …]
H A Dypxfrd_getmap.c105 CLIENT *clnt; in ypxfrd_get_map() local
121 if ((clnt = clnt_create(host, YPXFRD_FREEBSD_PROG, in ypxfrd_get_map()
127 clnt_destroy(clnt); in ypxfrd_get_map()
132 if (clnt_call(clnt,YPXFRD_GETMAP, in ypxfrd_get_map()
136 yp_error("%s", clnt_sperror(clnt,"call to rpc.ypxfrd failed")); in ypxfrd_get_map()
141 clnt_destroy(clnt); in ypxfrd_get_map()
H A Dypxfr_getmap.c64 CLIENT *clnt; in ypxfr_get_map() local
73 if ((clnt = clnt_create(host, YPPROG, YPVERS, "tcp")) == NULL) { in ypxfr_get_map()
85 (void)clnt_call(clnt, YPPROC_ALL, (xdrproc_t)xdr_ypreq_nokey, &req, in ypxfr_get_map()
88 clnt_destroy(clnt); in ypxfr_get_map()
H A Dypxfr_main.c69 CLIENT *clnt; in ypxfr_exit() local
86 if ((clnt = clntudp_create(&ypxfr_callback_addr, ypxfr_prognum, in ypxfr_exit()
95 if (yppushproc_xfrresp_1(&ypxfr_resp, clnt) == NULL) { in ypxfr_exit()
96 yp_error("%s", clnt_sperror(clnt, "callback failed")); in ypxfr_exit()
97 clnt_destroy(clnt); in ypxfr_exit()
100 clnt_destroy(clnt); in ypxfr_exit()
/freebsd-14.2/usr.sbin/rpc.statd/
H A Dtest.c11 sm_stat_1(argp, clnt) in sm_stat_1() argument
13 CLIENT *clnt;
27 sm_mon_1(argp, clnt) in sm_mon_1() argument
29 CLIENT *clnt;
34 if (clnt_call(clnt, SM_MON, (xdrproc_t)xdr_mon, argp,
43 sm_unmon_1(argp, clnt) in sm_unmon_1() argument
45 CLIENT *clnt;
59 sm_unmon_all_1(argp, clnt) in sm_unmon_all_1() argument
61 CLIENT *clnt;
75 sm_simu_crash_1(argp, clnt) in sm_simu_crash_1() argument
[all …]
/freebsd-14.2/lib/libypclnt/
H A Dypclnt_passwd.c69 CLIENT *clnt = NULL; in ypclnt_havepasswdd() local
107 if (clnt != NULL) { in ypclnt_havepasswdd()
108 clnt_destroy(clnt); in ypclnt_havepasswdd()
143 CLIENT *clnt = NULL; in yppasswd_local() local
193 clnt_geterr(clnt, &rpcerr); in yppasswd_local()
215 if (clnt != NULL) { in yppasswd_local()
217 clnt_destroy(clnt); in yppasswd_local()
241 CLIENT *clnt = NULL; in yppasswd_remote() local
261 if (clnt == NULL) { in yppasswd_remote()
296 if (clnt != NULL) { in yppasswd_remote()
[all …]
/freebsd-14.2/usr.sbin/ypbind/
H A Dyp_ping.c157 if (clnt_call(clnt, YPPROC_DOMAIN_NONACK, in ypproc_domain_nonack_2_send()
176 if (clnt_call(clnt, YPPROC_DOMAIN_NONACK, in ypproc_domain_nonack_2_recv()
224 CLIENT *clnt; in __yp_ping() local
258 if (clnt == NULL) { in __yp_ping()
266 clnt->cl_auth = authunix_create_default(); in __yp_ping()
269 clnt_control(clnt, CLSET_TIMEOUT, (char *)&tv); in __yp_ping()
280 clnt_control(clnt, CLSET_SVC_ADDR, &addr); in __yp_ping()
281 ypproc_domain_nonack_2_send(&foo, clnt); in __yp_ping()
286 ypproc_domain_nonack_2_recv(&foo, clnt); in __yp_ping()
298 auth_destroy(clnt->cl_auth); in __yp_ping()
[all …]
/freebsd-14.2/lib/librpcsvc/
H A Dyp_update.c66 CLIENT *clnt; in yp_update() local
80 if ((clnt = clnt_create(master, YPU_PROG, YPU_VERS, "tcp")) == NULL) in yp_update()
94 clnt_destroy(clnt); in yp_update()
102 if ((clnt->cl_auth = (AUTH *)authdes_create(netname, WINDOW, NULL, in yp_update()
104 clnt_destroy(clnt); in yp_update()
129 if ((rval = clnt_call(clnt, YPU_CHANGE, in yp_update()
146 if ((rval = clnt_call(clnt, YPU_INSERT, in yp_update()
161 if ((rval = clnt_call(clnt, YPU_DELETE, in yp_update()
178 if ((rval = clnt_call(clnt, YPU_STORE, in yp_update()
194 auth_destroy(clnt->cl_auth); in yp_update()
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libc/rpc/
H A Dt_rpc.c66 CLIENT *clnt; in onehost() local
101 ERRX(, "clnt_call (%s)", clnt_sperror(clnt, "")); in onehost()
102 clnt_control(clnt, CLGET_SVC_ADDR, (char *) &addr); in onehost()
151 CLIENT *clnt; in rawtest() local
167 clnt = clnt_raw_create(PROGNUM, VERSNUM); in rawtest()
168 if (clnt == NULL) in rawtest()
176 clnt_destroy(clnt); in rawtest()
187 CLIENT *clnt; in regtest() local
218 clnt = clnt_create(hostname, PROGNUM, VERSNUM, transp); in regtest()
219 if (clnt == NULL) in regtest()
[all …]
/freebsd-14.2/lib/libc/rpc/
H A Dclnt_generic.c99 CLIENT *clnt; in clnt_create_vers_timed() local
105 if (clnt == NULL) { in clnt_create_vers_timed()
114 return (clnt); in clnt_create_vers_timed()
119 clnt_geterr(clnt, &rpcerr); in clnt_create_vers_timed()
137 return (clnt); in clnt_create_vers_timed()
140 clnt_geterr(clnt, &rpcerr); in clnt_create_vers_timed()
145 clnt_destroy(clnt); in clnt_create_vers_timed()
183 CLIENT *clnt = NULL; in clnt_create_timed() local
206 while (clnt == NULL) { in clnt_create_timed()
216 if (clnt) in clnt_create_timed()
[all …]
H A Dcrypt_client.c47 CLIENT *clnt; in _des_crypt_call() local
66 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf); in _des_crypt_call()
67 if (clnt == (CLIENT *) NULL) { in _des_crypt_call()
80 result_1 = des_crypt_1(&des_crypt_1_arg, clnt); in _des_crypt_call()
82 clnt_destroy(clnt); in _des_crypt_call()
94 clnt_freeres(clnt, (xdrproc_t)xdr_desresp, result_1); in _des_crypt_call()
95 clnt_destroy(clnt); in _des_crypt_call()
H A Dauth_time.c240 CLIENT *clnt; /* Client handle */ in __rpc_get_time_offset() local
339 clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0); in __rpc_get_time_offset()
340 if (clnt == NULL) { in __rpc_get_time_offset()
350 status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL, in __rpc_get_time_offset()
363 if (clnt != NULL) { in __rpc_get_time_offset()
364 clnt_destroy(clnt); in __rpc_get_time_offset()
365 clnt = NULL; in __rpc_get_time_offset()
469 if (clnt != NULL) in __rpc_get_time_offset()
470 clnt_destroy(clnt); in __rpc_get_time_offset()
H A Dkey_call.c418 CLIENT *clnt; in key_call() local
441 clnt = getkeyserv_handle(2); /* talk to version 2 */ in key_call()
443 clnt = getkeyserv_handle(1); /* talk to version 1 */ in key_call()
445 if (clnt == NULL) { in key_call()
452 if (clnt_call(clnt, proc, xdr_arg, arg, xdr_rslt, rslt, in key_call()
/freebsd-14.2/contrib/netbsd-tests/net/net/
H A Dt_unix.c144 int srvr = -1, clnt = -1, acpt = -1; in test() local
182 clnt = socket(AF_UNIX, SOCK_STREAM, 0); in test()
183 if (clnt == -1) in test()
186 if (connect(clnt, (const struct sockaddr *)sun, sl) == -1) in test()
190 if (close(clnt) == -1) in test()
192 clnt = -1; in test()
243 if (clnt != -1 && !closeit) in test()
244 (void)close(clnt); in test()
254 if (clnt != -1 && !closeit) in test()
255 (void)close(clnt); in test()
H A Dt_tcp.c76 int srvr = -1, clnt = -1, as = -1; in paccept_block() local
107 clnt = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in paccept_block()
108 if (clnt == -1) in paccept_block()
112 ok = connect(clnt, (struct sockaddr *) &ba, addrlen); in paccept_block()
116 ok = connect(clnt, (struct sockaddr *) &ba, addrlen); in paccept_block()
166 close(clnt); in paccept_block()
/freebsd-14.2/sys/rpc/
H A Drpcsec_gss.h151 typedef AUTH *rpc_gss_secfind_ftype(CLIENT *clnt, struct ucred *cred,
154 typedef void rpc_gss_secpurge_ftype(CLIENT *clnt);
223 ret = (*rpc_gss_entries.rpc_gss_secfind)(clnt, cred, principal, in rpc_gss_secfind_call()
229 rpc_gss_secpurge_call(CLIENT *clnt) in rpc_gss_secpurge_call() argument
233 (*rpc_gss_entries.rpc_gss_secpurge)(clnt); in rpc_gss_secpurge_call()
237 rpc_gss_seccreate_call(CLIENT *clnt, struct ucred *cred, in rpc_gss_seccreate_call() argument
245 ret = (*rpc_gss_entries.rpc_gss_seccreate)(clnt, cred, in rpc_gss_seccreate_call()
435 AUTH *rpc_gss_secfind(CLIENT *clnt, struct ucred *cred,
437 void rpc_gss_secpurge(CLIENT *clnt);
439 AUTH *rpc_gss_seccreate(CLIENT *clnt, struct ucred *cred,
[all …]
/freebsd-14.2/usr.sbin/bootparamd/callbootd/
H A Dcallbootd.c72 CLIENT *clnt = NULL; /* Silence warnings */ in main() local
87 clnt = clnt_create(server,BOOTPARAMPROG, BOOTPARAMVERS, "udp"); in main()
88 if ( clnt == NULL ) in main()
101 whoami_res = bootparamproc_whoami_1(&whoami_arg, clnt); in main()
124 getfile_res = bootparamproc_getfile_1(&getfile_arg,clnt); in main()
/freebsd-14.2/usr.sbin/yppush/
H A Dyppush_main.c285 CLIENT *clnt; in yppush_send_xfr() local
320 if ((clnt = clnt_create(job->server, YPPROG, YPVERS, "udp")) == NULL) { in yppush_send_xfr()
341 if (clnt_control(clnt, CLSET_TIMEOUT, (char *)&timeout) == FALSE) in yppush_send_xfr()
345 if (ypproc_xfr_2(&req, clnt) == NULL) { in yppush_send_xfr()
346 clnt_geterr(clnt, &err); in yppush_send_xfr()
349 yp_error("%s: %s", job->server, clnt_sperror(clnt, in yppush_send_xfr()
352 clnt_destroy(clnt); in yppush_send_xfr()
357 clnt_destroy(clnt); in yppush_send_xfr()
/freebsd-14.2/lib/librpcsec_gss/
H A Drpcsec_gss.c120 rpc_gss_seccreate(CLIENT *clnt, const char *principal, in rpc_gss_seccreate() argument
200 gd->gd_clnt = clnt; in rpc_gss_seccreate()
210 save_auth = clnt->cl_auth; in rpc_gss_seccreate()
212 clnt->cl_auth = auth; in rpc_gss_seccreate()
214 clnt->cl_auth = save_auth; in rpc_gss_seccreate()
218 clnt->cl_auth = save_auth; in rpc_gss_seccreate()
/freebsd-14.2/usr.bin/rpcinfo/
H A Drpcinfo.c316 CLIENT *clnt; local
329 clnt = clnt_tp_create(NULL, prog, vers, nconf);
331 return clnt;
339 CLIENT *clnt; local
348 clnt = clntudp_create(addr, prog, vers, to, fdp);
350 if (clnt == (CLIENT *)NULL) {
359 return (clnt);
1550 CLIENT *clnt = NULL; local
1557 while (clnt == (CLIENT *)NULL) {
1566 if (clnt)
[all …]
/freebsd-14.2/usr.sbin/ypserv/
H A Dyp_server.c275 CLIENT *clnt; local
285 if ((clnt = clntudp_create(addr,prognum,1,timeout,&sock)) == NULL) {
296 if (clnt_control(clnt, CLSET_TIMEOUT, &timeout) == FALSE)
299 if (yppushproc_xfrresp_1(&ypxfr_resp, clnt) == NULL) {
300 clnt_geterr(clnt, &err);
303 yp_error("%s", clnt_sperror(clnt,
307 clnt_destroy(clnt);
/freebsd-14.2/sys/rpc/rpcsec_gss/
H A Drpcsec_gss.c193 rpc_gss_secfind(CLIENT *clnt, struct ucred *cred, const char *principal, in rpc_gss_secfind() argument
257 auth = rpc_gss_seccreate_int(clnt, cred, NULL, principal, mech_oid, in rpc_gss_secfind()
291 rpc_gss_secpurge(CLIENT *clnt) in rpc_gss_secpurge() argument
297 if (gd->gd_clnt == clnt) { in rpc_gss_secpurge()
310 rpc_gss_seccreate(CLIENT *clnt, struct ucred *cred, const char *clnt_principal, in rpc_gss_seccreate() argument
331 return (rpc_gss_seccreate_int(clnt, cred, clnt_principal, principal, in rpc_gss_seccreate()
355 rpc_gss_seccreate_int(CLIENT *clnt, struct ucred *cred, in rpc_gss_seccreate_int() argument
420 CLNT_ACQUIRE(clnt); in rpc_gss_seccreate_int()
421 gd->gd_clnt = clnt; in rpc_gss_seccreate_int()

12