/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...] |
yppasswdd_mkpw.c | 65 make_passwd(yppasswd *argp, struct svc_req *rqstp, SVCXPRT *transp) 77 if (!svc_sendreply(transp, (xdrproc_t)xdr_int, (caddr_t)&res)) \ 78 svcerr_systemerr(transp); \
|
/src/usr.sbin/rpcbind/ |
rpcb_svc.c | 65 rpcb_service_3(struct svc_req *rqstp, SVCXPRT *transp) 91 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS); 92 (void) svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 124 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS); 158 svcerr_noproc(transp); 162 if (!svc_getargs(transp, (xdrproc_t) xdr_argument, 164 svcerr_decode(transp); 169 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS)) { 170 svcerr_weakauth(transp); 173 result = (*local)(&argument, rqstp, transp, RPCBVERS) [all...] |
rpcb_svc_4.c | 69 rpcb_service_4(struct svc_req *rqstp, SVCXPRT *transp) 93 check_access(transp, rqstp->rq_proc, NULL, RPCBVERS4); 94 (void) svc_sendreply(transp, (xdrproc_t) xdr_void, NULL); 148 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4); 157 rpcbproc_callit_com(rqstp, transp, rqstp->rq_proc, RPCBVERS4); 211 svcerr_noproc(transp); 215 if (!svc_getargs(transp, (xdrproc_t) xdr_argument, 217 svcerr_decode(transp); 222 if (!check_access(transp, rqstp->rq_proc, &argument, RPCBVERS4)) { 223 svcerr_weakauth(transp); [all...] |
rpcb_svc_com.c | 134 rpcbproc_set_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, 147 ans = map_set(regp, getowner(transp, owner, sizeof owner)); 222 rpcbproc_unset_com(void *arg, struct svc_req *rqstp __unused, SVCXPRT *transp, 235 ans = map_unset(regp, getowner(transp, owner, sizeof owner)); 321 SVCXPRT *transp, rpcvers_t rpcbversnum, rpcvers_t verstype) 331 fnd = find_service(regp->r_prog, regp->r_vers, transp->xp_netid); 337 if (!(uaddr = mergeaddr(transp, transp->xp_netid, 357 transp->xp_netid, uaddr); 364 SVCXPRT *transp __unused, rpcvers_t rpcbversnum __unused [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/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/usr.sbin/ypserv/yppush/ |
yppush_svc.c | 83 yppush_xfrrespprog_1(struct svc_req *rqstp, SVCXPRT *transp) 107 svcerr_noproc(transp); 114 if (!svc_getargs(transp, xdr_argument, (caddr_t) &argument)) { 115 svcerr_decode(transp); 122 if (result != NULL && !svc_sendreply(transp, xdr_result, result)) 123 svcerr_systemerr(transp); 125 if (!svc_freeargs(transp, xdr_argument, (caddr_t) &argument)) {
|
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);
|
/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/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,
|
rusers_proc.c | 286 rusers_service(struct svc_req *rqstp, SVCXPRT *transp) 297 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 310 svcerr_progvers(transp, RUSERSVERS_IDLE, RUSERSVERS_3); 330 svcerr_progvers(transp, RUSERSVERS_IDLE, RUSERSVERS_3); 350 svcerr_progvers(transp, RUSERSVERS_IDLE, RUSERSVERS_3); 357 svcerr_noproc(transp); 361 if (!svc_getargs(transp, xdr_argument, (caddr_t)(void *)&argument)) { 362 svcerr_decode(transp); 366 if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { 367 svcerr_systemerr(transp); [all...] |
/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,
|
rstat_proc.c | 292 rstat_service(struct svc_req *rqstp, SVCXPRT *transp) 303 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); 323 svcerr_progvers(transp, RSTATVERS_ORIG, RSTATVERS_TIME); 345 svcerr_progvers(transp, RSTATVERS_ORIG, RSTATVERS_TIME); 351 svcerr_noproc(transp); 355 if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { 356 svcerr_decode(transp); 360 if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { 361 svcerr_systemerr(transp); 363 if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) [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.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/usr.sbin/ypserv/ypserv/ |
ypserv.c | 115 ypprog_2(struct svc_req *rqstp, SVCXPRT *transp) 142 caller = svc_getrpccaller(transp)->buf; 144 caller, RQ_FILE, transp->xp_fd, NULL); 242 svcerr_noproc(transp); 252 svcerr_auth(transp, AUTH_FAILED); 258 if (!svc_getargs(transp, xdr_argument, argp)) { 259 svcerr_decode(transp); 263 if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { 264 svcerr_systemerr(transp); 266 if (!svc_freeargs(transp, xdr_argument, argp)) [all...] |
/src/lib/libc/rpc/ |
svc_simple.c | 252 universal(struct svc_req *rqstp, SVCXPRT *transp) 262 _DIAGASSERT(transp != NULL); 268 if (svc_sendreply(transp, (xdrproc_t) xdr_void, NULL) == 281 (strcmp(pl->p_netid, transp->xp_netid) == 0)) { 291 if (!svc_getargs(transp, pl->p_inproc, xdrbuf)) { 292 svcerr_decode(transp); 303 if (!svc_sendreply(transp, pl->p_outproc, outdata)) { 310 (void) svc_freeargs(transp, pl->p_inproc, xdrbuf);
|
/src/sys/fs/nfs/nlm/ |
nlm_prot_svc.c | 44 void nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp); 45 void nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); 46 void nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp); 47 void nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp); 50 nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp) 98 nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp) 245 if (!nlm_prog_1_freeresult(transp, xdr_result, (caddr_t) &result)) 252 nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp) 291 nlm_prog_1(rqstp, transp); 338 if (!nlm_prog_3_freeresult(transp, xdr_result, (caddr_t) &result) [all...] |
sm_inter.h | 78 extern void sm_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
|
/src/usr.bin/rpcgen/ |
rpc_svcout.c | 55 static char TRANSP[] = "transp"; 131 f_print(fout, "\tSVCXPRT *%s;\n", TRANSP); 142 f_print(fout, "\tSVCXPRT *%s;\n", TRANSP); 156 write_netid_register(const char *transp) 166 f_print(fout, "%s\tnconf = getnetconfigent(\"%s\");\n", sp, transp); 168 (void) sprintf(_errbuf, "cannot find %s netid.", transp); 174 sp, TRANSP); 175 f_print(fout, "%s\tif (%s == NULL) {\n", sp, TRANSP); 176 (void) sprintf(_errbuf, "cannot create %s service.", transp); [all...] |
/src/sys/external/bsd/drm2/dist/drm/ |
drm_fb_helper.c | 940 if (info->var.transp.length > 0) { 941 u32 mask = (1 << info->var.transp.length) - 1; 943 mask <<= info->var.transp.offset; 1232 var_1->transp.offset == var_2->transp.offset && 1233 var_1->transp.length == var_2->transp.length && 1234 var_1->transp.msb_right == var_2->transp.msb_right; 1248 var->transp.offset = 0 [all...] |
/src/usr.sbin/ypbind/ |
ypbind.c | 689 ypbindproc_null_2(SVCXPRT *transp, void *argp) 703 ypbindproc_domain_2(SVCXPRT *transp, void *argp) 829 ypbindproc_setdom_2(SVCXPRT *transp, void *argp) 836 fromsin = svc_getcaller(transp); 899 ypbindprog_2(struct svc_req *rqstp, register SVCXPRT *transp) 929 svcerr_auth(transp, AUTH_BADCRED); 934 svcerr_auth(transp, AUTH_TOOWEAK); 944 svcerr_noproc(transp); 948 if (!svc_getargs(transp, xdr_argument, (caddr_t)(void *)&argument)) { 949 svcerr_decode(transp); [all...] |
/src/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
vmwgfx_fb.c | 78 unsigned blue, unsigned transp, 115 depth = (var->transp.length > 0) ? 32 : 24; 130 var->transp.length = 0; 131 var->transp.offset = 0; 140 var->transp.length = 8; 141 var->transp.offset = 24; 434 *depth = (var->transp.length > 0) ? 32 : 24; 726 info->var.transp.offset = 0; 727 info->var.transp.length = 0;
|
/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,
|