Home
last modified time | relevance | path

Searched refs:xdrs (Results 1 – 25 of 177) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dnfs4_xdr.c57 xdr_nfs_ftype4(register XDR *xdrs, nfs_ftype4 *objp) in xdr_nfs_ftype4() argument
60 if (!xdr_enum(xdrs, (enum_t *)objp)) in xdr_nfs_ftype4()
66 xdr_nfsstat4(register XDR *xdrs, nfsstat4 *objp) in xdr_nfsstat4() argument
69 if (!xdr_enum(xdrs, (enum_t *)objp)) in xdr_nfsstat4()
75 xdr_bitmap4(register XDR *xdrs, bitmap4 *objp) in xdr_bitmap4() argument
78 if (!xdr_array(xdrs, (char **)&objp->bitmap4_val, in xdr_bitmap4()
86 xdr_offset4(register XDR *xdrs, offset4 *objp) in xdr_offset4() argument
89 if (!xdr_uint64_t(xdrs, objp)) in xdr_offset4()
95 xdr_count4(register XDR *xdrs, count4 *objp) in xdr_count4() argument
98 if (!xdr_uint32_t(xdrs, objp)) in xdr_count4()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4x_xdr.c53 xdr_verifier4(XDR *xdrs, verifier4 *objp) in xdr_verifier4() argument
55 if (!xdr_u_longlong_t(xdrs, (u_longlong_t *)objp)) in xdr_verifier4()
61 xdr_sequenceid4(XDR *xdrs, sequenceid4 *objp) in xdr_sequenceid4() argument
63 if (!xdr_uint32_t(xdrs, objp)) in xdr_sequenceid4()
69 xdr_sessionid4(XDR *xdrs, sessionid4 objp) in xdr_sessionid4() argument
71 if (!xdr_opaque(xdrs, objp, NFS4_SESSIONID_SIZE)) in xdr_sessionid4()
77 xdr_slotid4(XDR *xdrs, slotid4 *objp) in xdr_slotid4() argument
80 if (!xdr_uint32_t(xdrs, objp)) in xdr_slotid4()
86 xdr_change_policy4(XDR *xdrs, change_policy4 *objp) in xdr_change_policy4() argument
88 if (!xdr_uint64_t(xdrs, &objp->cp_major)) in xdr_change_policy4()
[all …]
H A Dnfs_log_xdr.c80 xdr_timestruc32_t(XDR *xdrs, timestruc32_t *objp) in xdr_timestruc32_t() argument
82 if (!xdr_int(xdrs, &objp->tv_sec)) in xdr_timestruc32_t()
84 return (xdr_int(xdrs, &objp->tv_nsec)); in xdr_timestruc32_t()
88 xdr_nfsstat(XDR *xdrs, nfsstat *objp) in xdr_nfsstat() argument
90 return (xdr_enum(xdrs, (enum_t *)objp)); in xdr_nfsstat()
94 xdr_nfslog_sharefsres(XDR *xdrs, nfslog_sharefsres *objp) in xdr_nfslog_sharefsres() argument
96 return (xdr_nfsstat(xdrs, objp)); in xdr_nfslog_sharefsres()
100 xdr_nfsreadargs(XDR *xdrs, struct nfsreadargs *ra) in xdr_nfsreadargs() argument
102 if (xdr_fhandle(xdrs, &ra->ra_fhandle) && in xdr_nfsreadargs()
103 xdr_u_int(xdrs, &ra->ra_offset) && in xdr_nfsreadargs()
[all …]
H A Dnfs_acl_xdr.c54 xdr_uid(XDR *xdrs, uid32_t *objp) in xdr_uid() argument
56 if (!xdr_u_int(xdrs, objp)) in xdr_uid()
62 xdr_o_mode(XDR *xdrs, o_mode *objp) in xdr_o_mode() argument
65 if (!xdr_u_short(xdrs, (ushort_t *)objp)) in xdr_o_mode()
71 xdr_aclent(XDR *xdrs, aclent_t *objp) in xdr_aclent() argument
74 if (!xdr_int(xdrs, &objp->a_type)) in xdr_aclent()
76 if (!xdr_uid(xdrs, &objp->a_id)) in xdr_aclent()
78 if (!xdr_o_mode(xdrs, &objp->a_perm)) in xdr_aclent()
84 xdr_secattr(XDR *xdrs, vsecattr_t *objp) in xdr_secattr() argument
88 if (!xdr_u_int(xdrs, &objp->vsa_mask)) in xdr_secattr()
[all …]
H A Dnfs3_xdr.c75 xdr_string3(XDR *xdrs, char **cpp, uint_t maxsize) in xdr_string3() argument
86 switch (xdrs->x_op) { in xdr_string3()
100 if (!xdr_u_int(xdrs, &size)) in xdr_string3()
106 switch (xdrs->x_op) { in xdr_string3()
110 if (!XDR_CONTROL(xdrs, XDR_SKIPBYTES, &size)) in xdr_string3()
126 if (xdr_opaque(xdrs, sp, size)) { in xdr_string3()
142 return (xdr_opaque(xdrs, sp, size)); in xdr_string3()
249 xdr_decode_nfs_fh3(XDR *xdrs, nfs_fh3 *objp) in xdr_decode_nfs_fh3() argument
256 ASSERT(xdrs->x_op == XDR_DECODE); in xdr_decode_nfs_fh3()
261 if (!XDR_GETINT32(xdrs, (int32_t *)&fhsize)) in xdr_decode_nfs_fh3()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfs_log_xdr.c55 xdr_timestruc32_t(XDR *xdrs, timestruc32_t *objp) in xdr_timestruc32_t() argument
57 if (!xdr_int(xdrs, &objp->tv_sec)) in xdr_timestruc32_t()
59 if (!xdr_int(xdrs, &objp->tv_nsec)) in xdr_timestruc32_t()
65 xdr_nfs2_timeval(XDR *xdrs, nfs2_timeval *objp) in xdr_nfs2_timeval() argument
67 if (!xdr_u_int(xdrs, &objp->tv_sec)) in xdr_nfs2_timeval()
69 if (!xdr_u_int(xdrs, &objp->tv_usec)) in xdr_nfs2_timeval()
75 xdr_nfsstat(XDR *xdrs, nfsstat *objp) in xdr_nfsstat() argument
77 if (!xdr_enum(xdrs, (enum_t *)objp)) in xdr_nfsstat()
83 xdr_uint64(XDR *xdrs, uint64 *objp) in xdr_uint64() argument
85 return (xdr_u_longlong_t(xdrs, objp)); in xdr_uint64()
[all …]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_xdr.c44 smb_buf32_xdr(XDR *xdrs, smb_buf32_t *objp) in smb_buf32_xdr() argument
49 if (xdrs->x_op != XDR_DECODE) in smb_buf32_xdr()
52 if (xdr_bytes(xdrs, (char **)&objp->val, &size, maxsize)) { in smb_buf32_xdr()
53 if (xdrs->x_op == XDR_DECODE) in smb_buf32_xdr()
70 smb_string_xdr(XDR *xdrs, smb_string_t *objp) in smb_string_xdr() argument
72 if (!xdr_string(xdrs, &objp->buf, ~0)) in smb_string_xdr()
120 XDR xdrs; in smb_doorhdr_encode() local
123 xdrmem_create(&xdrs, (const caddr_t)buf, buflen, XDR_ENCODE); in smb_doorhdr_encode()
125 if (!smb_doorhdr_xdr(&xdrs, hdr)) in smb_doorhdr_encode()
128 xdr_destroy(&xdrs); in smb_doorhdr_encode()
[all …]
H A Dsmb_token_xdr.c44 smb_privset_helper_xdr(XDR *xdrs, char **privs) in smb_privset_helper_xdr() argument
51 if (xdrs->x_op == XDR_DECODE) { in smb_privset_helper_xdr()
52 pos = xdr_getpos(xdrs); in smb_privset_helper_xdr()
54 if (!xdr_bool(xdrs, &rc)) in smb_privset_helper_xdr()
57 if (!xdr_uint32_t(xdrs, &cnt)) in smb_privset_helper_xdr()
60 rc = xdr_setpos(xdrs, pos); in smb_privset_helper_xdr()
76 if (!xdr_pointer(xdrs, privs, len, (xdrproc_t)smb_privset_xdr)) in smb_privset_helper_xdr()
83 smb_id_xdr(XDR *xdrs, smb_id_t *objp) in smb_id_xdr() argument
87 if ((xdrs->x_op == XDR_ENCODE) || (xdrs->x_op == XDR_FREE)) in smb_id_xdr()
90 if (!xdr_uint32_t(xdrs, &objp->i_attrs)) in smb_id_xdr()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dkadm_rpc_xdr.c38 _xdr_kadm5_principal_ent_rec(XDR *xdrs, kadm5_principal_ent_rec *objp,
42 xdr_krb5_salttype(XDR *xdrs, krb5_int32 *objp); /* SUNWresync121 XXX */
50 bool_t xdr_ui_4(XDR *xdrs, krb5_ui_4 *objp) in xdr_ui_4() argument
54 return xdr_u_int(xdrs, (uint32_t *) objp); in xdr_ui_4()
64 bool_t xdr_nullstring(XDR *xdrs, char **objp) in xdr_nullstring() argument
68 if (xdrs->x_op == XDR_ENCODE) { in xdr_nullstring()
74 if (! xdr_u_int(xdrs, &size)) { in xdr_nullstring()
77 switch (xdrs->x_op) { in xdr_nullstring()
89 return (xdr_opaque(xdrs, *objp, size)); in xdr_nullstring()
93 return (xdr_opaque(xdrs, *objp, size)); in xdr_nullstring()
[all …]
H A Dadmin_xdr.h30 bool_t xdr_ui_4(XDR *xdrs, krb5_ui_4 *objp);
31 bool_t xdr_nullstring(XDR *xdrs, char **objp);
32 bool_t xdr_nulltype(XDR *xdrs, void **objp, xdrproc_t proc);
33 bool_t xdr_krb5_timestamp(XDR *xdrs, krb5_timestamp *objp);
34 bool_t xdr_krb5_kvno(XDR *xdrs, krb5_kvno *objp);
35 bool_t xdr_krb5_deltat(XDR *xdrs, krb5_deltat *objp);
36 bool_t xdr_krb5_flags(XDR *xdrs, krb5_flags *objp);
37 bool_t xdr_krb5_ui_4(XDR *xdrs, krb5_ui_4 *objp);
38 bool_t xdr_krb5_int16(XDR *xdrs, krb5_int16 *objp);
39 bool_t xdr_krb5_ui_2(XDR *xdrs, krb5_ui_2 *objp);
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfs3_xdr.c39 xdr_b_nfs_fh3(XDR *xdrs, nfs_fh3 *objp) in xdr_b_nfs_fh3() argument
41 return (xdr_bytes(xdrs, (char **)&objp->data.data_val, in xdr_b_nfs_fh3()
46 xdr_b_fattr3(XDR *xdrs, fattr3 *objp) in xdr_b_fattr3() argument
48 if (!xdr_enum(xdrs, (enum_t *)&objp->type)) in xdr_b_fattr3()
50 if (!xdr_u_int(xdrs, &objp->mode)) in xdr_b_fattr3()
52 if (!xdr_u_int(xdrs, &objp->nlink)) in xdr_b_fattr3()
54 if (!xdr_u_int(xdrs, &objp->uid)) in xdr_b_fattr3()
56 if (!xdr_u_int(xdrs, &objp->gid)) in xdr_b_fattr3()
58 if (!xdr_u_longlong_t(xdrs, &objp->size)) in xdr_b_fattr3()
60 if (!xdr_u_longlong_t(xdrs, &objp->used)) in xdr_b_fattr3()
[all …]
H A Dnfs_xdr.c38 xdr_b_nfsstat(XDR *xdrs, nfsstat *objp) in xdr_b_nfsstat() argument
40 return (xdr_enum(xdrs, (enum_t *)objp)); in xdr_b_nfsstat()
44 xdr_b_ftype(XDR *xdrs, ftype *objp) in xdr_b_ftype() argument
46 return (xdr_enum(xdrs, (enum_t *)objp)); in xdr_b_ftype()
50 xdr_nfs_fh(XDR *xdrs, nfs_fh *objp) in xdr_nfs_fh() argument
52 return (xdr_opaque(xdrs, objp->data, NFS_FHSIZE)); in xdr_nfs_fh()
56 xdr_b_nfstime(XDR *xdrs, nfstime *objp) in xdr_b_nfstime() argument
58 if (!xdr_u_int(xdrs, &objp->seconds)) { in xdr_b_nfstime()
61 return (xdr_u_int(xdrs, &objp->useconds)); in xdr_b_nfstime()
65 xdr_b_fattr(XDR *xdrs, fattr *objp) in xdr_b_fattr() argument
[all …]
H A Dnfs4_xdr.c45 xdr_b_utf8string(XDR *xdrs, utf8string *objp) in xdr_b_utf8string() argument
47 return (xdr_bytes(xdrs, (char **)&objp->utf8string_val, in xdr_b_utf8string()
52 xdr_nfs_bfh4(XDR *xdrs, struct nfs_bfh4 *objp) in xdr_nfs_bfh4() argument
55 return (xdr_bytes(xdrs, (char **)&data, (uint_t *)&objp->len, in xdr_nfs_bfh4()
60 xdr_b_putfh4_args(XDR *xdrs, putfh4arg_t *objp) in xdr_b_putfh4_args() argument
62 if (!xdr_u_int(xdrs, (uint_t *)&objp->pf_opnum)) in xdr_b_putfh4_args()
64 return (xdr_nfs_bfh4(xdrs, (struct nfs_bfh4 *)&objp->pf_filehandle)); in xdr_b_putfh4_args()
72 xdr_b_compound_args(XDR *xdrs, b_compound_t *objp) in xdr_b_compound_args() argument
74 if (!xdr_b_utf8string(xdrs, &objp->ca_tag)) { in xdr_b_compound_args()
77 if (!xdr_u_int(xdrs, &objp->ca_minorversion)) in xdr_b_compound_args()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dxdr_mem.c65 xdrmem_create(XDR *xdrs, const caddr_t addr, const uint_t size, in xdrmem_create() argument
70 xdrs->x_op = op; in xdrmem_create()
71 xdrs->x_ops = xdrmem_ops(); in xdrmem_create()
72 xdrs->x_private = xdrs->x_base = 0; in xdrmem_create()
81 xdrs->x_handy = 0; in xdrmem_create()
83 xdrs->x_handy = size; in xdrmem_create()
84 xdrs->x_private = xdrs->x_base = addr; in xdrmem_create()
90 xdrmem_destroy(XDR *xdrs) in xdrmem_destroy() argument
95 xdrmem_getlong(XDR *xdrs, long *lp) in xdrmem_getlong() argument
97 if (sizeof (int32_t) > (uint32_t)xdrs->x_handy) { in xdrmem_getlong()
[all …]
H A Dkey_prot.c37 xdr_keystatus(XDR *xdrs, keystatus *objp) in xdr_keystatus() argument
39 return (xdr_enum(xdrs, (enum_t *)objp)); in xdr_keystatus()
43 xdr_keybuf(XDR *xdrs, keybuf objp) in xdr_keybuf() argument
45 return (xdr_opaque(xdrs, objp, HEXKEYBYTES)); in xdr_keybuf()
49 xdr_keybuf3(XDR *xdrs, keybuf3 *objp) in xdr_keybuf3() argument
51 return (xdr_bytes(xdrs, (char **)&objp->keybuf3_val, in xdr_keybuf3()
56 xdr_netnamestr(XDR *xdrs, netnamestr *objp) in xdr_netnamestr() argument
58 return (xdr_string(xdrs, objp, MAXNETNAMELEN)); in xdr_netnamestr()
62 xdr_keylen_t(XDR *xdrs, keylen_t *objp) in xdr_keylen_t() argument
64 return (xdr_int(xdrs, objp)); in xdr_keylen_t()
[all …]
H A Dxdr.c117 xdr_time_t(XDR *xdrs, time_t *tp) in xdr_time_t() argument
121 switch (xdrs->x_op) { in xdr_time_t()
135 return (XDR_PUTINT32(xdrs, &i)); in xdr_time_t()
138 if (!XDR_GETINT32(xdrs, &i)) in xdr_time_t()
153 xdr_int(XDR *xdrs, int *ip) in xdr_int() argument
155 switch (xdrs->x_op) { in xdr_int()
157 return (XDR_PUTINT32(xdrs, ip)); in xdr_int()
159 return (XDR_GETINT32(xdrs, ip)); in xdr_int()
170 xdr_u_int(XDR *xdrs, uint_t *up) in xdr_u_int() argument
172 switch (xdrs->x_op) { in xdr_u_int()
[all …]
H A Drpcb_st_xdr.c39 xdr_rpcbs_addrlist(XDR *xdrs, rpcbs_addrlist *objp) in xdr_rpcbs_addrlist() argument
41 if (!xdr_u_int(xdrs, (uint_t *)&objp->prog)) in xdr_rpcbs_addrlist()
43 if (!xdr_u_int(xdrs, (uint_t *)&objp->vers)) in xdr_rpcbs_addrlist()
45 if (!xdr_int(xdrs, &objp->success)) in xdr_rpcbs_addrlist()
47 if (!xdr_int(xdrs, &objp->failure)) in xdr_rpcbs_addrlist()
49 return (xdr_string(xdrs, &objp->netid, ~0)); in xdr_rpcbs_addrlist()
55 xdr_rpcbs_rmtcalllist(XDR *xdrs, rpcbs_rmtcalllist *objp) in xdr_rpcbs_rmtcalllist() argument
59 switch (xdrs->x_op) { in xdr_rpcbs_rmtcalllist()
61 buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT); in xdr_rpcbs_rmtcalllist()
63 if (!xdr_u_int(xdrs, (uint_t *)&objp->prog)) in xdr_rpcbs_rmtcalllist()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_xdr.c45 xdr_autofs_stat(register XDR *xdrs, autofs_stat *objp) in xdr_autofs_stat() argument
47 if (!xdr_enum(xdrs, (enum_t *)objp)) in xdr_autofs_stat()
53 xdr_autofs_action(register XDR *xdrs, autofs_action *objp) in xdr_autofs_action() argument
55 if (!xdr_enum(xdrs, (enum_t *)objp)) in xdr_autofs_action()
61 xdr_linka(register XDR *xdrs, linka *objp) in xdr_linka() argument
63 if (!xdr_string(xdrs, &objp->dir, AUTOFS_MAXPATHLEN)) in xdr_linka()
65 if (!xdr_string(xdrs, &objp->link, AUTOFS_MAXPATHLEN)) in xdr_linka()
71 xdr_autofs_netbuf(xdrs, objp) in xdr_autofs_netbuf() argument
72 XDR *xdrs; in xdr_autofs_netbuf()
77 if (!xdr_u_int(xdrs, &objp->maxlen)) {
[all …]
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_xdr.c68 xdr_datum(XDR *xdrs, datum *pdatum) in xdr_datum() argument
79 if (xdrs->x_op == XDR_ENCODE) { in xdr_datum()
84 res = (bool)xdr_bytes(xdrs, (char **)&(pdatum->dptr), &dsize, in xdr_datum()
86 if (xdrs->x_op == XDR_DECODE) { in xdr_datum()
99 xdr_ypdomain_wrap_string(XDR *xdrs, char **ppstring) in xdr_ypdomain_wrap_string() argument
101 return ((bool)xdr_string(xdrs, ppstring, YPMAXDOMAIN)); in xdr_ypdomain_wrap_string()
109 xdr_ypmap_wrap_string(XDR *xdrs, char **ppstring) in xdr_ypmap_wrap_string() argument
111 return ((bool)xdr_string(xdrs, ppstring, YPMAXMAP)); in xdr_ypmap_wrap_string()
118 xdr_ypreq_key(XDR *xdrs, struct ypreq_key *ps) in xdr_ypreq_key() argument
120 return ((bool)(xdr_ypdomain_wrap_string(xdrs, &ps->domain) && in xdr_ypreq_key()
[all …]
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_xdr.c36 xdr_nis_attr(XDR *xdrs, nis_attr *objp) in xdr_nis_attr() argument
38 if (!xdr_string(xdrs, &objp->zattr_ndx, ~0)) in xdr_nis_attr()
40 return (xdr_bytes(xdrs, (char **)&objp->zattr_val.zattr_val_val, in xdr_nis_attr()
45 xdr_nis_name(XDR *xdrs, nis_name *objp) in xdr_nis_name() argument
47 return (xdr_string(xdrs, objp, ~0)); in xdr_nis_name()
51 xdr_zotypes(XDR *xdrs, zotypes *objp) in xdr_zotypes() argument
53 return (xdr_enum(xdrs, (enum_t *)objp)); in xdr_zotypes()
57 xdr_nstype(XDR *xdrs, nstype *objp) in xdr_nstype() argument
59 return (xdr_enum(xdrs, (enum_t *)objp)); in xdr_nstype()
63 xdr_oar_mask(XDR *xdrs, oar_mask *objp) in xdr_oar_mask() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_xdr.c60 xdr_umntrequest(XDR *xdrs, umntrequest *objp) in xdr_umntrequest() argument
64 ASSERT(xdrs->x_op == XDR_ENCODE); in xdr_umntrequest()
67 if (!xdr_bool_t(xdrs, &objp->isdirect)) in xdr_umntrequest()
69 if (!xdr_string(xdrs, &objp->mntresource, AUTOFS_MAXPATHLEN)) in xdr_umntrequest()
71 if (!xdr_string(xdrs, &objp->mntpnt, AUTOFS_MAXPATHLEN)) in xdr_umntrequest()
73 if (!xdr_string(xdrs, &objp->fstype, AUTOFS_MAXCOMPONENTLEN)) in xdr_umntrequest()
75 if (!xdr_string(xdrs, &objp->mntopts, AUTOFS_MAXOPTSLEN)) in xdr_umntrequest()
83 if (!xdr_bool(xdrs, &more_data)) in xdr_umntrequest()
90 xdr_umntres(XDR *xdrs, umntres *objp) in xdr_umntres() argument
92 return (xdr_int(xdrs, &objp->status)); in xdr_umntres()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dxdr.c104 xdr_int(XDR *xdrs, int *ip) in xdr_int() argument
106 if (xdrs->x_op == XDR_ENCODE) in xdr_int()
107 return (XDR_PUTINT32(xdrs, ip)); in xdr_int()
109 if (xdrs->x_op == XDR_DECODE) in xdr_int()
110 return (XDR_GETINT32(xdrs, ip)); in xdr_int()
112 if (xdrs->x_op == XDR_FREE) in xdr_int()
127 xdr_u_int(XDR *xdrs, uint_t *up) in xdr_u_int() argument
129 if (xdrs->x_op == XDR_ENCODE) in xdr_u_int()
130 return (XDR_PUTINT32(xdrs, (int32_t *)up)); in xdr_u_int()
132 if (xdrs->x_op == XDR_DECODE) in xdr_u_int()
[all …]
H A Dxdr_mblk.c111 xdrmblk_init(XDR *xdrs, mblk_t *m, enum xdr_op op, int sz) in xdrmblk_init() argument
115 xdrs->x_op = op; in xdrmblk_init()
116 xdrs->x_ops = &xdrmblk_ops; in xdrmblk_init()
117 xdrs->x_base = (caddr_t)m; in xdrmblk_init()
118 xdrs->x_public = NULL; in xdrmblk_init()
120 xdrs->x_private = (caddr_t)p; in xdrmblk_init()
127 xdrs->x_handy = (int)MBLKL(m); in xdrmblk_init()
129 xdrs->x_handy = (int)MBLKTAIL(m); in xdrmblk_init()
136 xdrmblk_destroy(XDR *xdrs) in xdrmblk_destroy() argument
138 kmem_free(xdrs->x_private, sizeof (struct xdrmblk_params)); in xdrmblk_destroy()
[all …]
H A Dxdr_mem.c57 xdrmem_create(XDR *xdrs, caddr_t addr, uint_t size, enum xdr_op op) in xdrmem_create() argument
59 xdrs->x_op = op; in xdrmem_create()
60 xdrs->x_ops = xdrmem_ops(); in xdrmem_create()
61 xdrs->x_private = xdrs->x_base = addr; in xdrmem_create()
62 xdrs->x_handy = size; in xdrmem_create()
63 xdrs->x_public = NULL; in xdrmem_create()
68 xdrmem_destroy(XDR *xdrs) in xdrmem_destroy() argument
73 xdrmem_getint32(XDR *xdrs, int32_t *int32p) in xdrmem_getint32() argument
75 if ((xdrs->x_handy -= (int)sizeof (int32_t)) < 0) in xdrmem_getint32()
78 *int32p = (int32_t)ntohl((uint32_t)(*((int32_t *)(xdrs->x_private)))); in xdrmem_getint32()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dprinc_xdr.c12 ldap_xdr_krb5_ui_2(XDR *xdrs, krb5_ui_2 *objp) in ldap_xdr_krb5_ui_2() argument
18 if (!xdr_u_int(xdrs, &tmp)) in ldap_xdr_krb5_ui_2()
26 ldap_xdr_krb5_int16(XDR *xdrs, krb5_int16 *objp) in ldap_xdr_krb5_int16() argument
32 if (!xdr_int(xdrs, &tmp)) in ldap_xdr_krb5_int16()
40 ldap_xdr_nullstring(XDR *xdrs, char **objp) in ldap_xdr_nullstring() argument
44 if (xdrs->x_op == XDR_ENCODE) { in ldap_xdr_nullstring()
50 if (! xdr_u_int(xdrs, &size)) { in ldap_xdr_nullstring()
53 switch (xdrs->x_op) { in ldap_xdr_nullstring()
65 return (xdr_opaque(xdrs, *objp, size)); in ldap_xdr_nullstring()
69 return (xdr_opaque(xdrs, *objp, size)); in ldap_xdr_nullstring()
[all …]

12345678