/osnet-11/usr/src/lib/libnisdb/ |
H A D | db_dictxdr.c | 40 xdr_db_dict_desc(XDR *xdrs, db_dict_desc *objp) argument 43 if (!xdr_db_dict_version(xdrs, &objp->impl_vers)) 45 if (!xdr_array(xdrs, (char **)&objp->tables.tables_val, 49 if (!xdr_int(xdrs, &objp->count)) 52 if (xdrs->x_op == XDR_DECODE) { 54 if (!xdr_vers(xdrs, (void**) &db_update_version)) 57 } else if (xdrs->x_op == XDR_ENCODE) { 59 if (!xdr_vers(xdrs, (void**) &db_update_version))
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | authdes_prot.c | 50 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) argument 55 if (!xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)) 59 if (!xdr_string(xdrs, &cred->adc_fullname.name, 62 if (!xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, 65 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, 68 return (xdr_opaque(xdrs, (caddr_t)&cred->adc_nickname, 75 xdr_authdes_verf(XDR *xdrs, struct authdes_verf *verf) argument 80 if (!xdr_opaque(xdrs, (caddr_t)&verf->adv_xtimestamp, 83 return (xdr_opaque(xdrs, (caddr_t)&verf->adv_int_u,
|
H A D | rpc_callmsg.c | 51 xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg) argument 56 if (xdrs->x_op == XDR_ENCODE) { 61 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT 97 if (xdrs->x_op == XDR_DECODE) { 98 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT); 125 buf = XDR_INLINE(xdrs, RNDUP(oa->oa_length)); 127 if (xdr_opaque(xdrs, oa->oa_base, 141 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT); 143 if (xdr_enum(xdrs, &oa->oa_flavor) == FALSE || 144 xdr_u_int(xdrs, [all...] |
H A D | authsys_prot.c | 55 xdr_authsys_parms(XDR *xdrs, struct authsys_parms *p) argument 57 if (xdr_u_int(xdrs, &(p->aup_time)) && 58 xdr_string(xdrs, &(p->aup_machname), MAX_MACHINE_NAME) && 59 xdr_uid_t(xdrs, (uid_t *)&(p->aup_uid)) && 60 xdr_gid_t(xdrs, (gid_t *)&(p->aup_gid)) && 61 xdr_array(xdrs, (caddr_t *)&(p->aup_gids), 72 xdr_authloopback_parms(XDR *xdrs, struct authsys_parms *p) argument 74 if (xdr_u_int(xdrs, &(p->aup_time)) && 75 xdr_string(xdrs, &(p->aup_machname), MAX_MACHINE_NAME) && 76 xdr_uid_t(xdrs, (uid_ 89 xdr_uid_t(XDR *xdrs, uid_t *ip) argument 101 xdr_gid_t(XDR *xdrs, gid_t *ip) argument [all...] |
H A D | rpcb_st_xdr.c | 41 xdr_rpcbs_addrlist(XDR *xdrs, rpcbs_addrlist *objp) argument 43 if (!xdr_u_int(xdrs, (uint_t *)&objp->prog)) 45 if (!xdr_u_int(xdrs, (uint_t *)&objp->vers)) 47 if (!xdr_int(xdrs, &objp->success)) 49 if (!xdr_int(xdrs, &objp->failure)) 51 return (xdr_string(xdrs, &objp->netid, ~0)); 57 xdr_rpcbs_rmtcalllist(XDR *xdrs, rpcbs_rmtcalllist *objp) argument 61 switch (xdrs->x_op) { 63 buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT); 65 if (!xdr_u_int(xdrs, (uint_ 142 xdr_rpcbs_proc(XDR *xdrs, rpcbs_proc objp) argument 149 xdr_rpcbs_addrlist_ptr(XDR *xdrs, rpcbs_addrlist_ptr *objp) argument 179 xdr_rpcbs_rmtcalllist_ptr(XDR *xdrs, rpcbs_rmtcalllist_ptr *objp) argument 186 xdr_rpcb_stat(XDR *xdrs, rpcb_stat *objp) argument 204 xdr_rpcb_stat_byvers(XDR *xdrs, rpcb_stat_byvers objp) argument [all...] |
H A D | svc_auth_loopb.c | 48 XDR xdrs; local 68 xdrmem_create(&xdrs, msg->rm_call.cb_cred.oa_base, auth_len, 70 buf = XDR_INLINE(&xdrs, auth_len); 104 } else if (!xdr_authloopback_parms(&xdrs, aup)) { 105 xdrs.x_op = XDR_FREE; 106 (void) xdr_authloopback_parms(&xdrs, aup); 114 XDR_DESTROY(&xdrs);
|
H A D | xdr_refer.c | 66 xdr_reference(XDR *xdrs, caddr_t *pp, uint_t size, const xdrproc_t proc) argument 72 switch (xdrs->x_op) { 85 stat = (*proc)(xdrs, loc, LASTUNSIGNED); 87 if (xdrs->x_op == XDR_FREE) { 115 xdr_pointer(XDR *xdrs, char **objpp, uint_t obj_size, const xdrproc_t xdr_obj) argument 120 if (!xdr_bool(xdrs, &more_data)) 126 return (xdr_reference(xdrs, objpp, obj_size, xdr_obj));
|
H A D | auth_none.c | 68 XDR *xdrs; local 86 xdrs = &xdr_stream; 87 xdrmem_create(xdrs, ap->marshalled_client, 89 (void) xdr_opaque_auth(xdrs, &ap->no_client.ah_cred); 90 (void) xdr_opaque_auth(xdrs, &ap->no_client.ah_verf); 91 ap->mcnt = XDR_GETPOS(xdrs); 92 XDR_DESTROY(xdrs); 100 authnone_marshal(AUTH *client, XDR *xdrs) argument 112 res = (*xdrs->x_ops->x_putbytes)(xdrs, [all...] |
H A D | pmap_prot.c | 50 xdr_pmap(XDR *xdrs, struct pmap *objp) argument 54 switch (xdrs->x_op) { 56 buf = XDR_INLINE(xdrs, 4 * BYTES_PER_XDR_UNIT); 58 if (!XDR_PUTINT32(xdrs, (int32_t *)&objp->pm_prog)) 60 if (!XDR_PUTINT32(xdrs, (int32_t *)&objp->pm_vers)) 62 if (!XDR_PUTINT32(xdrs, (int32_t *)&objp->pm_prot)) 64 if (!XDR_PUTINT32(xdrs, (int32_t *)&objp->pm_port)) 74 buf = XDR_INLINE(xdrs, 4 * BYTES_PER_XDR_UNIT); 76 if (!XDR_GETINT32(xdrs, (int32_t *)&objp->pm_prog)) 78 if (!XDR_GETINT32(xdrs, (int32_ 120 xdr_pmaplist_ptr(XDR *xdrs, pmaplist_ptr *rp) argument 168 xdr_pmaplist(XDR *xdrs, PMAPLIST **rp) argument 179 xdr_rmtcallargs(XDR *xdrs, struct p_rmtcallargs *cap) argument 219 xdr_rmtcallres(XDR *xdrs, struct p_rmtcallres *crp) argument [all...] |
H A D | rpcb_prot.c | 50 xdr_rpcb(XDR *xdrs, RPCB *objp) argument 52 if (!xdr_u_int(xdrs, (uint_t *)&objp->r_prog)) 54 if (!xdr_u_int(xdrs, (uint_t *)&objp->r_vers)) 56 if (!xdr_string(xdrs, &objp->r_netid, ~0)) 58 if (!xdr_string(xdrs, &objp->r_addr, ~0)) 60 return (xdr_string(xdrs, &objp->r_owner, ~0)); 87 xdr_rpcblist_ptr(XDR *xdrs, rpcblist_ptr *rp) argument 95 int freeing = (xdrs->x_op == XDR_FREE); 101 if (!xdr_bool(xdrs, &more_elements)) 112 if (!xdr_reference(xdrs, (caddr_ 135 xdr_rpcblist(XDR *xdrs, RPCBLIST **rp) argument 142 xdr_rpcb_entry(XDR *xdrs, rpcb_entry *objp) argument 156 xdr_rpcb_entry_list_ptr(XDR *xdrs, rpcb_entry_list_ptr *rp) argument 205 xdr_rpcb_rmtcallargs(XDR *xdrs, struct r_rpcb_rmtcallargs *objp) argument 247 xdr_rpcb_rmtcallres(XDR *xdrs, struct r_rpcb_rmtcallres *objp) argument 257 xdr_netbuf(XDR *xdrs, struct netbuf *objp) argument [all...] |
H A D | svc_auth_sys.c | 62 XDR xdrs; local 82 xdrmem_create(&xdrs, msg->rm_call.cb_cred.oa_base, auth_len, 84 buf = XDR_INLINE(&xdrs, auth_len); 118 } else if (! xdr_authsys_parms(&xdrs, aup)) { 119 xdrs.x_op = XDR_FREE; 120 (void) xdr_authsys_parms(&xdrs, aup); 128 XDR_DESTROY(&xdrs);
|
H A D | xdr_array.c | 67 xdr_array(XDR *xdrs, caddr_t *addrp, uint_t *sizep, const uint_t maxsize, argument 77 if (!xdr_u_int(xdrs, sizep)) 81 xdrs->x_op != XDR_FREE) 90 switch (xdrs->x_op) { 110 stat = (*elproc)(xdrs, target); 117 if (xdrs->x_op == XDR_FREE) { 135 xdr_vector(XDR *xdrs, char *basep, const uint_t nelem, argument 143 if (!(*xdr_elem)(xdrs, elptr, LASTUNSIGNED))
|
H A D | key_prot.c | 39 xdr_keystatus(XDR *xdrs, keystatus *objp) argument 41 return (xdr_enum(xdrs, (enum_t *)objp)); 45 xdr_keybuf(XDR *xdrs, keybuf objp) argument 47 return (xdr_opaque(xdrs, objp, HEXKEYBYTES)); 51 xdr_keybuf3(XDR *xdrs, keybuf3 *objp) argument 53 return (xdr_bytes(xdrs, (char **)&objp->keybuf3_val, 58 xdr_netnamestr(XDR *xdrs, netnamestr *objp) argument 60 return (xdr_string(xdrs, objp, MAXNETNAMELEN)); 64 xdr_keylen_t(XDR *xdrs, keylen_t *objp) argument 66 return (xdr_int(xdrs, obj 70 xdr_algtype_t(XDR *xdrs, algtype_t *objp) argument 76 xdr_mechtype(XDR *xdrs, mechtype *objp) argument 84 xdr_keynum_t(XDR *xdrs, keynum_t *objp) argument 90 xdr_deskeyarray(XDR *xdrs, deskeyarray *objp) argument 98 xdr_cryptkeyarg(XDR *xdrs, cryptkeyarg *objp) argument 106 xdr_cryptkeyarg2(XDR *xdrs, cryptkeyarg2 *objp) argument 116 xdr_cryptkeyarg3(XDR *xdrs, cryptkeyarg3 *objp) argument 130 xdr_cryptkeyres(XDR *xdrs, cryptkeyres *objp) argument 140 xdr_cryptkeyres3(XDR *xdrs, cryptkeyres3 *objp) argument 150 xdr_unixcred(XDR *xdrs, unixcred *objp) argument 162 xdr_unixcred3(XDR *xdrs, unixcred3 *objp) argument 174 xdr_getcredres(XDR *xdrs, getcredres *objp) argument 184 xdr_getcredres3(XDR *xdrs, getcredres3 *objp) argument 194 xdr_key_netstarg(XDR *xdrs, key_netstarg *objp) argument 204 xdr_key_netstarg3(XDR *xdrs, key_netstarg3 *objp) argument 220 xdr_key_netstres(XDR *xdrs, key_netstres *objp) argument 234 xdr_key_netstres3(XDR *xdrs, key_netstres3 *objp) argument 244 xdr_deskeyarg3(XDR *xdrs, deskeyarg3 *objp) argument 256 xdr_setkeyarg3(XDR *xdrs, setkeyarg3 *objp) argument [all...] |
H A D | rpc_prot.c | 62 xdr_opaque_auth(XDR *xdrs, struct opaque_auth *ap) argument 64 if (xdr_enum(xdrs, &(ap->oa_flavor))) 65 return (xdr_bytes(xdrs, &ap->oa_base, 74 xdr_des_block(XDR *xdrs, des_block *blkp) argument 76 return (xdr_opaque(xdrs, (caddr_t)blkp, sizeof (des_block))); 85 xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar) argument 88 if (!xdr_opaque_auth(xdrs, &(ar->ar_verf))) 90 if (!xdr_enum(xdrs, (enum_t *)&(ar->ar_stat))) 95 return ((*(ar->ar_results.proc))(xdrs, ar->ar_results.where)); 97 if (!xdr_u_int(xdrs, (uint_ 108 xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr) argument 128 xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg) argument 258 xdr_callhdr(XDR *xdrs, struct rpc_msg *cmsg) argument [all...] |
H A D | svc_raw.c | 132 XDR *xdrs; local 142 xdrs = &srp->xdr_stream; 143 xdrs->x_op = XDR_DECODE; 144 (void) XDR_SETPOS(xdrs, 0); 145 return (xdr_callmsg(xdrs, msg)); 153 XDR *xdrs; local 163 xdrs = &srp->xdr_stream; 164 xdrs->x_op = XDR_ENCODE; 165 (void) XDR_SETPOS(xdrs, 0); 166 return (xdr_replymsg(xdrs, ms 190 XDR *xdrs; local [all...] |
/osnet-11/usr/src/lib/libnsl/yp/ |
H A D | ypupd.c | 48 xdr_yp_buf(XDR *xdrs, yp_buf *objp) argument 50 return (xdr_bytes(xdrs, (char **)&objp->yp_buf_val, 55 xdr_ypupdate_args(XDR *xdrs, ypupdate_args *objp) argument 57 if (!xdr_string(xdrs, &objp->mapname, MAXMAPNAMELEN)) 59 if (!xdr_yp_buf(xdrs, &objp->key)) 61 return (xdr_yp_buf(xdrs, &objp->datum)); 65 xdr_ypdelete_args(XDR *xdrs, ypdelete_args *objp) argument 67 if (!xdr_string(xdrs, &objp->mapname, MAXMAPNAMELEN)) 69 return (xdr_yp_buf(xdrs, &objp->key));
|
H A D | yp_b_xdr.c | 43 xdr_ypbind_resptype(XDR *xdrs, ypbind_resptype *objp) argument 45 return (xdr_enum(xdrs, (enum_t *)objp)); 49 xdr_ypbind_domain(XDR *xdrs, ypbind_domain *objp) argument 51 if (!xdr_string(xdrs, &objp->ypbind_domainname, YPMAXDOMAIN)) 53 return (xdr_rpcvers(xdrs, &objp->ypbind_vers)); 57 xdr_ypbind_binding(XDR *xdrs, ypbind_binding *objp) argument 59 if (!xdr_pointer(xdrs, (char **)&objp->ypbind_nconf, 62 if (!xdr_pointer(xdrs, (char **)&objp->ypbind_svcaddr, 65 if (!xdr_string(xdrs, &objp->ypbind_servername, ~0)) 67 if (!xdr_rpcvers(xdrs, 73 xdr_ypbind_resp(XDR *xdrs, ypbind_resp *objp) argument 95 xdr_ypbind_setdom(XDR *xdrs, ypbind_setdom *objp) argument [all...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | pol_xdr.c | 18 bool_t xdr_nullstring(XDR *xdrs, char **objp) argument 22 if (xdrs->x_op == XDR_ENCODE) { 28 if (! xdr_u_int(xdrs, &size)) { 31 switch (xdrs->x_op) { 43 return (xdr_opaque(xdrs, *objp, size)); 47 return (xdr_opaque(xdrs, *objp, size)); 76 xdr_osa_policy_ent_rec(XDR *xdrs, osa_policy_ent_t objp) argument 78 switch (xdrs->x_op) { 83 if (!xdr_int(xdrs, &objp->version)) 87 if (!xdr_int(xdrs, [all...] |
/osnet-11/usr/src/lib/krb5/kadm5/srv/ |
H A D | adb_xdr.c | 40 xdr_krb5_key_data(XDR *xdrs, krb5_key_data *objp) argument 44 if (!xdr_krb5_int16(xdrs, &objp->key_data_ver)) 46 if (!xdr_krb5_int16(xdrs, &objp->key_data_kvno)) 48 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[0])) 50 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[1])) 52 if (!xdr_krb5_ui_2(xdrs, &objp->key_data_length[0])) 54 if (!xdr_krb5_ui_2(xdrs, &objp->key_data_length[1])) 58 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[0], 63 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[1], 74 xdr_osa_pw_hist_ent(XDR *xdrs, osa_pw_hist_en argument 85 xdr_osa_princ_ent_rec(XDR *xdrs, osa_princ_ent_t objp) argument 122 XDR xdrs; local [all...] |
H A D | xdr_alloc.c | 85 void xdralloc_create(XDR *xdrs, enum xdr_op op) argument 87 xdrs->x_op = op; 88 xdrs->x_ops = &xdralloc_ops; 89 xdrs->x_private = (caddr_t) DynCreate(sizeof(char), -4); 93 caddr_t xdralloc_getdata(XDR *xdrs) argument 95 return (caddr_t) DynGet((DynObject) xdrs->x_private, 0); 98 void xdralloc_release(XDR *xdrs) argument 100 DynRelease((DynObject) xdrs->x_private); 103 static void xdralloc_destroy(XDR *xdrs) argument 105 DynDestroy((DynObject) xdrs 108 xdralloc_notsup_getlong( register XDR *xdrs, long *lp) argument 115 xdralloc_putlong( register XDR *xdrs, long *lp) argument 130 xdralloc_notsup_getbytes( register XDR *xdrs, caddr_t addr, register unsigned int len) argument 139 xdralloc_putbytes( register XDR *xdrs, caddr_t addr, register unsigned int len) argument 151 xdralloc_getpos(XDR *xdrs) argument 156 xdralloc_notsup_setpos( register XDR *xdrs, unsigned int lp) argument 165 xdralloc_inline( register XDR *xdrs, int len) argument [all...] |
/osnet-11/usr/src/lib/libnsl/xpol/ |
H A D | xpol_xdr.c | 36 xdr_xpol_enum(XDR *xdrs, xpol_enum *objp) argument 38 if (!xdr_enum(xdrs, (enum_t *)objp)) 44 xdr_xpol_uids(XDR *xdrs, xpol_uids *objp) argument 46 if (!xdr_uid_t(xdrs, &objp->umin)) 48 if (!xdr_uid_t(xdrs, &objp->umax)) 54 xdr_xpol_ports(XDR *xdrs, xpol_ports *objp) argument 56 if (!xdr_int(xdrs, &objp->proto)) 58 if (!xdr_uint16_t(xdrs, &objp->pmin)) 60 if (!xdr_uint16_t(xdrs, &objp->pmax)) 66 xdr_xpol_args(XDR *xdrs, xpol_arg argument 99 xdr_xpol_rule(XDR *xdrs, xpol_rule_t *objp) argument [all...] |
/osnet-11/usr/src/lib/libfedfs/common/ |
H A D | pathtools.c | 37 XDR xdrs; local 43 xdrmem_create(&xdrs, xdrpath, size, XDR_DECODE); 45 if (!xdr_pathname4(&xdrs, &pathname)) 57 xdr_destroy(&xdrs); 64 XDR xdrs; local 74 xdrmem_create(&xdrs, buf, size, XDR_ENCODE); 75 if (!xdr_pathname4(&xdrs, &pathname)) 78 xdr_destroy(&xdrs);
|
/osnet-11/usr/src/lib/libsmb/common/ |
H A D | smb_door_encdec.c | 44 XDR xdrs; local 61 xdrmem_create(&xdrs, buf, len, XDR_ENCODE); 64 if (!proc(&xdrs, data)) { 71 xdr_destroy(&xdrs); 81 XDR xdrs; local 87 xdrmem_create(&xdrs, buf, len, XDR_DECODE); 88 if (!proc(&xdrs, data)) { 93 xdr_destroy(&xdrs); 101 XDR xdrs; local 116 xdrmem_create(&xdrs, bu 139 XDR xdrs; local 160 XDR xdrs; local 178 XDR xdrs; local 194 lsa_account_xdr(XDR *xdrs, lsa_account_t *objp) argument [all...] |
/osnet-11/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_xdr.c | 36 xdr_nis_attr(XDR *xdrs, nis_attr *objp) argument 38 if (!xdr_string(xdrs, &objp->zattr_ndx, ~0)) 40 return (xdr_bytes(xdrs, (char **)&objp->zattr_val.zattr_val_val, 45 xdr_nis_name(XDR *xdrs, nis_name *objp) argument 47 return (xdr_string(xdrs, objp, ~0)); 51 xdr_zotypes(XDR *xdrs, zotypes *objp) argument 53 return (xdr_enum(xdrs, (enum_t *)objp)); 57 xdr_nstype(XDR *xdrs, nstype *objp) argument 59 return (xdr_enum(xdrs, (enum_t *)objp)); 63 xdr_oar_mask(XDR *xdrs, oar_mas argument 71 xdr_endpoint(XDR *xdrs, endpoint *objp) argument 81 xdr_nis_server(XDR *xdrs, nis_server *objp) argument 95 xdr_directory_obj(XDR *xdrs, directory_obj *objp) argument 113 xdr_entry_col(XDR *xdrs, entry_col *objp) argument 122 xdr_entry_obj(XDR *xdrs, entry_obj *objp) argument 132 xdr_group_obj(XDR *xdrs, group_obj *objp) argument 142 xdr_link_obj(XDR *xdrs, link_obj *objp) argument 154 xdr_table_col(XDR *xdrs, table_col *objp) argument 164 xdr_table_obj(XDR *xdrs, table_obj *objp) argument 180 xdr_objdata(XDR *xdrs, objdata *objp) argument 209 xdr_nis_oid(XDR *xdrs, nis_oid *objp) argument 217 xdr_nis_object(XDR *xdrs, nis_object *objp) argument [all...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | princ_xdr.c | 7 ldap_xdr_krb5_ui_2(XDR *xdrs, krb5_ui_2 *objp) argument 13 if (!xdr_u_int(xdrs, &tmp)) 21 ldap_xdr_krb5_int16(XDR *xdrs, krb5_int16 *objp) argument 27 if (!xdr_int(xdrs, &tmp)) 35 ldap_xdr_nullstring(XDR *xdrs, char **objp) argument 39 if (xdrs->x_op == XDR_ENCODE) { 45 if (! xdr_u_int(xdrs, &size)) { 48 switch (xdrs->x_op) { 60 return (xdr_opaque(xdrs, *objp, size)); 64 return (xdr_opaque(xdrs, *obj 77 ldap_xdr_krb5_kvno(XDR *xdrs, krb5_kvno *objp) argument 95 ldap_xdr_krb5_key_data(XDR *xdrs, krb5_key_data *objp) argument 128 ldap_xdr_osa_pw_hist_ent(XDR *xdrs, osa_pw_hist_ent *objp) argument 139 ldap_xdr_osa_princ_ent_rec(XDR *xdrs, osa_princ_ent_t objp) argument 176 XDR xdrs; local 188 XDR xdrs; local 207 XDR xdrs; local [all...] |