Home
last modified time | relevance | path

Searched refs:transp (Results 1 – 25 of 62) sorted by relevance

123

/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/
Drpc_svc_1.c48 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
95 char *simplePing(union u_argument *inVar, SVCXPRT * transp) in simplePing() argument
102 char *svc_getcaller_test(union u_argument *inVar, SVCXPRT * transp) in svc_getcaller_test() argument
108 sa = svc_getcaller(transp); in svc_getcaller_test()
115 char *intTestProc(union u_argument *in, SVCXPRT * transp) in intTestProc() argument
125 char *lngTestProc(union u_argument *in, SVCXPRT * transp) in lngTestProc() argument
135 char *dblTestProc(union u_argument *in, SVCXPRT * transp) in dblTestProc() argument
145 char *strTestProc(union u_argument *in, SVCXPRT * transp) in strTestProc() argument
155 char *svcGetargsProc(union u_argument *in, SVCXPRT * transp) in svcGetargsProc() argument
164 if ((svc_getargs(transp, (xdrproc_t) xdr_int, (char *)&args)) == FALSE) { in svcGetargsProc()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_11/
Dtirpc_svc_11.c50 SVCXPRT *transp = NULL; in main() local
61 transp = svc_tp_create(exm_proc, progNum, VERSNUM, nconf); in main()
63 if (transp == NULL) { in main()
68 if (!svc_reg(transp, progNum, VERSNUM, exm_proc, nconf)) { in main()
96 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
120 svcerr_systemerr(transp); in exm_proc()
126 svcerr_weakauth(transp); in exm_proc()
132 svcerr_noproc(transp); in exm_proc()
137 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
138 svcerr_decode(transp); in exm_proc()
[all …]
/external/selinux/libselinux/src/
Dsetrans_client.c176 static int raw_to_trans_context(const char *raw, char **transp) in raw_to_trans_context() argument
182 *transp = NULL; in raw_to_trans_context()
192 ret = receive_response(fd, RAW_TO_TRANS_CONTEXT, transp, &ret_val); in raw_to_trans_context()
333 char ** transp) in hidden_def()
336 *transp = NULL; in hidden_def()
344 *transp = strdup(raw); in hidden_def()
349 *transp = strdup(prev_r2t_trans); in hidden_def()
355 if (raw_to_trans_context(raw, transp)) in hidden_def()
356 *transp = strdup(raw); in hidden_def()
357 if (*transp) { in hidden_def()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_5/
Dtirpc_svc_5.c41 SVCXPRT *transp; member
57 static void exm_proc(struct svc_req *rqstp, SVCXPRT *transp);
90 this->transp = this->svc_func(this->sock, 1024, 1024); in main()
91 if (this->transp == NULL) { in main()
96 if (!svc_reg(this->transp, progNum, VERSNUM, in main()
114 if (this->transp != NULL) in main()
115 svc_destroy(this->transp); in main()
133 static void exm_proc(struct svc_req *rqstp, SVCXPRT *transp) in exm_proc() argument
154 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
155 svcerr_decode(transp); in exm_proc()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_freeargs/
Drpc_svc_freeargs_svc.c38 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
39 char *simplePing(int inVar, SVCXPRT * transp);
86 char *simplePing(int inVar, SVCXPRT * transp) in simplePing() argument
96 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
116 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
117 svcerr_decode(transp); in rcp_service()
121 result = (char *)(*proc) (argument, transp); in rcp_service()
124 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
125 svcerr_systemerr(transp); in rcp_service()
127 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
/external/ltp/testcases/network/rpc/basic_tests/rpc01/
Drpc_server.c16 void service_request(struct svc_req *rqstp, SVCXPRT * transp);
20 SVCXPRT *transp; in main() local
79 transp = svcudp_create(RPC_ANYSOCK); in main()
80 svc_register(transp, program, version, service_request, IPPROTO_UDP); in main()
81 transp = svctcp_create(RPC_ANYSOCK, 0, 0); in main()
82 svc_register(transp, program, version, service_request, IPPROTO_TCP); in main()
87 void service_request(struct svc_req *rqstp, SVCXPRT * transp) in service_request() argument
93 svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); in service_request()
101 svc_getargs(transp, (xdrproc_t)xdr_receive_data, in service_request()
103 svc_sendreply(transp, (xdrproc_t)xdr_send_data, in service_request()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_4/
Dtirpc_svc_4.c50 SVCXPRT *transp = NULL; in main() local
62 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
64 if (transp == NULL) { in main()
69 if (!svc_reg(transp, progNum, VERSNUM, exm_proc, nconf)) { in main()
97 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
120 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
121 svcerr_decode(transp); in exm_proc()
128 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
129 svcerr_systemerr(transp); in exm_proc()
131 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_3/
Dtirpc_svc_3.c46 SVCXPRT *transp; in main() local
54 transp = svc_tp_create(exm_proc, progNum, VERSNUM, nconf); in main()
56 if (transp == NULL) { in main()
84 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
107 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
108 svcerr_decode(transp); in exm_proc()
115 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
116 svcerr_systemerr(transp); in exm_proc()
118 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/
Dtirpc_svc_7.c59 SVCXPRT *transp = NULL; in main() local
70 transp = svc_tp_create(exm_proc, progNum, VERSNUM, nconf); in main()
72 if (transp == NULL) { in main()
77 if (!svc_reg(transp, progNum, VERSNUM, exm_proc, nconf)) { in main()
145 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
191 svcerr_noproc(transp); in exm_proc()
196 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
197 svcerr_decode(transp); in exm_proc()
204 && (svc_sendreply(transp, xdr_result, (char *)result) == FALSE)) { in exm_proc()
205 svcerr_systemerr(transp); in exm_proc()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_getargs/
Drpc_svc_getargs.c38 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
39 char *simplePing(int inVar, SVCXPRT * transp);
86 char *simplePing(int inVar, SVCXPRT * transp) in simplePing() argument
96 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
116 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
124 result = (char *)(*proc) (argument, transp); in rcp_service()
127 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
128 svcerr_systemerr(transp); in rcp_service()
130 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/
Dtirpc_svc_6.c124 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
148 svcerr_systemerr(transp); in exm_proc()
154 svcerr_weakauth(transp); in exm_proc()
160 svcerr_noproc(transp); in exm_proc()
165 if (svc_getargs(transp, xdr_argument, (int *)&argument) == FALSE) { in exm_proc()
166 svcerr_decode(transp); in exm_proc()
173 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
174 svcerr_systemerr(transp); in exm_proc()
176 if (svc_freeargs(transp, xdr_argument, (int *)&argument) == FALSE) { in exm_proc()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_2/
Drpc_svc_2.c37 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
111 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
133 svcerr_noproc(transp); in rcp_service()
139 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
140 svcerr_decode(transp); in rcp_service()
144 result = (char *)(*proc) ((struct datas *)&argument, transp); in rcp_service()
147 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
148 svcerr_systemerr(transp); in rcp_service()
150 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/
Dtirpc_svc_8.c125 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
150 svcerr_systemerr(transp); in exm_proc()
156 svcerr_weakauth(transp); in exm_proc()
162 svcerr_noproc(transp); in exm_proc()
167 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
168 svcerr_decode(transp); in exm_proc()
175 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
176 svcerr_systemerr(transp); in exm_proc()
178 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_sendreply/
Drpc_svc_sendreply.c38 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
39 char *simplePing(int inVar, SVCXPRT * transp);
86 char *simplePing(int inVar, SVCXPRT * transp) in simplePing() argument
96 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
116 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
120 result = (char *)(*proc) (argument, transp); in rcp_service()
123 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
130 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/
Dtirpc_svc_9.c138 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
159 svcerr_systemerr(transp); in exm_proc()
165 svcerr_weakauth(transp); in exm_proc()
171 svcerr_noproc(transp); in exm_proc()
176 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
177 svcerr_decode(transp); in exm_proc()
184 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
185 svcerr_systemerr(transp); in exm_proc()
187 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_svc_dg_create/
Dtirpc_svc_dg_create.c42 SVCXPRT *transp = NULL; in main() local
51 transp = svc_dg_create(sock, 0, 0); in main()
52 test_status = ((SVCXPRT *) transp != NULL) ? 0 : 1; in main()
54 if (transp != NULL) in main()
55 svc_destroy(transp); in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_svc_vc_create/
Dtirpc_svc_vc_create.c42 SVCXPRT *transp = NULL; in main() local
56 transp = svc_vc_create(sock, 0, 0); in main()
57 test_status = ((SVCXPRT *) transp != NULL) ? 0 : 1; in main()
59 if (transp != NULL) in main()
60 svc_destroy(transp); in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/
Drpc_clntraw_create_complex.c124 static void serverDisp(struct svc_req *rqstp, SVCXPRT * transp) in serverDisp() argument
131 if (svc_sendreply(transp, (xdrproc_t) xdr_void, 0) == FALSE) { in serverDisp()
139 svcerr_noproc(transp); in serverDisp()
143 if (!svc_getargs(transp, (xdrproc_t) xdr_int, (char *)&numRec)) { in serverDisp()
144 svcerr_decode(transp); in serverDisp()
149 if (svc_sendreply(transp, (xdrproc_t) xdr_int, (char *)&numRec) == in serverDisp()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_svc_tp_create/
Dtirpc_svc_tp_create.c44 SVCXPRT *transp; in main() local
53 transp = svc_tp_create(exm_proc, progNum, VERSNUM, nconf); in main()
55 test_status = (transp != NULL) ? 0 : 1; in main()
63 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_set/
Dtirpc_rpcb_set.c46 SVCXPRT *transp = NULL; in main() local
55 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
56 if (transp == NULL) { in main()
61 test_status = !rpcb_set(progNum, VERSNUM, nconf, &(transp->xp_ltaddr)); in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_unset/
Dtirpc_rpcb_unset.c46 SVCXPRT *transp = NULL; in main() local
55 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
56 if (transp == NULL) { in main()
61 if (!rpcb_set(progNum, VERSNUM, nconf, &(transp->xp_ltaddr))) { in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_reg/
Dtirpc_svc_reg.c52 SVCXPRT *transp = NULL; in main() local
67 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
70 test_status = !svc_reg(transp, progNum, VERSNUM, exm_proc, nconf); in main()
79 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
Dtirpc_svc_reg_stress.c53 SVCXPRT *transp = NULL; in main() local
71 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
75 if (svc_reg(transp, progNum, VERSNUM, exm_proc, nconf)) in main()
93 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_unreg/
Dtirpc_svc_unreg.c52 SVCXPRT *transp = NULL; in main() local
67 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
70 svc_reg(transp, progNum, VERSNUM, exm_proc, nconf); in main()
84 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
Dtirpc_svc_unreg_stress.c53 SVCXPRT *transp = NULL; in main() local
70 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
75 svc_reg(transp, progNum, VERSNUM, exm_proc, nconf); in main()
90 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument

123