Home
last modified time | relevance | path

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

123

/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/
Drpc_svc_1.c49 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
96 char *simplePing(union u_argument *inVar, SVCXPRT * transp) in simplePing() argument
103 char *svc_getcaller_test(union u_argument *inVar, SVCXPRT * transp) in svc_getcaller_test() argument
109 sa = svc_getcaller(transp); in svc_getcaller_test()
116 char *intTestProc(union u_argument *in, SVCXPRT * transp) in intTestProc() argument
126 char *lngTestProc(union u_argument *in, SVCXPRT * transp) in lngTestProc() argument
136 char *dblTestProc(union u_argument *in, SVCXPRT * transp) in dblTestProc() argument
146 char *strTestProc(union u_argument *in, SVCXPRT * transp) in strTestProc() argument
156 char *svcGetargsProc(union u_argument *in, SVCXPRT * transp) in svcGetargsProc() argument
165 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.c51 SVCXPRT *transp = NULL; in main() local
62 transp = svc_tp_create(exm_proc, progNum, VERSNUM, nconf); 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
121 svcerr_systemerr(transp); in exm_proc()
127 svcerr_weakauth(transp); in exm_proc()
133 svcerr_noproc(transp); in exm_proc()
138 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
139 svcerr_decode(transp); in exm_proc()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_5/
Dtirpc_svc_5.c42 SVCXPRT *transp; member
58 static void exm_proc(struct svc_req *rqstp, SVCXPRT *transp);
91 this->transp = this->svc_func(this->sock, 1024, 1024); in main()
92 if (this->transp == NULL) { in main()
97 if (!svc_reg(this->transp, progNum, VERSNUM, in main()
115 if (this->transp != NULL) in main()
116 svc_destroy(this->transp); in main()
134 static void exm_proc(struct svc_req *rqstp, SVCXPRT *transp) in exm_proc() argument
155 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
156 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/rpc_suite/rpc/rpc_stdcall_svc_freeargs/
Drpc_svc_freeargs_svc.c39 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
40 char *simplePing(int inVar, SVCXPRT * transp);
87 char *simplePing(int inVar, SVCXPRT * transp) in simplePing() argument
97 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
117 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
118 svcerr_decode(transp); in rcp_service()
122 result = (char *)(*proc) (argument, transp); in rcp_service()
125 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
126 svcerr_systemerr(transp); in rcp_service()
128 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
/external/ltp/testcases/network/rpc/basic_tests/rpc01/
Drpc_server.c17 void service_request(struct svc_req *rqstp, SVCXPRT * transp);
21 SVCXPRT *transp; in main() local
80 transp = svcudp_create(RPC_ANYSOCK); in main()
81 svc_register(transp, program, version, service_request, IPPROTO_UDP); in main()
82 transp = svctcp_create(RPC_ANYSOCK, 0, 0); in main()
83 svc_register(transp, program, version, service_request, IPPROTO_TCP); in main()
88 void service_request(struct svc_req *rqstp, SVCXPRT * transp) in service_request() argument
94 svc_sendreply(transp, (xdrproc_t)xdr_void, NULL); in service_request()
102 svc_getargs(transp, (xdrproc_t)xdr_receive_data, in service_request()
104 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.c51 SVCXPRT *transp = NULL; in main() local
63 transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); in main()
65 if (transp == NULL) { in main()
70 if (!svc_reg(transp, progNum, VERSNUM, exm_proc, nconf)) { in main()
98 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
121 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
122 svcerr_decode(transp); in exm_proc()
129 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
130 svcerr_systemerr(transp); in exm_proc()
132 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.c47 SVCXPRT *transp; in main() local
55 transp = svc_tp_create(exm_proc, progNum, VERSNUM, nconf); in main()
57 if (transp == NULL) { in main()
85 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
108 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
109 svcerr_decode(transp); in exm_proc()
116 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
117 svcerr_systemerr(transp); in exm_proc()
119 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_getargs/
Drpc_svc_getargs.c39 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
40 char *simplePing(int inVar, SVCXPRT * transp);
87 char *simplePing(int inVar, SVCXPRT * transp) in simplePing() argument
97 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
117 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
125 result = (char *)(*proc) (argument, transp); in rcp_service()
128 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
129 svcerr_systemerr(transp); in rcp_service()
131 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/
Dtirpc_svc_7.c60 SVCXPRT *transp = NULL; in main() local
71 transp = svc_tp_create(exm_proc, progNum, VERSNUM, nconf); in main()
73 if (transp == NULL) { in main()
78 if (!svc_reg(transp, progNum, VERSNUM, exm_proc, nconf)) { in main()
146 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
192 svcerr_noproc(transp); in exm_proc()
197 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
198 svcerr_decode(transp); in exm_proc()
205 && (svc_sendreply(transp, xdr_result, (char *)result) == FALSE)) { in exm_proc()
206 svcerr_systemerr(transp); in exm_proc()
[all …]
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/
Dtirpc_svc_6.c125 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
149 svcerr_systemerr(transp); in exm_proc()
155 svcerr_weakauth(transp); in exm_proc()
161 svcerr_noproc(transp); in exm_proc()
166 if (svc_getargs(transp, xdr_argument, (int *)&argument) == FALSE) { in exm_proc()
167 svcerr_decode(transp); in exm_proc()
174 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
175 svcerr_systemerr(transp); in exm_proc()
177 if (svc_freeargs(transp, xdr_argument, (int *)&argument) == FALSE) { in exm_proc()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_sendreply/
Drpc_svc_sendreply.c39 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
40 char *simplePing(int inVar, SVCXPRT * transp);
87 char *simplePing(int inVar, SVCXPRT * transp) in simplePing() argument
97 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
117 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
121 result = (char *)(*proc) (argument, transp); in rcp_service()
124 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
131 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.c126 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
151 svcerr_systemerr(transp); in exm_proc()
157 svcerr_weakauth(transp); in exm_proc()
163 svcerr_noproc(transp); in exm_proc()
168 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
169 svcerr_decode(transp); in exm_proc()
176 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
177 svcerr_systemerr(transp); in exm_proc()
179 if (svc_freeargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_2/
Drpc_svc_2.c38 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp);
112 void rcp_service(register struct svc_req *rqstp, register SVCXPRT * transp) in rcp_service() argument
134 svcerr_noproc(transp); in rcp_service()
140 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in rcp_service()
141 svcerr_decode(transp); in rcp_service()
145 result = (char *)(*proc) ((struct datas *)&argument, transp); in rcp_service()
148 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in rcp_service()
149 svcerr_systemerr(transp); in rcp_service()
151 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.c139 static void exm_proc(struct svc_req *rqstp, SVCXPRT * transp) in exm_proc() argument
160 svcerr_systemerr(transp); in exm_proc()
166 svcerr_weakauth(transp); in exm_proc()
172 svcerr_noproc(transp); in exm_proc()
177 if (svc_getargs(transp, xdr_argument, (char *)&argument) == FALSE) { in exm_proc()
178 svcerr_decode(transp); in exm_proc()
185 && (svc_sendreply(transp, xdr_result, result) == FALSE)) { in exm_proc()
186 svcerr_systemerr(transp); in exm_proc()
188 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_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_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_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