Searched refs:clnt (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-10-stable/usr.sbin/rpc.lockd/
H A Dtest.c20 nlm_test_1(argp, clnt)
22 CLIENT *clnt;
27 if (clnt_call(clnt, NLM_TEST, xdr_nlm_testargs, argp, xdr_nlm_testres, &res, TIMEOUT) != RPC_SUCCESS) {
35 nlm_lock_1(argp, clnt)
37 CLIENT *clnt;
43 if (st = clnt_call(clnt, NLM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS) {
45 clnt_perror(clnt, "humbug");
53 nlm_cancel_1(argp, clnt)
55 CLIENT *clnt;
60 if (clnt_call(clnt, NLM_CANCE
[all...]
/freebsd-10-stable/usr.sbin/rpc.statd/
H A Dtest.c16 sm_stat_1(argp, clnt)
18 CLIENT *clnt;
23 if (clnt_call(clnt, SM_STAT, xdr_sm_name, argp, xdr_sm_stat_res, &res, TIMEOUT) != RPC_SUCCESS) {
31 sm_mon_1(argp, clnt)
33 CLIENT *clnt;
38 if (clnt_call(clnt, SM_MON, xdr_mon, argp, xdr_sm_stat_res, &res, TIMEOUT) != RPC_SUCCESS) {
46 sm_unmon_1(argp, clnt)
48 CLIENT *clnt;
53 if (clnt_call(clnt, SM_UNMON, xdr_mon_id, argp, xdr_sm_stat, &res, TIMEOUT) != RPC_SUCCESS) {
61 sm_unmon_all_1(argp, clnt)
[all...]
/freebsd-10-stable/sys/nlm/
H A Dnlm_prot_clnt.c21 nlm_sm_notify_0(struct nlm_sm_status *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
23 return (CLNT_CALL_EXT(clnt, ext, NLM_SM_NOTIFY,
30 nlm_test_1(struct nlm_testargs *argp, nlm_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
32 return (CLNT_CALL_EXT(clnt, ext, NLM_TEST,
39 nlm_lock_1(struct nlm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
41 return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK,
48 nlm_cancel_1(struct nlm_cancargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
50 return (CLNT_CALL_EXT(clnt, ext, NLM_CANCEL,
57 nlm_unlock_1(struct nlm_unlockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
59 return (CLNT_CALL_EXT(clnt, ex
66 nlm_granted_1(struct nlm_testargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
75 nlm_test_msg_1(struct nlm_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
84 nlm_lock_msg_1(struct nlm_lockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
93 nlm_cancel_msg_1(struct nlm_cancargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
102 nlm_unlock_msg_1(struct nlm_unlockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
111 nlm_granted_msg_1(struct nlm_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
120 nlm_test_res_1(nlm_testres *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
129 nlm_lock_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
138 nlm_cancel_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
147 nlm_unlock_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
156 nlm_granted_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
165 nlm_share_3(nlm_shareargs *argp, nlm_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
174 nlm_unshare_3(nlm_shareargs *argp, nlm_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
183 nlm_nm_lock_3(nlm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
192 nlm_free_all_3(nlm_notify *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
201 nlm4_test_4(nlm4_testargs *argp, nlm4_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
210 nlm4_lock_4(nlm4_lockargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
219 nlm4_cancel_4(nlm4_cancargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
228 nlm4_unlock_4(nlm4_unlockargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
237 nlm4_granted_4(nlm4_testargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
246 nlm4_test_msg_4(nlm4_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
255 nlm4_lock_msg_4(nlm4_lockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
264 nlm4_cancel_msg_4(nlm4_cancargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
273 nlm4_unlock_msg_4(nlm4_unlockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
282 nlm4_granted_msg_4(nlm4_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
291 nlm4_test_res_4(nlm4_testres *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
300 nlm4_lock_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
309 nlm4_cancel_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
318 nlm4_unlock_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
327 nlm4_granted_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
336 nlm4_share_4(nlm4_shareargs *argp, nlm4_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
345 nlm4_unshare_4(nlm4_shareargs *argp, nlm4_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
354 nlm4_nm_lock_4(nlm4_lockargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
363 nlm4_free_all_4(nlm4_notify *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo) argument
[all...]
/freebsd-10-stable/libexec/ypxfr/
H A Dypxfr_misc.c150 CLIENT *clnt; local
154 if ((clnt = clnt_create(source,YPPROG,YPVERS,"udp")) == NULL) {
163 if ((resp = ypproc_master_2(&req, clnt)) == NULL) {
164 yp_error("%s",clnt_sperror(clnt,"YPPROC_MASTER \
166 clnt_destroy(clnt);
170 clnt_destroy(clnt);
215 CLIENT *clnt; local
219 if ((clnt = clnt_create(source,YPPROG,YPVERS,"udp")) == NULL) {
227 if ((resp = ypproc_order_2(&req, clnt)) == NULL) {
228 yp_error("%s", clnt_sperror(clnt, "YPPROC_ORDE
260 CLIENT *clnt; local
[all...]
H A Dypxfrd_getmap.c105 CLIENT *clnt; local
121 if ((clnt = clnt_create(host, YPXFRD_FREEBSD_PROG,
127 clnt_destroy(clnt);
132 if (clnt_call(clnt,YPXFRD_GETMAP,
136 yp_error("%s", clnt_sperror(clnt,"call to rpc.ypxfrd failed"));
141 clnt_destroy(clnt);
H A Dypxfr_getmap.c64 CLIENT *clnt; local
73 if ((clnt = clnt_create(host, YPPROG, YPVERS, "tcp")) == NULL) {
85 (void)clnt_call(clnt, YPPROC_ALL, (xdrproc_t)xdr_ypreq_nokey, &req,
88 clnt_destroy(clnt);
/freebsd-10-stable/contrib/amd/amq/
H A Damq_clnt.c51 amqproc_null_1(voidp argp, CLIENT *clnt) argument
56 if (clnt_call(clnt, AMQPROC_NULL,
67 amqproc_mnttree_1(amq_string *argp, CLIENT *clnt) argument
72 if (clnt_call(clnt, AMQPROC_MNTTREE,
83 amqproc_umnt_1(amq_string *argp, CLIENT *clnt) argument
88 if (clnt_call(clnt, AMQPROC_UMNT,
99 amqproc_sync_umnt_1(amq_string *argp, CLIENT *clnt) argument
105 if ((rv = clnt_call(clnt, AMQPROC_SYNC_UMNT,
116 amqproc_stats_1(voidp argp, CLIENT *clnt) argument
121 if (clnt_call(clnt, AMQPROC_STAT
133 amqproc_export_1(voidp argp, CLIENT *clnt) argument
149 amqproc_setopt_1(amq_setopt *argp, CLIENT *clnt) argument
164 amqproc_getmntfs_1(voidp argp, CLIENT *clnt) argument
178 amqproc_getmapinfo_1(voidp argp, CLIENT *clnt) argument
193 amqproc_mount_1(voidp argp, CLIENT *clnt) argument
208 amqproc_getvers_1(voidp argp, CLIENT *clnt) argument
223 amqproc_getpid_1(voidp argp, CLIENT *clnt) argument
238 amqproc_pawd_1(amq_string *argp, CLIENT *clnt) argument
[all...]
H A Dpawd.c177 CLIENT *clnt; local
201 clnt = clntudp_create(&server_addr, AMQ_PROGRAM, AMQ_VERSION, tmo, &s);
202 if (clnt == NULL)
203 clnt = clnttcp_create(&server_addr, AMQ_PROGRAM, AMQ_VERSION, &s, 0, 0);
204 if (clnt == NULL)
209 spp = amqproc_pawd_1((amq_string *) &dummystr, clnt);
214 clnt_destroy(clnt);
H A Damq.c401 clnt_failed(CLIENT *clnt, char *server) argument
404 clnt_perror(clnt, server);
419 CLIENT *clnt = NULL; local
584 clnt = clnt_create(server, amd_program_number, AMQ_VERSION, "tcp");
585 if (!clnt && use_udp_flag) { /* try udp next */
586 clnt = clnt_create(server, amd_program_number, AMQ_VERSION, "udp");
588 if (clnt)
589 clnt_control(clnt, CLSET_RETRY_TIMEOUT, (char *) &tv);
591 if (!clnt) {
605 rc = amqproc_setopt_1(&opt, clnt);
[all...]
/freebsd-10-stable/lib/libc/rpc/
H A Dcrypt_client.c48 CLIENT *clnt; local
67 clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf);
68 if (clnt == (CLIENT *) NULL) {
81 result_1 = des_crypt_1(&des_crypt_1_arg, clnt);
83 clnt_destroy(clnt);
95 clnt_freeres(clnt, (xdrproc_t)xdr_desresp, result_1);
96 clnt_destroy(clnt);
H A Dclnt_generic.c100 CLIENT *clnt; local
105 clnt = clnt_create_timed(hostname, prog, vers_high, nettype, tp);
106 if (clnt == NULL) {
111 rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t)xdr_void,
115 return (clnt);
120 clnt_geterr(clnt, &rpcerr);
132 CLNT_CONTROL(clnt, CLSET_VERS, (char *)&vers_high);
133 rpc_stat = clnt_call(clnt, NULLPROC, (xdrproc_t)xdr_void,
138 return (clnt);
141 clnt_geterr(clnt,
184 CLIENT *clnt = NULL; local
[all...]
H A Dauth_time.c243 CLIENT *clnt; /* Client handle */ local
342 clnt = clnttcp_create(&sin, RPCBPROG, RPCBVERS, &s, 0, 0);
343 if (clnt == NULL) {
353 status = clnt_call(clnt, RPCBPROC_GETTIME, (xdrproc_t)xdr_void, NULL,
366 if (clnt != NULL) {
367 clnt_destroy(clnt);
368 clnt = NULL;
472 if (clnt != NULL)
473 clnt_destroy(clnt);
/freebsd-10-stable/lib/libypclnt/
H A Dypclnt_passwd.c69 CLIENT *clnt = NULL; local
96 if ((clnt = clnt_tp_create(NULL, MASTER_YPPASSWDPROG,
107 if (clnt != NULL) {
108 clnt_destroy(clnt);
143 CLIENT *clnt = NULL; local
179 if ((clnt = clnt_tp_create(NULL, MASTER_YPPASSWDPROG,
187 clnt->cl_auth = authunix_create_default();
190 result = yppasswdproc_update_master_1(&yppwd, clnt);
193 clnt_geterr(clnt, &rpcerr);
197 clnt_sperror(clnt, ypcln
241 CLIENT *clnt = NULL; local
[all...]
/freebsd-10-stable/lib/librpcsvc/
H A Dyp_update.c66 CLIENT *clnt; local
80 if ((clnt = clnt_create(master, YPU_PROG, YPU_VERS, "tcp")) == NULL)
94 clnt_destroy(clnt);
102 if ((clnt->cl_auth = (AUTH *)authdes_create(netname, WINDOW, NULL,
104 clnt_destroy(clnt);
129 if ((rval = clnt_call(clnt, YPU_CHANGE,
146 if ((rval = clnt_call(clnt, YPU_INSERT,
161 if ((rval = clnt_call(clnt, YPU_DELETE,
178 if ((rval = clnt_call(clnt, YPU_STORE,
194 auth_destroy(clnt
[all...]
/freebsd-10-stable/usr.sbin/ypbind/
H A Dyp_ping.c151 ypproc_domain_nonack_2_send(domainname *argp, CLIENT *clnt) argument
157 if (clnt_call(clnt, YPPROC_DOMAIN_NONACK,
170 ypproc_domain_nonack_2_recv(domainname *argp, CLIENT *clnt) argument
176 if (clnt_call(clnt, YPPROC_DOMAIN_NONACK,
224 CLIENT *clnt; local
257 clnt = clntudp_create(any, YPPROG, YPVERS, tv, &sock);
258 if (clnt == NULL) {
266 clnt->cl_auth = authunix_create_default();
269 clnt_control(clnt, CLSET_TIMEOUT, (char *)&tv);
271 clnt_control(clnt, CLSET_ASYN
[all...]
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/rpc/
H A Dt_rpc.c66 CLIENT *clnt; local
78 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL)
84 if (clnt_call(clnt, RPCBPROC_NULL, (xdrproc_t)xdr_void, NULL,
88 if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv)
91 ERRX(, "clnt_call (%s)", clnt_sperror(clnt, ""));
92 clnt_control(clnt, CLGET_SVC_ADDR, (char *) &addr);
141 CLIENT *clnt; local
157 clnt = clnt_raw_create(PROGNUM, VERSNUM);
158 if (clnt == NULL)
161 rv = clnt_call(clnt, PLUSON
177 CLIENT *clnt; local
[all...]
/freebsd-10-stable/contrib/netbsd-tests/net/net/
H A Dt_unix.c144 int srvr = -1, clnt = -1, acpt = -1; local
182 clnt = socket(AF_UNIX, SOCK_STREAM, 0);
183 if (clnt == -1)
186 if (connect(clnt, (const struct sockaddr *)sun, sl) == -1)
190 if (close(clnt) == -1)
192 clnt = -1;
243 if (clnt != -1 && !closeit)
244 (void)close(clnt);
254 if (clnt != -1 && !closeit)
255 (void)close(clnt);
[all...]
H A Dt_tcp.c76 int srvr = -1, clnt = -1, as = -1; local
107 clnt = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0);
108 if (clnt == -1)
112 ok = connect(clnt, (struct sockaddr *) &ba, addrlen);
116 ok = connect(clnt, (struct sockaddr *) &ba, addrlen);
166 close(clnt);
/freebsd-10-stable/crypto/openssl/ssl/
H A Dd1_srtp.c246 STACK_OF(SRTP_PROTECTION_PROFILE) *clnt = 0;
249 clnt = SSL_get_srtp_profiles(s);
250 ct = sk_SRTP_PROTECTION_PROFILE_num(clnt); /* -1 if clnt == 0 */
268 prof = sk_SRTP_PROTECTION_PROFILE_value(clnt, i);
393 STACK_OF(SRTP_PROTECTION_PROFILE) *clnt;
419 clnt = SSL_get_srtp_profiles(s);
422 if (clnt == NULL) {
433 for (i = 0; i < sk_SRTP_PROTECTION_PROFILE_num(clnt); i++) {
434 prof = sk_SRTP_PROTECTION_PROFILE_value(clnt,
[all...]
/freebsd-10-stable/usr.sbin/bootparamd/callbootd/
H A Dcallbootd.c76 CLIENT *clnt; local
91 clnt = clnt_create(server,BOOTPARAMPROG, BOOTPARAMVERS, "udp");
92 if ( clnt == NULL )
105 whoami_res = bootparamproc_whoami_1(&whoami_arg, clnt);
128 getfile_res = bootparamproc_getfile_1(&getfile_arg,clnt);
/freebsd-10-stable/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);
155 typedef AUTH *rpc_gss_seccreate_ftype(CLIENT *clnt, struct ucred *cred,
214 rpc_gss_secfind_call(CLIENT *clnt, struct ucred *cred, const char *principal, argument
220 ret = (*rpc_gss_entries.rpc_gss_secfind)(clnt, cred, principal,
226 rpc_gss_secpurge_call(CLIENT *clnt) argument
230 (*rpc_gss_entries.rpc_gss_secpurge)(clnt);
234 rpc_gss_seccreate_call(CLIENT *clnt, struct ucred *cred, argument
242 ret = (*rpc_gss_entries.rpc_gss_seccreate)(clnt, cred,
420 AUTH *rpc_gss_secfind(CLIENT *clnt, struc
[all...]
/freebsd-10-stable/usr.sbin/yppush/
H A Dyppush_main.c49 #include <rpc/clnt.h>
286 CLIENT *clnt; local
321 if ((clnt = clnt_create(job->server, YPPROG, YPVERS, "udp")) == NULL) {
342 if (clnt_control(clnt, CLSET_TIMEOUT, (char *)&timeout) == FALSE)
346 if (ypproc_xfr_2(&req, clnt) == NULL) {
347 clnt_geterr(clnt, &err);
350 yp_error("%s: %s", job->server, clnt_sperror(clnt,
353 clnt_destroy(clnt);
358 clnt_destroy(clnt);
/freebsd-10-stable/contrib/amd/conf/transp/
H A Dtransp_sockets.c420 CLIENT *clnt; local
446 clnt = clnttcp_create(sin, NFS_PROGRAM, nfs_version, &sock, 0, 0);
448 clnt = clntudp_create(sin, NFS_PROGRAM, nfs_version, tv, &sock);
450 clnt = NULL;
452 if (clnt != NULL) {
455 clnt_stat = clnt_call(clnt,
467 clnt_destroy(clnt);
/freebsd-10-stable/contrib/amd/fixmount/
H A Dfixmount.c536 CLIENT *clnt; local
575 clnt = clnt_create(host, MOUNTPROG, MOUNTVERS, "tcp");
576 if (!clnt)
577 clnt = clnt_create(host, MOUNTPROG, MOUNTVERS, "udp");
580 clnt = clnttcp_create(&host_addr, MOUNTPROG, MOUNTVERS, &s, 0, 0);
581 if (!clnt) {
584 clnt = clntudp_create(&host_addr, MOUNTPROG, MOUNTVERS, *tvp, &s);
588 if (!clnt) {
598 return clnt;
/freebsd-10-stable/include/rpc/
H A DMakefile12 HFILES= auth.h auth_unix.h clnt.h clnt_soc.h clnt_stat.h \

Completed in 145 milliseconds

12