Home
last modified time | relevance | path

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

12

/netbsd/src/sys/fs/nfs/nlm/
Dnlm_prot_clnt.c23 nlm_sm_notify_0(struct nlm_sm_status *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext… in nlm_sm_notify_0() argument
25 return (CLNT_CALL_EXT(clnt, ext, NLM_SM_NOTIFY, in nlm_sm_notify_0()
32 nlm_test_1(struct nlm_testargs *argp, nlm_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ex… in nlm_test_1() argument
34 return (CLNT_CALL_EXT(clnt, ext, NLM_TEST, in nlm_test_1()
41 nlm_lock_1(struct nlm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, s… in nlm_lock_1() argument
43 return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK, in nlm_lock_1()
50 nlm_cancel_1(struct nlm_cancargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext,… in nlm_cancel_1() argument
52 return (CLNT_CALL_EXT(clnt, ext, NLM_CANCEL, in nlm_cancel_1()
59 nlm_unlock_1(struct nlm_unlockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ex… in nlm_unlock_1() argument
61 return (CLNT_CALL_EXT(clnt, ext, NLM_UNLOCK, in nlm_unlock_1()
[all …]
/netbsd/src/usr.sbin/rpc.lockd/
Dtest.c23 nlm_test_1(struct nlm_testargs *argp, CLIENT *clnt) in nlm_test_1() argument
29 st = clnt_call(clnt, NLM_TEST, xdr_nlm_testargs, argp, xdr_nlm_testres, in nlm_test_1()
38 nlm_lock_1(struct nlm_lockargs *argp, CLIENT *clnt) in nlm_lock_1() argument
44 st = clnt_call(clnt, NLM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, in nlm_lock_1()
48 clnt_perror(clnt, "humbug"); in nlm_lock_1()
56 nlm_cancel_1(struct nlm_cancargs *argp, CLIENT *clnt) in nlm_cancel_1() argument
62 st = clnt_call(clnt, NLM_CANCEL, xdr_nlm_cancargs, argp, xdr_nlm_res, in nlm_cancel_1()
72 nlm_unlock_1(struct nlm_unlockargs *argp, CLIENT *clnt) in nlm_unlock_1() argument
78 st = clnt_call(clnt, NLM_UNLOCK, xdr_nlm_unlockargs, argp, xdr_nlm_res, in nlm_unlock_1()
88 nlm_granted_1(struct nlm_testargs *argp, CLIENT *clnt) in nlm_granted_1() argument
[all …]
/netbsd/src/external/bsd/am-utils/dist/amq/
Damq_clnt.c53 amqproc_null_1(voidp argp, CLIENT *clnt) in amqproc_null_1() argument
58 if (clnt_call(clnt, AMQPROC_NULL, in amqproc_null_1()
69 amqproc_mnttree_1(amq_string *argp, CLIENT *clnt) in amqproc_mnttree_1() argument
74 if (clnt_call(clnt, AMQPROC_MNTTREE, in amqproc_mnttree_1()
85 amqproc_umnt_1(amq_string *argp, CLIENT *clnt) in amqproc_umnt_1() argument
90 if (clnt_call(clnt, AMQPROC_UMNT, in amqproc_umnt_1()
101 amqproc_sync_umnt_1(amq_string *argp, CLIENT *clnt) in amqproc_sync_umnt_1() argument
107 if ((rv = clnt_call(clnt, AMQPROC_SYNC_UMNT, in amqproc_sync_umnt_1()
118 amqproc_stats_1(voidp argp, CLIENT *clnt) in amqproc_stats_1() argument
123 if (clnt_call(clnt, AMQPROC_STATS, in amqproc_stats_1()
[all …]
Damq.c398 clnt_failed(CLIENT *clnt, char *server) in clnt_failed() argument
401 clnt_perror(clnt, server); in clnt_failed()
416 CLIENT *clnt = NULL; in main() local
581 clnt = clnt_create(server, amd_program_number, AMQ_VERSION, "tcp"); in main()
582 if (!clnt && use_udp_flag) { /* try udp next */ in main()
583 clnt = clnt_create(server, amd_program_number, AMQ_VERSION, "udp"); in main()
585 if (clnt) in main()
586 clnt_control(clnt, CLSET_RETRY_TIMEOUT, (char *) &tv); in main()
588 if (!clnt) { in main()
602 rc = amqproc_setopt_1(&opt, clnt); in main()
[all …]
Dpawd.c179 CLIENT *clnt; in transform_dir() local
203 clnt = clntudp_create(&server_addr, AMQ_PROGRAM, AMQ_VERSION, tmo, &s); in transform_dir()
204 if (clnt == NULL) in transform_dir()
205 clnt = clnttcp_create(&server_addr, AMQ_PROGRAM, AMQ_VERSION, &s, 0, 0); in transform_dir()
206 if (clnt == NULL) in transform_dir()
211 spp = amqproc_pawd_1((amq_string *) &dummystr, clnt); in transform_dir()
216 clnt_destroy(clnt); in transform_dir()
/netbsd/src/usr.sbin/rpc.statd/
Dtest.c17 sm_stat_1(struct sm_name *argp, CLIENT *clnt) in sm_stat_1() argument
22 if (clnt_call(clnt, SM_STAT, xdr_sm_name, argp, xdr_sm_stat_res, in sm_stat_1()
30 sm_mon_1(struct mon *argp, CLIENT *clnt) in sm_mon_1() argument
35 if (clnt_call(clnt, SM_MON, xdr_mon, argp, xdr_sm_stat_res, in sm_mon_1()
43 sm_unmon_1(struct mon_id *argp, CLIENT *clnt) in sm_unmon_1() argument
48 if (clnt_call(clnt, SM_UNMON, xdr_mon_id, argp, xdr_sm_stat, in sm_unmon_1()
56 sm_unmon_all_1(struct my_id *argp, CLIENT *clnt) in sm_unmon_all_1() argument
61 if (clnt_call(clnt, SM_UNMON_ALL, xdr_my_id, argp, xdr_sm_stat, in sm_unmon_all_1()
69 sm_simu_crash_1(void *argp, CLIENT *clnt) in sm_simu_crash_1() argument
74 if (clnt_call(clnt, SM_SIMU_CRASH, xdr_void, argp, xdr_void, in sm_simu_crash_1()
/netbsd/src/lib/libc/rpc/
Dclnt_generic.c87 CLIENT *clnt; in __weak_alias() local
96 clnt = clnt_create(hostname, prog, vers_high, nettype); in __weak_alias()
97 if (clnt == NULL) { in __weak_alias()
102 rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t) xdr_void, in __weak_alias()
106 return (clnt); in __weak_alias()
111 clnt_geterr(clnt, &rpcerr); in __weak_alias()
121 CLNT_CONTROL(clnt, CLSET_VERS, (char *)(void *)&vers_high); in __weak_alias()
122 rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t) xdr_void, in __weak_alias()
126 return (clnt); in __weak_alias()
129 clnt_geterr(clnt, &rpcerr); in __weak_alias()
[all …]
Drpc_generic.c480 rpc_nullproc(CLIENT *clnt) in rpc_nullproc() argument
484 if (clnt_call(clnt, NULLPROC, (xdrproc_t) xdr_void, NULL, in rpc_nullproc()
488 return ((void *) clnt); in rpc_nullproc()
/netbsd/src/tests/lib/libc/rpc/
Dt_rpc.c65 CLIENT *clnt; in onehost() local
77 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL) in onehost()
82 if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv) in onehost()
84 ERRX(, "clnt_call (%s)", clnt_sperror(clnt, "")); in onehost()
85 clnt_control(clnt, CLGET_SVC_ADDR, (char *) &addr); in onehost()
134 CLIENT *clnt; in rawtest() local
150 clnt = clnt_raw_create(PROGNUM, VERSNUM); in rawtest()
151 if (clnt == NULL) in rawtest()
154 rv = clnt_call(clnt, PLUSONE, (xdrproc_t)xdr_int, (void *)&num, in rawtest()
159 clnt_destroy(clnt); in rawtest()
[all …]
/netbsd/src/usr.bin/eject/
Dam_glue.c46 static CLIENT *clnt; variable
106 clnt = clnt_create(server, xAMQ_PROGRAM, xAMQ_VERSION, "tcp"); in am_init()
107 if (clnt != NULL) in am_init()
111 clnt = clnt_create(server, xAMQ_PROGRAM, xAMQ_VERSION, "udp"); in am_init()
112 if (clnt != NULL) /* set udp timeout */ in am_init()
113 (void)clnt_control(clnt, CLSET_RETRY_TIMEOUT, (void *)&tv); in am_init()
124 if (clnt == NULL) in am_unmount()
127 if (clnt_call(clnt, xAMQPROC_SYNC_UMNT, xdr_amq_string, &dirname, in am_unmount()
/netbsd/src/lib/libc/yp/
Dyp_all.c54 CLIENT *clnt; in __weak_alias() local
71 clnt = clnttcp_create(&clnt_sin, YPPROG, YPVERS, &clnt_sock, 0, 0); in __weak_alias()
72 if (clnt == NULL) { in __weak_alias()
79 status = clnt_call(clnt, (rpcproc_t)YPPROC_ALL, in __weak_alias()
82 clnt_destroy(clnt); in __weak_alias()
/netbsd/src/external/ibm-public/postfix/dist/src/global/
Ddict_proxy.c80 CLNT_STREAM *clnt; /* client handle (shared) */ member
134 stream = clnt_stream_access(dict_proxy->clnt); in dict_proxy_sequence()
185 clnt_stream_recover(dict_proxy->clnt); in dict_proxy_sequence()
213 stream = clnt_stream_access(dict_proxy->clnt); in dict_proxy_lookup()
258 clnt_stream_recover(dict_proxy->clnt); in dict_proxy_lookup()
284 stream = clnt_stream_access(dict_proxy->clnt); in dict_proxy_update()
328 clnt_stream_recover(dict_proxy->clnt); in dict_proxy_update()
354 stream = clnt_stream_access(dict_proxy->clnt); in dict_proxy_delete()
398 clnt_stream_recover(dict_proxy->clnt); in dict_proxy_delete()
486 dict_proxy->clnt = *pstream; in dict_proxy_open()
[all …]
Ddict_memcache.c89 AUTO_CLNT *clnt; /* memcache client stream */ member
154 if ((fp = auto_clnt_access(dict_mc->clnt)) == 0) { in dict_memcache_set()
175 auto_clnt_recover(dict_mc->clnt); in dict_memcache_set()
191 if ((fp = auto_clnt_access(dict_mc->clnt)) == 0) { in dict_memcache_get()
216 auto_clnt_recover(dict_mc->clnt); in dict_memcache_get()
219 auto_clnt_recover(dict_mc->clnt); in dict_memcache_get()
234 if ((fp = auto_clnt_access(dict_mc->clnt)) == 0) { in dict_memcache_del()
254 auto_clnt_recover(dict_mc->clnt); in dict_memcache_del()
488 auto_clnt_free(dict_mc->clnt); in dict_memcache_close()
569 dict_mc->clnt = auto_clnt_create(dict_mc->memcache, dict_mc->timeout, 0, 0); in dict_memcache_open()
/netbsd/src/usr.sbin/rpcbind/
Dutil.c107 struct sockaddr *clnt = caller->buf; in addrmerge() local
149 clnt_sa = malloc(clnt->sa_len); in addrmerge()
154 memcpy(clnt_sa, clnt, clnt->sa_len); in addrmerge()
171 if (ifap->ifa_addr->sa_family != clnt->sa_family || in addrmerge()
175 switch (clnt->sa_family) { in addrmerge()
213 realsin6 = (struct sockaddr_in6 *)clnt; in addrmerge()
245 if (ifap->ifa_addr->sa_family != clnt->sa_family || in addrmerge()
261 switch (clnt->sa_family) { in addrmerge()
/netbsd/src/tests/net/net/
Dt_unix.c229 int srvr = -1, clnt = -1, acpt = -1; in test() local
304 clnt = socket(AF_UNIX, SOCK_STREAM, 0); in test()
305 if (clnt == -1) in test()
308 if (connect(clnt, (const struct sockaddr *)sun, sl) == -1) in test()
310 check_cred(clnt, statit, srvrpid, clntpid, "client"); in test()
326 if (close(clnt) == -1) in test()
328 clnt = -1; in test()
371 if (clnt != -1 && !closeit) in test()
372 (void)close(clnt); in test()
387 if (clnt != -1 && !closeit) in test()
[all …]
Dt_tcp.c75 int srvr = -1, clnt = -1, acpt = -1; in accept_test() local
137 clnt = socket(cfamily, SOCK_STREAM | SOCK_NONBLOCK, 0); in accept_test()
138 if (clnt == -1) in accept_test()
154 ok = connect(clnt, (struct sockaddr *) &bs, addrlen); in accept_test()
173 ok = connect(clnt, (struct sockaddr *) &bs, addrlen); in accept_test()
216 if (getpeereid(clnt, &euid, &egid) != -1) in accept_test()
259 close(clnt); in accept_test()
/netbsd/src/external/bsd/am-utils/dist/fixmount/
Dfixmount.c538 CLIENT *clnt; in clnt_create_timeout() local
577 clnt = clnt_create(host, MOUNTPROG, MOUNTVERS, "tcp"); in clnt_create_timeout()
578 if (!clnt) in clnt_create_timeout()
579 clnt = clnt_create(host, MOUNTPROG, MOUNTVERS, "udp"); in clnt_create_timeout()
582 clnt = clnttcp_create(&host_addr, MOUNTPROG, MOUNTVERS, &s, 0, 0); in clnt_create_timeout()
583 if (!clnt) { in clnt_create_timeout()
586 clnt = clntudp_create(&host_addr, MOUNTPROG, MOUNTVERS, *tvp, &s); in clnt_create_timeout()
590 if (!clnt) { in clnt_create_timeout()
600 return clnt; in clnt_create_timeout()
/netbsd/src/external/bsd/am-utils/dist/conf/transp/
Dtransp_sockets.c422 CLIENT *clnt; in get_nfs_version() local
446 clnt = clnttcp_create(sin, NFS_PROGRAM, nfs_version, &sock, 0, 0); in get_nfs_version()
448 clnt = clntudp_create(sin, NFS_PROGRAM, nfs_version, tv, &sock); in get_nfs_version()
450 clnt = NULL; in get_nfs_version()
452 if (clnt != NULL) { in get_nfs_version()
455 clnt_stat = clnt_call(clnt, in get_nfs_version()
467 clnt_destroy(clnt); in get_nfs_version()
Dtransp_tli.c746 CLIENT *clnt = NULL; in get_nfs_version() local
775 clnt = clnt_create_vers_timed(host, NFS_PROGRAM, &versout, NFS_VERSION, nfs_version, proto, &tv);
777 clnt = clnt_create_vers(host, NFS_PROGRAM, &versout, NFS_VERSION, nfs_version, proto);
780 if (clnt == NULL) {
789 clnt_destroy(clnt);
/netbsd/src/usr.sbin/rpc.bootparamd/
Dtest.c49 bootparamproc_whoami_1(bp_whoami_arg *argp, CLIENT *clnt) in bootparamproc_whoami_1() argument
56 if ((st = clnt_call(clnt, BOOTPARAMPROC_WHOAMI, xdr_bp_whoami_arg, argp, in bootparamproc_whoami_1()
/netbsd/src/usr.bin/rpcinfo/
Drpcinfo.c341 CLIENT *clnt; local
344 clnt = clnttcp_create(addr, UL(prog), UL(vers), fdp, 0, 0);
350 clnt = clntudp_create(addr, UL(prog), UL(vers), to, fdp);
352 if (clnt == NULL) {
361 return clnt;
1598 CLIENT *clnt = NULL; local
1605 while (clnt == NULL) {
1611 clnt = getclnthandle(host, nconf, rpcbversnum,
1615 if (clnt)
1616 return clnt;
/netbsd/src/include/rpc/
DMakefile4 INCS= auth.h auth_unix.h clnt.h clnt_soc.h nettype.h \
/netbsd/src/usr.sbin/rpc.pcnfsd/
DMakefile.clnt9 PROG= clnt.pcnfsd
DMakefile32 CLEANFILES += clnt.pcnfsd pcnfsd_test.o pcnfsd_test.ln pcnfsd_clnt.*
DREADME6 Note: to build clnt.pcnfsd use the command:
7 make -f Makefile.clnt

12