/illumos-gate/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))
|
/illumos-gate/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 | 54 xdr_authsys_parms(XDR *xdrs, struct authsys_parms *p) argument 56 if (xdr_u_int(xdrs, &(p->aup_time)) && 57 xdr_string(xdrs, &(p->aup_machname), MAX_MACHINE_NAME) && 58 xdr_uid_t(xdrs, (uid_t *)&(p->aup_uid)) && 59 xdr_gid_t(xdrs, (gid_t *)&(p->aup_gid)) && 60 xdr_array(xdrs, (caddr_t *)&(p->aup_gids), 71 xdr_authloopback_parms(XDR *xdrs, struct authsys_parms *p) argument 73 if (xdr_u_int(xdrs, &(p->aup_time)) && 74 xdr_string(xdrs, &(p->aup_machname), MAX_MACHINE_NAME) && 75 xdr_uid_t(xdrs, (uid_ 88 xdr_uid_t(XDR *xdrs, uid_t *ip) argument 100 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_float.c | 60 xdr_float(XDR *xdrs, float *fp) argument 62 switch (xdrs->x_op) { 65 return (XDR_PUTINT32(xdrs, (int *)fp)); 68 return (XDR_GETINT32(xdrs, (int *)fp)); 77 xdr_double(XDR *xdrs, double *dp) argument 83 switch (xdrs->x_op) { 87 return (XDR_PUTBYTES(xdrs, (char *)&val, sizeof (val))); 90 ret = XDR_GETBYTES(xdrs, (char *)dp, sizeof (double)); 104 xdr_quadruple(XDR *xdrs, long double *fp) argument 113 switch (xdrs 130 xdr_float(XDR *xdrs, float *fp) argument 216 xdr_double(XDR *xdrs, double *dp) argument 311 xdr_quadruple(XDR *xdrs, long double *fp) argument [all...] |
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));
|
/illumos-gate/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 | 47 xdr_ypbind_resptype(XDR *xdrs, ypbind_resptype *objp) argument 49 return (xdr_enum(xdrs, (enum_t *)objp)); 53 xdr_ypbind_domain(XDR *xdrs, ypbind_domain *objp) argument 55 if (!xdr_string(xdrs, &objp->ypbind_domainname, YPMAXDOMAIN)) 57 return (xdr_rpcvers(xdrs, &objp->ypbind_vers)); 61 xdr_ypbind_binding(XDR *xdrs, ypbind_binding *objp) argument 63 if (!xdr_pointer(xdrs, (char **)&objp->ypbind_nconf, 66 if (!xdr_pointer(xdrs, (char **)&objp->ypbind_svcaddr, 69 if (!xdr_string(xdrs, &objp->ypbind_servername, ~0)) 71 if (!xdr_rpcvers(xdrs, 77 xdr_ypbind_resp(XDR *xdrs, ypbind_resp *objp) argument 99 xdr_ypbind_setdom(XDR *xdrs, ypbind_setdom *objp) argument [all...] |
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | yppasswdxdr.c | 36 xdr_passwd(XDR *xdrs, struct passwd *pw) argument 38 if (!xdr_wrapstring(xdrs, &pw->pw_name)) { 41 if (!xdr_wrapstring(xdrs, &pw->pw_passwd)) { 44 if (!xdr_uid_t(xdrs, &pw->pw_uid)) { 47 if (!xdr_gid_t(xdrs, (&pw->pw_gid))) { 50 if (!xdr_wrapstring(xdrs, &pw->pw_gecos)) { 53 if (!xdr_wrapstring(xdrs, &pw->pw_dir)) { 56 if (!xdr_wrapstring(xdrs, &pw->pw_shell)) { 63 xdr_yppasswd(XDR *xdrs, struct yppasswd *yppw) argument 65 if (!xdr_wrapstring(xdrs, [all...] |
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rpc_calmsg.c | 56 xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg) argument 61 if (xdrs->x_op == XDR_ENCODE) { 66 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT + 96 if (xdrs->x_op == XDR_DECODE) { 97 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT); 118 buf = XDR_INLINE(xdrs, RNDUP(oa->oa_length)); 120 if (xdr_opaque(xdrs, oa->oa_base, 128 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT); 130 if (xdr_enum(xdrs, &oa->oa_flavor) == FALSE || 131 xdr_u_int(xdrs, [all...] |
H A D | rpc_sztypes.c | 42 xdr_uint64(XDR *xdrs, uint64 *objp) argument 44 return (xdr_u_longlong_t(xdrs, objp)); 48 xdr_int64(XDR *xdrs, int64 *objp) argument 50 return (xdr_longlong_t(xdrs, objp)); 54 xdr_uint32(XDR *xdrs, uint32 *objp) argument 56 return (xdr_u_int(xdrs, objp)); 60 xdr_int32(XDR *xdrs, int32 *objp) argument 62 return (xdr_int(xdrs, objp));
|
H A D | rpcb_prot.c | 54 xdr_rpcb(XDR *xdrs, RPCB *objp) argument 56 if (!xdr_rpcprog(xdrs, &objp->r_prog)) 58 if (!xdr_rpcvers(xdrs, &objp->r_vers)) 60 if (!xdr_string(xdrs, &objp->r_netid, ~0)) 62 if (!xdr_string(xdrs, &objp->r_addr, ~0)) 64 if (!xdr_string(xdrs, &objp->r_owner, ~0)) 74 xdr_rpcb_rmtcallargs(XDR *xdrs, struct rpcb_rmtcallargs *objp) argument 78 if (!xdr_rpcprog(xdrs, &objp->prog)) 80 if (!xdr_rpcvers(xdrs, &objp->vers)) 82 if (!xdr_rpcproc(xdrs, 107 xdr_rpcb_rmtcallres(XDR *xdrs, struct rpcb_rmtcallres *objp) argument 117 xdr_netbuf(XDR *xdrs, struct netbuf *objp) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | nfsauth_xdr.c | 36 xdr_varg(XDR *xdrs, varg_t *vap) argument 38 if (!xdr_u_int(xdrs, &vap->vers)) 43 if (!xdr_nfsauth_arg(xdrs, &vap->arg_u.arg)) 58 xdr_nfsauth_arg(XDR *xdrs, nfsauth_arg_t *argp) argument 60 if (!xdr_u_int(xdrs, &argp->cmd)) 62 if (!xdr_netobj(xdrs, &argp->areq.req_client)) 64 if (!xdr_string(xdrs, &argp->areq.req_netid, ~0)) 66 if (!xdr_string(xdrs, &argp->areq.req_path, A_MAXPATH)) 68 if (!xdr_int(xdrs, &argp->areq.req_flavor)) 70 if (!xdr_uid_t(xdrs, 82 xdr_nfsauth_res(XDR *xdrs, nfsauth_res_t *argp) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_auth_xdr.c | 35 xdr_varg(XDR *xdrs, varg_t *vap) argument 37 if (!xdr_u_int(xdrs, &vap->vers)) 42 if (!xdr_nfsauth_arg(xdrs, &vap->arg_u.arg)) 57 xdr_nfsauth_arg(XDR *xdrs, nfsauth_arg_t *argp) argument 59 if (!xdr_u_int(xdrs, &argp->cmd)) 61 if (!xdr_netobj(xdrs, &argp->areq.req_client)) 63 if (!xdr_string(xdrs, &argp->areq.req_netid, ~0)) 65 if (!xdr_string(xdrs, &argp->areq.req_path, A_MAXPATH)) 67 if (!xdr_int(xdrs, &argp->areq.req_flavor)) 69 if (!xdr_uid_t(xdrs, 81 xdr_nfsauth_res(XDR *xdrs, nfsauth_res_t *argp) argument [all...] |
H A D | bootparam_xdr.c | 33 xdr_bp_machine_name_t(XDR *xdrs, bp_machine_name_t *objp) argument 35 return (xdr_string(xdrs, objp, MAX_MACHINE_NAME)); 39 xdr_bp_path_t(XDR *xdrs, bp_path_t *objp) argument 41 return (xdr_string(xdrs, objp, MAX_PATH_LEN)); 45 xdr_bp_fileid_t(XDR *xdrs, bp_fileid_t *objp) argument 47 return (xdr_string(xdrs, objp, MAX_FILEID)); 51 xdr_ip_addr_t(XDR *xdrs, ip_addr_t *objp) argument 53 if (!xdr_char(xdrs, &objp->net)) 55 if (!xdr_char(xdrs, &objp->host)) 57 if (!xdr_char(xdrs, 70 xdr_bp_address(XDR *xdrs, bp_address *objp) argument 77 xdr_bp_whoami_arg(XDR *xdrs, bp_whoami_arg *objp) argument 83 xdr_bp_whoami_res(XDR *xdrs, bp_whoami_res *objp) argument 95 xdr_bp_getfile_arg(XDR *xdrs, bp_getfile_arg *objp) argument 105 xdr_bp_getfile_res(XDR *xdrs, bp_getfile_res *objp) argument [all...] |
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | authdesprt.c | 51 xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) argument 56 ATTEMPT(xdr_enum(xdrs, (enum_t *)&cred->adc_namekind)); 59 ATTEMPT(xdr_string(xdrs, &cred->adc_fullname.name, 61 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.key, 63 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&cred->adc_fullname.window, 67 ATTEMPT(xdr_int(xdrs, (int *)&cred->adc_nickname)); 75 xdr_authdes_verf(XDR *xdrs, struct authdes_verf *verf) argument 80 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&verf->adv_xtimestamp, 82 ATTEMPT(xdr_opaque(xdrs, (caddr_t)&verf->adv_int_u,
|
H A D | sec_gen.c | 50 XDR *xdrs, xdrproc_t xfunc, caddr_t xwhere) 52 return (*xfunc)(xdrs, xwhere); 60 authany_unwrap(AUTH *auth, XDR *xdrs, xdrproc_t xfunc, caddr_t xwhere) argument 62 return (*xfunc)(xdrs, xwhere); 49 authany_wrap(AUTH *auth, caddr_t buf, u_int buflen, XDR *xdrs, xdrproc_t xfunc, caddr_t xwhere) argument
|
H A D | authu_prot.c | 57 xdr_authunix_parms(XDR *xdrs, struct authunix_parms *p) argument 59 if (xdr_u_int(xdrs, &p->aup_time) && 60 xdr_string(xdrs, &p->aup_machname, MAX_MACHINE_NAME) && 61 xdr_int(xdrs, (int *)&(p->aup_uid)) && 62 xdr_int(xdrs, (int *)&(p->aup_gid)) && 63 xdr_array(xdrs, (caddr_t *)&(p->aup_gids), 75 xdr_uid_t(XDR *xdrs, uid_t *ip) argument 78 (void) (xdr_short(xdrs, (short *)ip)); 79 return (xdr_int32(xdrs, (int32_t *)ip)); 82 return (xdr_int(xdrs, (int32_ 93 xdr_gid_t(XDR *xdrs, gid_t *ip) argument 113 xdr_authkern(XDR *xdrs) argument 151 xdr_authloopback(XDR *xdrs) argument [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypserv_resolv_common.c | 56 xdr_ypfwdreq_key4(XDR *xdrs, struct ypfwdreq_key4 *ps) argument 58 return (xdr_ypmap_wrap_string(xdrs, &ps->map) && 59 xdr_datum(xdrs, &ps->keydat) && 60 xdr_u_long(xdrs, &ps->xid) && 61 xdr_u_long(xdrs, &ps->ip) && 62 xdr_u_short(xdrs, &ps->port)); 67 xdr_ypfwdreq_key6(XDR *xdrs, struct ypfwdreq_key6 *ps) argument 72 return (xdr_ypmap_wrap_string(xdrs, &ps->map) && 73 xdr_datum(xdrs, &ps->keydat) && 74 xdr_u_long(xdrs, [all...] |
H A D | ypv1_xdr.c | 54 _xdr_yprequest(XDR *xdrs, struct yprequest *ps) argument 67 return (xdr_union(xdrs, 77 _xdr_ypresponse(XDR *xdrs, struct ypresponse *ps) argument 90 return (xdr_union(xdrs, 102 _xdr_ypbind_oldsetdom(XDR *xdrs, struct ypbind_setdom *ps) 106 return (xdr_ypdomain_wrap_string(xdrs, &domain) && 107 xdr_yp_binding(xdrs, &ps->ypsetdom_binding));
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | adb_xdr.c | 45 xdr_krb5_key_data(XDR *xdrs, krb5_key_data *objp) argument 49 if (!xdr_krb5_int16(xdrs, &objp->key_data_ver)) 51 if (!xdr_krb5_int16(xdrs, &objp->key_data_kvno)) 53 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[0])) 55 if (!xdr_krb5_int16(xdrs, &objp->key_data_type[1])) 58 if (!xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[0])) 60 if (!xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[1])) 64 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[0], 69 if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[1], 80 xdr_osa_pw_hist_ent(XDR *xdrs, osa_pw_hist_en argument 91 xdr_osa_princ_ent_rec(XDR *xdrs, osa_princ_ent_t objp) argument 128 XDR xdrs; local [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | pol_xdr.c | 19 xdr_u_int32(XDR *xdrs, uint32_t *up) argument 23 switch (xdrs->x_op) { 27 return (xdr_u_long(xdrs, &ul)); 30 if (!xdr_u_long(xdrs, &ul)) { 43 bool_t xdr_nullstring(XDR *xdrs, char **objp) argument 47 if (xdrs->x_op == XDR_ENCODE) { 53 if (! xdr_u_int(xdrs, &size)) { 56 switch (xdrs->x_op) { 68 return (xdr_opaque(xdrs, *objp, size)); 72 return (xdr_opaque(xdrs, *obj 88 xdr_osa_policy_ent_rec(XDR *xdrs, osa_policy_ent_t objp) argument [all...] |
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/ |
H A D | bootparam_prot_xdr.c | 40 xdr_bp_machine_name_t(XDR *xdrs, bp_machine_name_t *objp) argument 42 if (!xdr_string(xdrs, objp, MAX_MACHINE_NAME)) { 49 xdr_bp_path_t(XDR *xdrs, bp_path_t *objp) argument 51 if (!xdr_string(xdrs, objp, MAX_PATH_LEN)) { 58 xdr_bp_fileid_t(XDR *xdrs, bp_fileid_t *objp) argument 60 if (!xdr_string(xdrs, objp, MAX_FILEID)) { 67 xdr_ip_addr_t(XDR *xdrs, ip_addr_t *objp) argument 69 if (!xdr_char(xdrs, &objp->net)) { 72 if (!xdr_char(xdrs, &objp->host)) { 75 if (!xdr_char(xdrs, 85 xdr_bp_address(XDR *xdrs, bp_address *objp) argument 103 xdr_bp_whoami_arg(XDR *xdrs, bp_whoami_arg *objp) argument 112 xdr_bp_whoami_res(XDR *xdrs, bp_whoami_res *objp) argument 127 xdr_bp_getfile_arg(XDR *xdrs, bp_getfile_arg *objp) argument 139 xdr_bp_getfile_res(XDR *xdrs, bp_getfile_res *objp) argument [all...] |