Home
last modified time | relevance | path

Searched refs:xdrs (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/network/rpc/basic_tests/rpc01/lib/
Dlibrpc01.c22 bool_t xdr_receive_data(XDR *xdrs, struct data **buffer) in xdr_receive_data() argument
29 rc = xdr_long(xdrs, &(bp->address)); in xdr_receive_data()
30 rc = rc && xdr_long(xdrs, &bp->request_id); in xdr_receive_data()
31 rc = rc && xdr_long(xdrs, &bp->data_length); in xdr_receive_data()
34 rc = xdr_char(xdrs, p); in xdr_receive_data()
38 bool_t xdr_send_data(XDR *xdrs, struct data *buffer) in xdr_send_data() argument
43 rc = xdr_long(xdrs, &buffer->address); in xdr_send_data()
44 rc = rc && xdr_long(xdrs, &buffer->request_id); in xdr_send_data()
45 rc = rc && xdr_long(xdrs, &buffer->data_length); in xdr_send_data()
47 rc = xdr_char(xdrs, p); in xdr_send_data()
Dlibrpc01.h31 bool_t xdr_receive_data(XDR *xdrs, struct data **buffer);
32 bool_t xdr_send_data(XDR *xdrs, struct data *buffer);
/external/compiler-rt/test/msan/Linux/
Dsunrpc.cc20 XDR xdrs; in main() local
22 xdrmem_create(&xdrs, buf, sizeof(buf), XDR_ENCODE); in main()
27 bool_t res = FN(&xdrs, &x); in main()
31 xdr_destroy(&xdrs); in main()
33 xdrmem_create(&xdrs, buf, sizeof(buf), XDR_DECODE); in main()
35 res = FN(&xdrs, &y); in main()
38 xdr_destroy(&xdrs); in main()
Dsunrpc_string.cc13 XDR xdrs; in main() local
15 xdrmem_create(&xdrs, buf, sizeof(buf), XDR_ENCODE); in main()
21 bool_t res = xdr_string(&xdrs, &sp, sizeof(s)); in main()
25 xdr_destroy(&xdrs); in main()
27 xdrmem_create(&xdrs, buf, sizeof(buf), XDR_DECODE); in main()
30 res = xdr_string(&xdrs, &sp2, sizeof(s2)); in main()
33 xdr_destroy(&xdrs); in main()
Dsunrpc_bytes.cc13 XDR xdrs; in main() local
15 xdrmem_create(&xdrs, buf, sizeof(buf), XDR_ENCODE); in main()
22 bool_t res = xdr_bytes(&xdrs, &sp, &sz, sizeof(s)); in main()
26 xdr_destroy(&xdrs); in main()
28 xdrmem_create(&xdrs, buf, sizeof(buf), XDR_DECODE); in main()
32 res = xdr_bytes(&xdrs, &sp2, &sz2, sizeof(s2)); in main()
36 xdr_destroy(&xdrs); in main()
/external/compiler-rt/test/tsan/
Dsunrpc.cc9 XDR xdrs; in thr() local
11 xdrmem_create(&xdrs, buf, sizeof(buf), XDR_ENCODE); in thr()
12 xdr_destroy(&xdrs); in thr()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc4843 INTERCEPTOR(void, xdrmem_create, __sanitizer_XDR *xdrs, uptr addr,
4846 COMMON_INTERCEPTOR_ENTER(ctx, xdrmem_create, xdrs, addr, size, op);
4850 REAL(xdrmem_create)(xdrs, addr, size, op);
4851 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, xdrs, sizeof(*xdrs));
4859 INTERCEPTOR(void, xdrstdio_create, __sanitizer_XDR *xdrs, void *file, int op) {
4861 COMMON_INTERCEPTOR_ENTER(ctx, xdrstdio_create, xdrs, file, op);
4865 REAL(xdrstdio_create)(xdrs, file, op);
4866 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, xdrs, sizeof(*xdrs));
4873 INTERCEPTOR(int, F, __sanitizer_XDR *xdrs, T *p) { \
4875 COMMON_INTERCEPTOR_ENTER(ctx, F, xdrs, p); \
[all …]