Searched defs:xdrs (Results 1 - 25 of 148) sorted by relevance

123456

/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_dictxdr.c40 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 Dauthdes_prot.c50 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 Dauthsys_prot.c54 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_uid_t(XDR *xdrs, uid_t *ip) argument
75 return (xdr_short(xdrs, (short *)ip));
76 return (xdr_int(xdrs, (int *)ip));
83 xdr_gid_t(XDR *xdrs, gid_ argument
[all...]
H A Drpc_callmsg.c49 xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg) argument
54 if (xdrs->x_op == XDR_ENCODE) {
64 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT +
100 if (xdrs->x_op == XDR_DECODE) {
101 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT);
127 buf = XDR_INLINE(xdrs, RNDUP(oa->oa_length));
129 if (xdr_opaque(xdrs, oa->oa_base,
143 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT);
145 if (xdr_enum(xdrs, &oa->oa_flavor) == FALSE ||
146 xdr_u_int(xdrs,
[all...]
H A Drpcb_st_xdr.c41 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 Dxdr_float.c60 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...]
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dypupd.c48 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 Dyp_b_xdr.c47 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 Dyppasswdxdr.c36 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 Drpc_sztypes.c42 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 Drpc_calmsg.c54 xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg) argument
59 if (xdrs->x_op == XDR_ENCODE) {
69 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT +
105 if (xdrs->x_op == XDR_DECODE) {
106 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT);
127 buf = XDR_INLINE(xdrs, RNDUP(oa->oa_length));
129 if (xdr_opaque(xdrs, oa->oa_base,
137 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT);
139 if (xdr_enum(xdrs, &oa->oa_flavor) == FALSE ||
140 xdr_u_int(xdrs,
[all...]
H A Dxdr_array.c58 xdr_array(XDR *xdrs, caddr_t *addrp, uint_t *sizep, const uint_t maxsize, argument
68 if (!xdr_u_int(xdrs, sizep)) {
73 xdrs->x_op != XDR_FREE) {
83 switch (xdrs->x_op) {
102 stat = (*elproc)(xdrs, target, LASTUNSIGNED);
109 if (xdrs->x_op == XDR_FREE) {
H A Dxdr_refer.c68 xdr_reference(XDR *xdrs, caddr_t *pp, uint_t size, const xdrproc_t proc) argument
74 switch (xdrs->x_op) {
88 stat = (*proc)(xdrs, loc, LASTUNSIGNED);
90 if (xdrs->x_op == XDR_FREE) {
117 xdr_pointer(XDR *xdrs, char **objpp, uint_t obj_size, const xdrproc_t xdr_obj) argument
122 if (!xdr_bool(xdrs, &more_data))
128 return (xdr_reference(xdrs, objpp, obj_size, xdr_obj));
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthdesprt.c51 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 Dsec_gen.c50 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 Dkey_prot.c44 xdr_keystatus(XDR *xdrs, keystatus *objp) argument
46 if (!xdr_enum(xdrs, (enum_t *)objp))
52 xdr_keybuf(XDR *xdrs, keybuf objp) argument
54 if (!xdr_opaque(xdrs, objp, HEXKEYBYTES))
60 xdr_netnamestr(XDR *xdrs, netnamestr *objp) argument
62 if (!xdr_string(xdrs, objp, MAXNETNAMELEN))
69 xdr_cryptkeyarg(XDR *xdrs, cryptkeyarg *objp) argument
71 if (!xdr_netnamestr(xdrs, &objp->remotename))
73 if (!xdr_des_block(xdrs, &objp->deskey))
79 xdr_cryptkeyarg2(XDR *xdrs, cryptkeyarg argument
91 xdr_cryptkeyres(XDR *xdrs, cryptkeyres *objp) argument
107 xdr_unixcred(XDR *xdrs, unixcred *objp) argument
121 xdr_getcredres(XDR *xdrs, getcredres *objp) argument
137 xdr_key_netstarg(XDR *xdrs, key_netstarg *objp) argument
152 xdr_key_netstres(XDR *xdrs, key_netstres *objp) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dnfsauth_xdr.c36 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 Dnfs_auth_xdr.c35 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 Dbootparam_xdr.c33 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/lib/krb5/kadm5/srv/
H A Dadb_xdr.c45 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/cmd/ypcmd/
H A Dypserv_resolv_common.c56 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 Dypv1_xdr.c54 _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/plugins/kdb/db2/
H A Dpol_xdr.c19 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 Dbootparam_prot_xdr.c40 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...]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_token.c107 XDR xdrs; local
121 xdrmem_create(&xdrs, (const caddr_t)buf, *len, XDR_ENCODE);
123 if (!smb_token_xdr(&xdrs, obj)) {
130 xdr_destroy(&xdrs);
141 XDR xdrs; local
143 xdrmem_create(&xdrs, (const caddr_t)buf, len, XDR_DECODE);
147 xdr_destroy(&xdrs);
152 if (!smb_logon_xdr(&xdrs, obj)) {
158 xdr_destroy(&xdrs);

Completed in 267 milliseconds

123456