/sunrpc/ |
A D | xdr_mem.c | 75 xdrs->x_op = op; in xdrmem_create() 79 xdrs->x_private = xdrs->x_base = addr; in xdrmem_create() 80 xdrs->x_handy = size; in xdrmem_create() 108 xdrs->x_handy -= 4; in xdrmem_getlong() 110 xdrs->x_private += 4; in xdrmem_getlong() 124 xdrs->x_handy -= 4; in xdrmem_putlong() 126 xdrs->x_private += 4; in xdrmem_putlong() 169 return (u_long) xdrs->x_private - (u_long) xdrs->x_base; in xdrmem_getpos() 179 caddr_t lastaddr = xdrs->x_private + xdrs->x_handy; in xdrmem_setpos() 219 xdrs->x_handy -= 4; in xdrmem_getint32() [all …]
|
A D | xdr_intXX_t.c | 32 switch (xdrs->x_op) in xdr_int64_t() 37 return (XDR_PUTINT32(xdrs, &t1) && XDR_PUTINT32(xdrs, &t2)); in xdr_int64_t() 39 if (!XDR_GETINT32(xdrs, &t1) || !XDR_GETINT32(xdrs, &t2)) in xdr_int64_t() 53 xdr_quad_t (XDR *xdrs, quad_t *ip) in libc_hidden_nolink_sunrpc() 66 switch (xdrs->x_op) in libc_hidden_nolink_sunrpc() 99 switch (xdrs->x_op) in libc_hidden_nolink_sunrpc() 117 switch (xdrs->x_op) in libc_hidden_nolink_sunrpc() 141 switch (xdrs->x_op) in libc_hidden_def() 165 switch (xdrs->x_op) in libc_hidden_nolink_sunrpc() 189 switch (xdrs->x_op) in libc_hidden_nolink_sunrpc() [all …]
|
A D | xdr.c | 104 switch (xdrs->x_op) in libc_hidden_def() 144 switch (xdrs->x_op) in libc_hidden_def() 211 switch (xdrs->x_op) in libc_hidden_def() 255 return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, &t2)); in libc_hidden_def() 260 if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2)) in libc_hidden_def() 291 return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, &t2)); in libc_hidden_def() 296 if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2)) in libc_hidden_def() 344 switch (xdrs->x_op) in libc_hidden_def() 377 switch (xdrs->x_op) in libc_hidden_def() 455 switch (xdrs->x_op) in libc_hidden_def() [all …]
|
A D | key_prot.c | 35 xdr_keystatus (XDR * xdrs, keystatus * objp) in xdr_keystatus() argument 37 if (!xdr_enum (xdrs, (enum_t *) objp)) in xdr_keystatus() 45 xdr_keybuf (XDR * xdrs, keybuf objp) in libc_hidden_nolink_sunrpc() 47 if (!xdr_opaque (xdrs, objp, HEXKEYBYTES)) in libc_hidden_nolink_sunrpc() 70 if (!xdr_des_block (xdrs, &objp->deskey)) in libc_hidden_nolink_sunrpc() 82 if (!xdr_netobj (xdrs, &objp->remotekey)) in libc_hidden_nolink_sunrpc() 84 if (!xdr_des_block (xdrs, &objp->deskey)) in libc_hidden_nolink_sunrpc() 93 if (!xdr_keystatus (xdrs, &objp->status)) in libc_hidden_nolink_sunrpc() 109 xdr_unixcred (XDR * xdrs, unixcred * objp) in libc_hidden_nolink_sunrpc() 111 if (!xdr_u_int (xdrs, &objp->uid)) in libc_hidden_nolink_sunrpc() [all …]
|
A D | xdr_sizeof.c | 55 xdrs->x_handy += len; in x_putbytes() 60 x_getpostn (const XDR *xdrs) in x_getpostn() argument 62 return xdrs->x_handy; in x_getpostn() 83 xdrs->x_handy += len; in x_inline() 89 free (xdrs->x_private); in x_inline() 92 xdrs->x_base = 0; in x_inline() 96 xdrs->x_handy += len; in x_inline() 109 x_destroy (XDR *xdrs) in x_destroy() argument 111 xdrs->x_handy = 0; in x_destroy() 112 xdrs->x_base = 0; in x_destroy() [all …]
|
A D | xdr_stdio.c | 86 xdrs->x_op = op; in xdrstdio_create() 90 xdrs->x_private = (caddr_t) file; in xdrstdio_create() 91 xdrs->x_handy = 0; in xdrstdio_create() 92 xdrs->x_base = 0; in xdrstdio_create() 100 xdrstdio_destroy (XDR *xdrs) in xdrstdio_destroy() argument 107 xdrstdio_getlong (XDR *xdrs, long *lp) in xdrstdio_getlong() argument 131 (FILE *) xdrs->x_private) != 1)) in xdrstdio_getbytes() 140 (FILE *) xdrs->x_private) != 1)) in xdrstdio_putbytes() 146 xdrstdio_getpos (const XDR *xdrs) in xdrstdio_getpos() argument 152 xdrstdio_setpos (XDR *xdrs, u_int pos) in xdrstdio_setpos() argument [all …]
|
A D | rpc_prot.c | 55 if (xdr_enum (xdrs, &(ap->oa_flavor))) in xdr_opaque_auth() 56 return xdr_bytes (xdrs, &ap->oa_base, in xdr_opaque_auth() 66 xdr_des_block (XDR *xdrs, des_block *blkp) in libc_hidden_nolink_sunrpc() 81 if (!xdr_opaque_auth (xdrs, &(ar->ar_verf))) in libc_hidden_nolink_sunrpc() 90 if (!xdr_u_long (xdrs, &(ar->ar_vers.low))) in libc_hidden_nolink_sunrpc() 112 if (!xdr_u_long (xdrs, &(rr->rj_vers.low))) in libc_hidden_nolink_sunrpc() 133 xdr_replymsg (XDR *xdrs, struct rpc_msg *rmsg) in xdr_replymsg() argument 135 if (xdr_u_long (xdrs, &(rmsg->rm_xid)) && in xdr_replymsg() 152 xdr_callhdr (XDR *xdrs, struct rpc_msg *cmsg) in libc_hidden_nolink_sunrpc() 158 (xdrs->x_op == XDR_ENCODE) && in libc_hidden_nolink_sunrpc() [all …]
|
A D | clnt_raw.c | 90 XDR *xdrs; in clntraw_create() local 100 xdrs = &clp->xdr_stream; in clntraw_create() 114 clp->mcnt = XDR_GETPOS (xdrs); in clntraw_create() 115 XDR_DESTROY (xdrs); in clntraw_create() 136 XDR *xdrs = &clp->xdr_stream; in libc_hidden_nolink_sunrpc() local 147 xdrs->x_op = XDR_ENCODE; in libc_hidden_nolink_sunrpc() 148 XDR_SETPOS (xdrs, 0); in libc_hidden_nolink_sunrpc() 171 xdrs->x_op = XDR_DECODE; in libc_hidden_nolink_sunrpc() 172 XDR_SETPOS (xdrs, 0); in libc_hidden_nolink_sunrpc() 202 xdrs->x_op = XDR_FREE; in libc_hidden_nolink_sunrpc() [all …]
|
A D | tst-xdrmem2.c | 29 XDR xdrs; in do_test() local 45 xdrmem_create (&xdrs, (char *) buf, 2 * ps, XDR_ENCODE); in do_test() 49 if (! xdr_##type (&xdrs, &v_##type)) \ in do_test() 58 u_int pos = xdr_getpos (&xdrs); in do_test() 62 if (! xdr_setpos (&xdrs, pos)) in do_test() 72 xdr_destroy (&xdrs); in do_test() 74 xdrmem_create (&xdrs, (char *) buf, 2 * ps, XDR_DECODE); in do_test() 78 if (! xdr_##type (&xdrs, &v_##type)) \ in do_test() 93 pos = xdr_getpos (&xdrs); in do_test() 97 if (! xdr_setpos (&xdrs, pos)) in do_test() [all …]
|
A D | svc_raw.c | 100 XDR *xdrs; in svcraw_recv() local 104 xdrs = &srp->xdr_stream; in svcraw_recv() 105 xdrs->x_op = XDR_DECODE; in svcraw_recv() 106 XDR_SETPOS (xdrs, 0); in svcraw_recv() 116 XDR *xdrs; in svcraw_reply() local 120 xdrs = &srp->xdr_stream; in svcraw_reply() 121 xdrs->x_op = XDR_ENCODE; in svcraw_reply() 122 XDR_SETPOS (xdrs, 0); in svcraw_reply() 143 XDR *xdrs; in svcraw_freeargs() local 147 xdrs = &srp->xdr_stream; in svcraw_freeargs() [all …]
|
A D | authuxprot.c | 47 xdr_authunix_parms (XDR * xdrs, struct authunix_parms *p) in xdr_authunix_parms() argument 49 if (xdr_u_long (xdrs, &(p->aup_time)) in xdr_authunix_parms() 50 && xdr_string (xdrs, &(p->aup_machname), MAX_MACHINE_NAME) in xdr_authunix_parms() 52 ? xdr_u_short (xdrs, (u_short *) & (p->aup_uid)) in xdr_authunix_parms() 53 : xdr_u_int (xdrs, (u_int *) & (p->aup_uid))) in xdr_authunix_parms() 55 ? xdr_u_short (xdrs, (u_short *) & (p->aup_gid)) in xdr_authunix_parms() 56 : xdr_u_int (xdrs, (u_int *) & (p->aup_gid))) in xdr_authunix_parms() 57 && xdr_array (xdrs, (caddr_t *) & (p->aup_gids), in xdr_authunix_parms()
|
A D | authdes_prot.c | 44 xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred) in xdr_authdes_cred() argument 49 ATTEMPT (xdr_enum (xdrs, (enum_t *) & cred->adc_namekind)); in xdr_authdes_cred() 53 ATTEMPT (xdr_string (xdrs, &cred->adc_fullname.name, MAXNETNAMELEN)); in xdr_authdes_cred() 54 ATTEMPT (xdr_opaque (xdrs, (caddr_t) & cred->adc_fullname.key, in xdr_authdes_cred() 56 ATTEMPT (xdr_opaque (xdrs, (caddr_t) & cred->adc_fullname.window, in xdr_authdes_cred() 60 ATTEMPT (xdr_opaque (xdrs, (caddr_t) & cred->adc_nickname, in xdr_authdes_cred() 71 xdr_authdes_verf (register XDR *xdrs, register struct authdes_verf *verf) in libc_hidden_nolink_sunrpc() 76 ATTEMPT (xdr_opaque (xdrs, (caddr_t) & verf->adv_xtimestamp, in libc_hidden_nolink_sunrpc() 78 ATTEMPT (xdr_opaque (xdrs, (caddr_t) & verf->adv_int_u, in libc_hidden_nolink_sunrpc()
|
A D | auth_unix.c | 101 XDR xdrs; in authunix_create() local 246 XDR xdrs; in authunix_validate() local 265 xdrs.x_op = XDR_FREE; in authunix_validate() 281 XDR xdrs; in authunix_refresh() local 303 xdrs.x_op = XDR_ENCODE; in authunix_refresh() 304 XDR_SETPOS (&xdrs, 0); in authunix_refresh() 312 xdrs.x_op = XDR_FREE; in authunix_refresh() 314 XDR_DESTROY (&xdrs); in authunix_refresh() 344 XDR *xdrs = &xdr_stream; in marshal_new_auth() local 352 au->au_mpos = XDR_GETPOS (xdrs); in marshal_new_auth() [all …]
|
A D | rpc_cmsg.c | 43 xdr_callmsg (XDR *xdrs, struct rpc_msg *cmsg) in xdr_callmsg() argument 48 if (xdrs->x_op == XDR_ENCODE) in xdr_callmsg() 58 buf = XDR_INLINE (xdrs, 8 * BYTES_PER_XDR_UNIT in xdr_callmsg() 95 if (xdrs->x_op == XDR_DECODE) in xdr_callmsg() 97 buf = XDR_INLINE (xdrs, 8 * BYTES_PER_XDR_UNIT); in xdr_callmsg() 129 if (xdr_opaque (xdrs, oa->oa_base, in xdr_callmsg() 143 buf = XDR_INLINE (xdrs, 2 * BYTES_PER_XDR_UNIT); in xdr_callmsg() 147 xdr_u_int (xdrs, &oa->oa_length) == FALSE) in xdr_callmsg() 169 if (xdr_opaque (xdrs, oa->oa_base, in xdr_callmsg() 186 xdr_u_long (xdrs, &(cmsg->rm_xid)) && in xdr_callmsg() [all …]
|
A D | auth_none.c | 78 XDR *xdrs; in authnone_create_once() local 84 xdrs = &xdr_stream; in authnone_create_once() 85 xdrmem_create (xdrs, ap->marshalled_client, in authnone_create_once() 87 (void) xdr_opaque_auth (xdrs, &ap->no_client.ah_cred); in authnone_create_once() 88 (void) xdr_opaque_auth (xdrs, &ap->no_client.ah_verf); in authnone_create_once() 89 ap->mcnt = XDR_GETPOS (xdrs); in authnone_create_once() 90 XDR_DESTROY (xdrs); in authnone_create_once() 102 authnone_marshal (AUTH *client, XDR *xdrs) in libc_hidden_nolink_sunrpc() 111 return (*xdrs->x_ops->x_putbytes) (xdrs, ap->marshalled_client, ap->mcnt); in libc_hidden_nolink_sunrpc()
|
A D | pmap_rmt.c | 118 xdr_u_long (xdrs, &(cap->proc))) in libc_hidden_nolink_sunrpc() 127 position = XDR_GETPOS (xdrs); in libc_hidden_nolink_sunrpc() 129 XDR_SETPOS (xdrs, lenposition); in libc_hidden_nolink_sunrpc() 132 XDR_SETPOS (xdrs, position); in libc_hidden_nolink_sunrpc() 219 XDR *xdrs = &xdr_stream; in clnt_broadcast() local 282 if ((!xdr_callmsg (xdrs, &msg)) in clnt_broadcast() 288 outlen = (int) xdr_getpos (xdrs); in clnt_broadcast() 289 xdr_destroy (xdrs); in clnt_broadcast() 352 if (xdr_replymsg (xdrs, &msg)) in clnt_broadcast() 372 xdrs->x_op = XDR_FREE; in clnt_broadcast() [all …]
|
A D | xdr_float.c | 84 xdr_float (XDR *xdrs, float *fp) in xdr_float() argument 92 switch (xdrs->x_op) { in xdr_float() 117 return (XDR_PUTLONG(xdrs, &tmp)); in xdr_float() 147 if (XDR_GETLONG(xdrs, &tmp)) { in xdr_float() 203 xdr_double (XDR *xdrs, double *dp) in xdr_double() argument 212 switch (xdrs->x_op) { in xdr_double() 241 XDR_PUTLONG(xdrs, lp+LSW)); in xdr_double() 247 return (XDR_PUTLONG(xdrs, tmp) && in xdr_double() 248 XDR_PUTLONG(xdrs, tmp+1)); in xdr_double() 255 if (!XDR_GETLONG(xdrs, lp++) || !XDR_GETLONG(xdrs, lp)) in xdr_double() [all …]
|
A D | pmap_prot.c | 42 xdr_pmap (XDR *xdrs, struct pmap *regs) in xdr_pmap() argument 45 if (xdr_u_long (xdrs, ®s->pm_prog) && in xdr_pmap() 46 xdr_u_long (xdrs, ®s->pm_vers) && in xdr_pmap() 47 xdr_u_long (xdrs, ®s->pm_prot)) in xdr_pmap() 48 return xdr_u_long (xdrs, ®s->pm_port); in xdr_pmap()
|
A D | xdr_ref.c | 58 xdr_reference (XDR *xdrs, in xdr_reference() argument 70 switch (xdrs->x_op) in xdr_reference() 87 stat = (*proc) (xdrs, loc, LASTUNSIGNED); in xdr_reference() 89 if (xdrs->x_op == XDR_FREE) in xdr_reference() 119 xdr_pointer (XDR *xdrs, char **objpp, u_int obj_size, xdrproc_t xdr_obj) in libc_hidden_nolink_sunrpc() 125 if (!xdr_bool (xdrs, &more_data)) in libc_hidden_nolink_sunrpc() 134 return xdr_reference (xdrs, objpp, obj_size, xdr_obj); in libc_hidden_nolink_sunrpc()
|
A D | xdr_array.c | 57 xdr_array (XDR *xdrs, in xdr_array() argument 75 if (!xdr_u_int (xdrs, sizep)) in xdr_array() 84 if ((c > maxsize || c > UINT_MAX / elsize) && (xdrs->x_op != XDR_FREE)) in xdr_array() 94 switch (xdrs->x_op) in xdr_array() 118 stat = (*elproc) (xdrs, target, LASTUNSIGNED); in xdr_array() 125 if (xdrs->x_op == XDR_FREE) in xdr_array() 149 xdr_vector (XDR *xdrs, char *basep, u_int nelem, u_int elemsize, in libc_hidden_def() 158 if (!(*xdr_elem) (xdrs, elptr, LASTUNSIGNED)) in libc_hidden_def()
|
A D | xdr_rec.c | 179 xdrs->x_private = (caddr_t) rstrm; in xdrrec_create() 203 xdrrec_getlong (XDR *xdrs, long *lp) in libc_hidden_nolink_sunrpc() 302 xdrrec_getpos (const XDR *xdrs) in xdrrec_getpos() argument 309 switch (xdrs->x_op) in xdrrec_getpos() 328 xdrrec_setpos (XDR *xdrs, u_int pos) in xdrrec_setpos() argument 336 switch (xdrs->x_op) in xdrrec_setpos() 368 xdrrec_inline (XDR *xdrs, u_int len) in xdrrec_inline() argument 373 switch (xdrs->x_op) in xdrrec_inline() 401 xdrrec_destroy (XDR *xdrs) in xdrrec_destroy() argument 467 xdrrec_skiprecord (XDR *xdrs) in xdrrec_skiprecord() argument [all …]
|
A D | svc_tcp.c | 128 XDR xdrs; member 308 XDR_DESTROY (&(cd->xdrs)); in svctcp_destroy() 386 if (!xdrrec_eof (&(cd->xdrs))) in svctcp_stat() 395 XDR *xdrs = &(cd->xdrs); in svctcp_recv() local 397 xdrs->x_op = XDR_DECODE; in svctcp_recv() 398 (void) xdrrec_skiprecord (xdrs); in svctcp_recv() 399 if (xdr_callmsg (xdrs, msg)) in svctcp_recv() 418 XDR *xdrs = &(((struct tcp_conn *) (xprt->xp_p1))->xdrs); in svctcp_freeargs() local 420 xdrs->x_op = XDR_FREE; in svctcp_freeargs() 428 XDR *xdrs = &(cd->xdrs); in svctcp_reply() local [all …]
|
A D | pmap_prot2.c | 80 xdr_pmaplist (XDR *xdrs, struct pmaplist **rp) in xdr_pmaplist() argument 88 int freeing = (xdrs->x_op == XDR_FREE); in xdr_pmaplist() 94 if (!xdr_bool (xdrs, &more_elements)) in xdr_pmaplist() 105 if (!xdr_reference (xdrs, (caddr_t *) rp, in xdr_pmaplist()
|
A D | svc_authux.c | 51 XDR xdrs; in _svcauth_unix() local 70 xdrmem_create (&xdrs, msg->rm_call.cb_cred.oa_base, auth_len, XDR_DECODE); in _svcauth_unix() 71 buf = XDR_INLINE (&xdrs, auth_len); in _svcauth_unix() 108 else if (!xdr_authunix_parms (&xdrs, aup)) in _svcauth_unix() 110 xdrs.x_op = XDR_FREE; in _svcauth_unix() 111 (void) xdr_authunix_parms (&xdrs, aup); in _svcauth_unix() 133 XDR_DESTROY (&xdrs); in _svcauth_unix()
|
/sunrpc/rpc/ |
A D | xdr.h | 176 (*(xdrs)->x_ops->x_getlong)(xdrs, longp) 178 (*(xdrs)->x_ops->x_getlong)(xdrs, longp) 181 (*(xdrs)->x_ops->x_putlong)(xdrs, longp) 196 (*(xdrs)->x_ops->x_getpostn)(xdrs) 198 (*(xdrs)->x_ops->x_getpostn)(xdrs) 201 (*(xdrs)->x_ops->x_setpostn)(xdrs, pos) 203 (*(xdrs)->x_ops->x_setpostn)(xdrs, pos) 206 (*(xdrs)->x_ops->x_inline)(xdrs, len) 208 (*(xdrs)->x_ops->x_inline)(xdrs, len) 213 (*(xdrs)->x_ops->x_destroy)(xdrs); \ [all …]
|