/l4re-core-master/uclibc/lib/contrib/uclibc/libc/inet/rpc/ |
A D | xdr_mem.c | 79 xdrs->x_op = op; in xdrmem_create() 81 xdrs->x_private = xdrs->x_base = addr; in xdrmem_create() 82 xdrs->x_handy = size; in xdrmem_create() 106 xdrs->x_handy -= 4; in xdrmem_getlong() 108 xdrs->x_private += 4; in xdrmem_getlong() 122 xdrs->x_handy -= 4; in xdrmem_putlong() 124 xdrs->x_private += 4; in xdrmem_putlong() 167 return (u_long) xdrs->x_private - (u_long) xdrs->x_base; in xdrmem_getpos() 177 caddr_t lastaddr = xdrs->x_private + xdrs->x_handy; in xdrmem_setpos() 215 xdrs->x_handy -= 4; in xdrmem_getint32() [all …]
|
A D | xdr.c | 118 switch (xdrs->x_op) in libc_hidden_def() 149 switch (xdrs->x_op) in libc_hidden_def() 183 switch (xdrs->x_op) in libc_hidden_def() 219 switch (xdrs->x_op) in libc_hidden_def() 259 return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, (long *) &t2)); in libc_hidden_def() 264 if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, (long *) &t2)) in libc_hidden_def() 333 switch (xdrs->x_op) in xdr_u_short() 397 switch (xdrs->x_op) in xdr_bool() 493 switch (xdrs->x_op) in libc_hidden_def() 547 switch (xdrs->x_op) in libc_hidden_def() [all …]
|
A D | xdr_intXX_t.c | 24 xdr_int64_t (XDR *xdrs, int64_t *ip) in xdr_int64_t() argument 31 switch (xdrs->x_op) in xdr_int64_t() 36 return (XDR_PUTINT32(xdrs, &t1) && XDR_PUTINT32(xdrs, (int32_t *) &t2)); in xdr_int64_t() 38 if (!XDR_GETINT32(xdrs, &t1) || !XDR_GETINT32(xdrs, (int32_t *) &t2)) in xdr_int64_t() 58 switch (xdrs->x_op) in strong_alias_untyped() 84 switch (xdrs->x_op) in strong_alias_untyped() 101 switch (xdrs->x_op) in xdr_uint32_t() 120 switch (xdrs->x_op) in xdr_int16_t() 143 switch (xdrs->x_op) in xdr_uint16_t() 166 switch (xdrs->x_op) in xdr_int8_t() [all …]
|
A D | xdr_stdio.c | 80 xdrs->x_op = op; in xdrstdio_create() 81 xdrs->x_ops = &xdrstdio_ops; in xdrstdio_create() 82 xdrs->x_private = (caddr_t) file; in xdrstdio_create() 83 xdrs->x_handy = 0; in xdrstdio_create() 84 xdrs->x_base = 0; in xdrstdio_create() 92 xdrstdio_destroy (XDR *xdrs) in xdrstdio_destroy() argument 99 xdrstdio_getlong (XDR *xdrs, long *lp) in xdrstdio_getlong() argument 123 (FILE *) xdrs->x_private) != 1)) in xdrstdio_getbytes() 132 (FILE *) xdrs->x_private) != 1)) in xdrstdio_putbytes() 138 xdrstdio_getpos (const XDR *xdrs) in xdrstdio_getpos() argument [all …]
|
A D | rpc_prot.c | 62 if (xdr_enum (xdrs, &(ap->oa_flavor))) in xdr_opaque_auth() 63 return xdr_bytes (xdrs, &ap->oa_base, in xdr_opaque_auth() 73 xdr_des_block (XDR *xdrs, des_block *blkp) in libc_hidden_def() 87 if (!xdr_opaque_auth (xdrs, &(ar->ar_verf))) in xdr_accepted_reply() 96 if (!xdr_u_long (xdrs, &(ar->ar_vers.low))) in xdr_accepted_reply() 118 if (!xdr_u_long (xdrs, &(rr->rj_vers.low))) in libc_hidden_def() 139 xdr_replymsg (XDR *xdrs, struct rpc_msg *rmsg) in xdr_replymsg() argument 141 if (xdr_u_long (xdrs, &(rmsg->rm_xid)) && in xdr_replymsg() 158 xdr_callhdr (XDR *xdrs, struct rpc_msg *cmsg) in libc_hidden_def() 164 (xdrs->x_op == XDR_ENCODE) && in libc_hidden_def() [all …]
|
A D | clnt_raw.c | 96 XDR *xdrs = &clp->xdr_stream; in clntraw_create() local 118 clp->mcnt = XDR_GETPOS (xdrs); in clntraw_create() 119 XDR_DESTROY (xdrs); in clntraw_create() 140 XDR *xdrs = &clp->xdr_stream; in clntraw_call() local 151 xdrs->x_op = XDR_ENCODE; in clntraw_call() 152 XDR_SETPOS (xdrs, 0); in clntraw_call() 172 xdrs->x_op = XDR_DECODE; in clntraw_call() 173 XDR_SETPOS (xdrs, 0); in clntraw_call() 203 xdrs->x_op = XDR_FREE; in clntraw_call() 221 XDR *xdrs = &clp->xdr_stream; in clntraw_freeres() local [all …]
|
A D | auth_unix.c | 96 XDR xdrs; in authunix_create() local 211 XDR xdrs; in authunix_validate() local 231 xdrs.x_op = XDR_FREE; in authunix_validate() 247 XDR xdrs; in authunix_refresh() local 269 xdrs.x_op = XDR_ENCODE; in authunix_refresh() 270 XDR_SETPOS (&xdrs, 0); in authunix_refresh() 278 xdrs.x_op = XDR_FREE; in authunix_refresh() 280 XDR_DESTROY (&xdrs); in authunix_refresh() 311 XDR *xdrs = &xdr_stream; in marshal_new_auth() local 319 au->au_mpos = XDR_GETPOS (xdrs); in marshal_new_auth() [all …]
|
A D | svc_raw.c | 109 XDR *xdrs; in svcraw_recv() local 113 xdrs = &srp->xdr_stream; in svcraw_recv() 114 xdrs->x_op = XDR_DECODE; in svcraw_recv() 115 XDR_SETPOS (xdrs, 0); in svcraw_recv() 125 XDR *xdrs; in svcraw_reply() local 129 xdrs = &srp->xdr_stream; in svcraw_reply() 130 xdrs->x_op = XDR_ENCODE; in svcraw_reply() 131 XDR_SETPOS (xdrs, 0); in svcraw_reply() 152 XDR *xdrs; in svcraw_freeargs() local 156 xdrs = &srp->xdr_stream; in svcraw_freeargs() [all …]
|
A D | rpc_cmsg.c | 50 xdr_callmsg (XDR *xdrs, struct rpc_msg *cmsg) in xdr_callmsg() argument 55 if (xdrs->x_op == XDR_ENCODE) in xdr_callmsg() 65 buf = XDR_INLINE (xdrs, 8 * BYTES_PER_XDR_UNIT in xdr_callmsg() 102 if (xdrs->x_op == XDR_DECODE) in xdr_callmsg() 104 buf = XDR_INLINE (xdrs, 8 * BYTES_PER_XDR_UNIT); in xdr_callmsg() 136 if (xdr_opaque (xdrs, oa->oa_base, in xdr_callmsg() 150 buf = XDR_INLINE (xdrs, 2 * BYTES_PER_XDR_UNIT); in xdr_callmsg() 154 xdr_u_int (xdrs, &oa->oa_length) == FALSE) in xdr_callmsg() 176 if (xdr_opaque (xdrs, oa->oa_base, in xdr_callmsg() 193 xdr_u_long (xdrs, &(cmsg->rm_xid)) && in xdr_callmsg() [all …]
|
A D | pmap_rmt.c | 116 xdr_u_long (xdrs, &(cap->proc))) in xdr_rmtcall_args() 119 lenposition = XDR_GETPOS (xdrs); in xdr_rmtcall_args() 125 position = XDR_GETPOS (xdrs); in xdr_rmtcall_args() 127 XDR_SETPOS (xdrs, lenposition); in xdr_rmtcall_args() 130 XDR_SETPOS (xdrs, position); in xdr_rmtcall_args() 233 XDR *xdrs = &xdr_stream; in clnt_broadcast() local 296 if ((!xdr_callmsg (xdrs, &msg)) || (!xdr_rmtcall_args (xdrs, &a))) in clnt_broadcast() 301 outlen = (int) xdr_getpos (xdrs); in clnt_broadcast() 302 xdr_destroy (xdrs); in clnt_broadcast() 385 xdrs->x_op = XDR_FREE; in clnt_broadcast() [all …]
|
A D | xdr_float.c | 89 xdr_float(XDR *xdrs, float *fp) in xdr_float() argument 97 switch (xdrs->x_op) { in xdr_float() 122 return (XDR_PUTLONG(xdrs, &tmp)); in xdr_float() 152 if (XDR_GETLONG(xdrs, &tmp)) { in xdr_float() 207 xdr_double(XDR *xdrs, double *dp) in xdr_double() argument 216 switch (xdrs->x_op) { in xdr_double() 245 XDR_PUTLONG(xdrs, lp+LSW)); in xdr_double() 251 return (XDR_PUTLONG(xdrs, tmp) && in xdr_double() 252 XDR_PUTLONG(xdrs, tmp+1)); in xdr_double() 259 if (!XDR_GETLONG(xdrs, lp++) || !XDR_GETLONG(xdrs, lp)) in xdr_double() [all …]
|
A D | xdr_rec.c | 180 xdrs->x_ops = &xdrrec_ops; in xdrrec_create() 181 xdrs->x_private = (caddr_t) rstrm; in xdrrec_create() 231 xdrrec_getlong (XDR *xdrs, long *lp) in xdrrec_getlong() argument 268 return xdrrec_putint32 (xdrs, &v); in xdrrec_putlong() 324 xdrrec_getpos (const XDR *xdrs) in xdrrec_getpos() argument 331 switch (xdrs->x_op) in xdrrec_getpos() 358 switch (xdrs->x_op) in xdrrec_setpos() 395 switch (xdrs->x_op) in xdrrec_inline() 423 xdrrec_destroy (XDR *xdrs) in xdrrec_destroy() argument 441 xdrrec_skiprecord (XDR *xdrs) in xdrrec_skiprecord() argument [all …]
|
A D | authunix_prot.c | 48 xdr_authunix_parms (XDR * xdrs, struct authunix_parms *p) in xdr_authunix_parms() argument 50 if (xdr_u_long (xdrs, &(p->aup_time)) in xdr_authunix_parms() 51 && xdr_string (xdrs, &(p->aup_machname), MAX_MACHINE_NAME) in xdr_authunix_parms() 53 ? xdr_u_short (xdrs, (u_short *) & (p->aup_uid)) in xdr_authunix_parms() 54 : xdr_u_int (xdrs, (u_int *) & (p->aup_uid))) in xdr_authunix_parms() 56 ? xdr_u_short (xdrs, (u_short *) & (p->aup_gid)) in xdr_authunix_parms() 57 : xdr_u_int (xdrs, (u_int *) & (p->aup_gid))) in xdr_authunix_parms() 58 && xdr_array (xdrs, (caddr_t *) & (p->aup_gids), in xdr_authunix_parms()
|
A D | auth_none.c | 80 XDR *xdrs; in authnone_create_once() local 86 xdrs = &xdr_stream; in authnone_create_once() 87 xdrmem_create(xdrs, ap->marshalled_client, in authnone_create_once() 89 (void) xdr_opaque_auth(xdrs, &ap->no_client.ah_cred); in authnone_create_once() 90 (void) xdr_opaque_auth(xdrs, &ap->no_client.ah_verf); in authnone_create_once() 91 ap->mcnt = XDR_GETPOS (xdrs); in authnone_create_once() 92 XDR_DESTROY (xdrs); in authnone_create_once() 108 authnone_marshal (AUTH *client, XDR *xdrs) in libc_hidden_def() 117 return (*xdrs->x_ops->x_putbytes) (xdrs, ap->marshalled_client, ap->mcnt); in libc_hidden_def()
|
A D | svc_tcp.c | 112 XDR xdrs; member 279 XDR_DESTROY (&(cd->xdrs)); in svctcp_destroy() 357 if (!xdrrec_eof (&(cd->xdrs))) in svctcp_stat() 366 XDR *xdrs = &(cd->xdrs); in svctcp_recv() local 368 xdrs->x_op = XDR_DECODE; in svctcp_recv() 369 (void) xdrrec_skiprecord (xdrs); in svctcp_recv() 370 if (xdr_callmsg (xdrs, msg)) in svctcp_recv() 389 XDR *xdrs = &(((struct tcp_conn *) (xprt->xp_p1))->xdrs); in svctcp_freeargs() local 391 xdrs->x_op = XDR_FREE; in svctcp_freeargs() 399 XDR *xdrs = &(cd->xdrs); in svctcp_reply() local [all …]
|
A D | xdr_array.c | 60 xdr_array (XDR *xdrs, caddr_t *addrp, u_int *sizep, u_int maxsize, u_int elsize, xdrproc_t elproc) in xdr_array() argument 69 if (!xdr_u_int (xdrs, sizep)) in xdr_array() 78 if ((c > maxsize || c > UINT_MAX / elsize) && (xdrs->x_op != XDR_FREE)) in xdr_array() 89 switch (xdrs->x_op) in xdr_array() 114 stat = (*elproc) (xdrs, target, LASTUNSIGNED); in xdr_array() 121 if (xdrs->x_op == XDR_FREE) in xdr_array() 141 xdr_vector (XDR *xdrs, char *basep, u_int nelem, u_int elemsize, in libc_hidden_def() 150 if (!(*xdr_elem) (xdrs, elptr, LASTUNSIGNED)) in libc_hidden_def()
|
A D | xdr_reference.c | 61 xdr_reference (XDR *xdrs, caddr_t *pp, u_int size, xdrproc_t proc) in xdr_reference() argument 67 switch (xdrs->x_op) in xdr_reference() 85 stat = (*proc) (xdrs, loc, LASTUNSIGNED); in xdr_reference() 87 if (xdrs->x_op == XDR_FREE) in xdr_reference() 116 xdr_pointer (XDR *xdrs, char **objpp, u_int obj_size, xdrproc_t xdr_obj) in libc_hidden_def() 122 if (!xdr_bool (xdrs, &more_data)) in libc_hidden_def() 131 return xdr_reference (xdrs, objpp, obj_size, xdr_obj); in libc_hidden_def()
|
A D | pmap_prot.c | 47 xdr_pmap (XDR *xdrs, struct pmap *regs) in xdr_pmap() argument 50 if (xdr_u_long (xdrs, ®s->pm_prog) && in xdr_pmap() 51 xdr_u_long (xdrs, ®s->pm_vers) && in xdr_pmap() 52 xdr_u_long (xdrs, ®s->pm_prot)) in xdr_pmap() 53 return xdr_u_long (xdrs, ®s->pm_port); in xdr_pmap()
|
A D | svc_unix.c | 108 XDR xdrs; member 280 XDR_DESTROY (&(cd->xdrs)); in svcunix_destroy() 461 if (!xdrrec_eof (&(cd->xdrs))) in svcunix_stat() 470 XDR *xdrs = &(cd->xdrs); in svcunix_recv() local 472 xdrs->x_op = XDR_DECODE; in svcunix_recv() 473 xdrrec_skiprecord (xdrs); in svcunix_recv() 474 if (xdr_callmsg (xdrs, msg)) in svcunix_recv() 499 XDR *xdrs = &(((struct unix_conn *) (xprt->xp_p1))->xdrs); in svcunix_freeargs() local 501 xdrs->x_op = XDR_FREE; in svcunix_freeargs() 509 XDR *xdrs = &(cd->xdrs); in svcunix_reply() local [all …]
|
A D | clnt_tcp.c | 231 XDR *xdrs = &(ct->ct_xdrs); in libc_hidden_def() local 248 xdrs->x_op = XDR_ENCODE; in libc_hidden_def() 254 (!(*xdr_args) (xdrs, args_ptr))) in libc_hidden_def() 261 if (!xdrrec_endofrecord (xdrs, shipnow)) in libc_hidden_def() 277 xdrs->x_op = XDR_DECODE; in libc_hidden_def() 283 if (!xdrrec_skiprecord (xdrs)) in libc_hidden_def() 286 if (!xdr_replymsg (xdrs, &reply_msg)) in libc_hidden_def() 315 xdrs->x_op = XDR_FREE; in libc_hidden_def() 341 XDR *xdrs = &(ct->ct_xdrs); in clnttcp_freeres() local 343 xdrs->x_op = XDR_FREE; in clnttcp_freeres() [all …]
|
A D | svc_authux.c | 56 XDR xdrs; in _svcauth_unix() local 75 xdrmem_create (&xdrs, msg->rm_call.cb_cred.oa_base, auth_len, XDR_DECODE); in _svcauth_unix() 76 buf = XDR_INLINE (&xdrs, auth_len); in _svcauth_unix() 115 else if (!xdr_authunix_parms (&xdrs, aup)) in _svcauth_unix() 117 xdrs.x_op = XDR_FREE; in _svcauth_unix() 118 (void) xdr_authunix_parms (&xdrs, aup); in _svcauth_unix() 140 XDR_DESTROY (&xdrs); in _svcauth_unix()
|
A D | clnt_unix.c | 209 XDR *xdrs = &(ct->ct_xdrs); in libc_hidden_def() local 226 xdrs->x_op = XDR_ENCODE; in libc_hidden_def() 232 (!(*xdr_args) (xdrs, args_ptr))) in libc_hidden_def() 239 if (!xdrrec_endofrecord (xdrs, shipnow)) in libc_hidden_def() 253 xdrs->x_op = XDR_DECODE; in libc_hidden_def() 259 if (!xdrrec_skiprecord (xdrs)) in libc_hidden_def() 262 if (!xdr_replymsg (xdrs, &reply_msg)) in libc_hidden_def() 291 xdrs->x_op = XDR_FREE; in libc_hidden_def() 316 XDR *xdrs = &(ct->ct_xdrs); in clntunix_freeres() local 318 xdrs->x_op = XDR_FREE; in clntunix_freeres() [all …]
|
A D | pmap_prot2.c | 85 xdr_pmaplist (XDR *xdrs, struct pmaplist **rp) in xdr_pmaplist() argument 93 int freeing = (xdrs->x_op == XDR_FREE); in xdr_pmaplist() 99 if (!xdr_bool (xdrs, &more_elements)) in xdr_pmaplist() 110 if (!xdr_reference (xdrs, (caddr_t *) rp, in xdr_pmaplist()
|
A D | clnt_udp.c | 256 XDR *xdrs; in clntudp_call() local 284 xdrs = &(cu->cu_outxdrs); in clntudp_call() 287 xdrs->x_op = XDR_ENCODE; in clntudp_call() 288 XDR_SETPOS (xdrs, cu->cu_xdrpos); in clntudp_call() 295 (!(*xargs) (xdrs, argsp))) in clntudp_call() 297 outlen = (int) XDR_GETPOS (xdrs); in clntudp_call() 451 xdrs->x_op = XDR_FREE; in clntudp_call() 452 (void) xdr_opaque_auth (xdrs, in clntudp_call() 486 XDR *xdrs = &(cu->cu_outxdrs); in clntudp_freeres() local 488 xdrs->x_op = XDR_FREE; in clntudp_freeres() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/include/rpc/ |
A D | xdr.h | 182 (*(xdrs)->x_ops->x_getlong)(xdrs, longp) 184 (*(xdrs)->x_ops->x_getlong)(xdrs, longp) 187 (*(xdrs)->x_ops->x_putlong)(xdrs, longp) 202 (*(xdrs)->x_ops->x_getpostn)(xdrs) 204 (*(xdrs)->x_ops->x_getpostn)(xdrs) 207 (*(xdrs)->x_ops->x_setpostn)(xdrs, pos) 209 (*(xdrs)->x_ops->x_setpostn)(xdrs, pos) 212 (*(xdrs)->x_ops->x_inline)(xdrs, len) 214 (*(xdrs)->x_ops->x_inline)(xdrs, len) 219 (*(xdrs)->x_ops->x_destroy)(xdrs); \ [all …]
|