/src/libexec/rpc.rstatd/ |
rstatd.c | 70 SVCXPRT *transp; local in function:main 101 transp = svc_dg_create(0, 0, 0); 102 if (transp == NULL) { 107 if (!svc_reg(transp, RSTATPROG, RSTATVERS_TIME, rstat_service, 114 if (!svc_reg(transp, RSTATPROG, RSTATVERS_SWTCH, rstat_service, 121 if (!svc_reg(transp, RSTATPROG, RSTATVERS_ORIG, rstat_service,
|
/src/libexec/rpc.rusersd/ |
rusersd.c | 66 SVCXPRT *transp; local in function:main 91 transp = svc_dg_create(0, 0, 0); 92 if (transp == NULL) { 96 if (!svc_reg(transp, RUSERSPROG, RUSERSVERS_3, rusers_service, 102 if (!svc_reg(transp, RUSERSPROG, RUSERSVERS_IDLE,
|
/src/libexec/rpc.sprayd/ |
sprayd.c | 69 SVCXPRT *transp; local in function:main 96 transp = svc_dg_create(0, 0, 0); 97 if (transp == NULL) { 101 if (!svc_reg(transp, SPRAYPROG, SPRAYVERS, spray_service, 122 spray_service(struct svc_req *rqstp, SVCXPRT *transp) 134 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 149 svcerr_noproc(transp); 153 if (!svc_sendreply(transp, (xdrproc_t)xdr_spraycumul, (caddr_t)&scum)) { 154 svcerr_systemerr(transp);
|
/src/usr.sbin/rpc.yppasswdd/ |
rpc.yppasswdd.c | 62 SVCXPRT *transp; local in function:main 112 transp = svcudp_create(RPC_ANYSOCK); 113 if (transp == NULL) 116 if (!svc_register(transp, YPPASSWDPROG, YPPASSWDVERS, yppasswddprog_1, 121 transp = svctcp_create(RPC_ANYSOCK, RPC_MAXDATASIZE, RPC_MAXDATASIZE); 122 if (transp == NULL) 125 if (!svc_register(transp, YPPASSWDPROG, YPPASSWDVERS, yppasswddprog_1, 136 yppasswddprog_1(struct svc_req *rqstp, SVCXPRT *transp) 144 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 156 if (!svc_getargs(transp, xdr_yppasswd, (caddr_t) & argument)) [all...] |
/src/libexec/rpc.rwalld/ |
rwalld.c | 78 SVCXPRT *transp; local in function:main 110 transp = svc_dg_create(0, 0, 0); 111 if (transp == NULL) { 115 if (!svc_reg(transp, WALLPROG, WALLVERS, wallprog_1, NULL)) { 149 wallprog_1(struct svc_req *rqstp, SVCXPRT *transp) 160 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 171 svcerr_noproc(transp); 175 if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { 176 svcerr_decode(transp); 180 if (result != NULL && !svc_sendreply(transp, xdr_result, result)) [all...] |
/src/usr.sbin/rpc.lockd/ |
lockd.c | 87 SVCXPRT *transp; local in function:main 157 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, RPC_MAXDATASIZE, 159 if (transp == NULL) { 163 if (!svc_reg(transp, NLM_PROG, NLM_SM, nlm_prog_0, nconf)) { 168 if (!svc_reg(transp, NLM_PROG, NLM_VERS, nlm_prog_1, nconf)) { 173 if (!svc_reg(transp, NLM_PROG, NLM_VERSX, nlm_prog_3, nconf)) { 178 if (!svc_reg(transp, NLM_PROG, NLM_VERS4, nlm_prog_4, nconf)) {
|
/src/libexec/rpc.rquotad/ |
rquotad.c | 37 static void rquota_service(struct svc_req *request, SVCXPRT *transp); 38 static void ext_rquota_service(struct svc_req *request, SVCXPRT *transp); 39 static void sendquota(struct svc_req *request, int vers, SVCXPRT *transp); 56 SVCXPRT *transp; local in function:main 73 transp = svc_dg_create(0, 0, 0); 74 if (transp == NULL) { 78 if (!svc_reg(transp, RQUOTAPROG, RQUOTAVERS, rquota_service, 84 if (!svc_reg(transp, RQUOTAPROG, EXT_RQUOTAVERS, 116 rquota_service(struct svc_req *request, SVCXPRT *transp) 120 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL) [all...] |
/src/tests/lib/libc/rpc/ |
t_rpc.c | 63 onehost(const char *host, const char *transp) 77 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL) 97 server(struct svc_req *rqstp, SVCXPRT *transp) 105 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) 111 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) 113 svc_destroy(transp); 116 svcerr_noproc(transp); 120 if (!svc_getargs(transp, (xdrproc_t)xdr_int, (void *)&num)) { 121 svcerr_decode(transp); 126 if (!svc_sendreply(transp, (xdrproc_t)xdr_int, (void *)&num) 236 const char *transp = "udp"; local in function:main [all...] |
/src/usr.sbin/rpc.bootparamd/ |
bootparamd.c | 78 SVCXPRT *transp; local in function:main 135 transp = svcudp_create(RPC_ANYSOCK); 136 if (transp == NULL) 139 if (!svc_register(transp, BOOTPARAMPROG, BOOTPARAMVERS, bootparamprog_1,
|
/src/usr.sbin/ypserv/yppush/ |
yppush.c | 310 SVCXPRT *transp; local in function:push 337 transp = svcudp_create(RPC_ANYSOCK); 338 if (transp == NULL) { 345 if (svc_register(transp, prog, 1, yppush_xfrrespprog_1, 380 close(transp->xp_fd); /* close child's socket, we don't need it */ 390 req.port = transp->xp_port; 415 if (transp) 416 svc_destroy(transp);
|