Lines Matching defs:objp
39 xdr_b_nfs_fh3(XDR *xdrs, nfs_fh3 *objp)
41 return (xdr_bytes(xdrs, (char **)&objp->data.data_val,
42 (uint_t *)&objp->data.data_len, NFS3_FHSIZE));
46 xdr_b_fattr3(XDR *xdrs, fattr3 *objp)
48 if (!xdr_enum(xdrs, (enum_t *)&objp->type))
50 if (!xdr_u_int(xdrs, &objp->mode))
52 if (!xdr_u_int(xdrs, &objp->nlink))
54 if (!xdr_u_int(xdrs, &objp->uid))
56 if (!xdr_u_int(xdrs, &objp->gid))
58 if (!xdr_u_longlong_t(xdrs, &objp->size))
60 if (!xdr_u_longlong_t(xdrs, &objp->used))
62 if (!xdr_u_int(xdrs, &objp->rdev.specdata1))
64 if (!xdr_u_int(xdrs, &objp->rdev.specdata2))
66 if (!xdr_u_longlong_t(xdrs, &objp->fsid))
68 if (!xdr_u_longlong_t(xdrs, &objp->fileid))
70 if (!xdr_u_int(xdrs, &objp->atime.seconds))
72 if (!xdr_u_int(xdrs, &objp->atime.nseconds))
74 if (!xdr_u_int(xdrs, &objp->mtime.seconds))
76 if (!xdr_u_int(xdrs, &objp->mtime.nseconds))
78 if (!xdr_u_int(xdrs, &objp->ctime.seconds))
80 return (xdr_u_int(xdrs, &objp->ctime.nseconds));
84 xdr_b_post_op_attr(XDR *xdrs, post_op_attr *objp)
86 if (!xdr_bool(xdrs, &objp->attributes_follow))
88 switch (objp->attributes_follow) {
90 return (xdr_b_fattr3(xdrs, &objp->post_op_attr_u.attributes));
99 xdr_b_diropargs3(XDR *xdrs, diropargs3 *objp)
101 if (!xdr_b_nfs_fh3(xdrs, &objp->dir))
103 return (xdr_string(xdrs, &objp->name, ~0));
107 xdr_GETATTR3args(XDR *xdrs, GETATTR3args *objp)
109 return (xdr_b_nfs_fh3(xdrs, &objp->object));
113 xdr_b_GETATTR3resok(XDR *xdrs, GETATTR3resok *objp)
115 return (xdr_b_fattr3(xdrs, &objp->obj_attributes));
119 xdr_GETATTR3res(XDR *xdrs, GETATTR3res *objp)
121 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
123 if (objp->status == NFS3_OK)
124 return (xdr_b_GETATTR3resok(xdrs, &objp->GETATTR3res_u.resok));
129 xdr_LOOKUP3args(XDR *xdrs, LOOKUP3args *objp)
131 return (xdr_b_diropargs3(xdrs, &objp->what));
135 xdr_b_LOOKUP3resok(XDR *xdrs, LOOKUP3resok *objp)
137 if (!xdr_b_nfs_fh3(xdrs, &objp->object))
139 if (!xdr_b_post_op_attr(xdrs, &objp->obj_attributes))
141 return (xdr_b_post_op_attr(xdrs, &objp->dir_attributes));
145 xdr_b_LOOKUP3resfail(XDR *xdrs, LOOKUP3resfail *objp)
147 return (xdr_b_post_op_attr(xdrs, &objp->dir_attributes));
151 xdr_LOOKUP3res(XDR *xdrs, LOOKUP3res *objp)
153 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
156 if (objp->status == NFS3_OK)
157 return (xdr_b_LOOKUP3resok(xdrs, &objp->LOOKUP3res_u.resok));
159 return (xdr_b_LOOKUP3resfail(xdrs, &objp->LOOKUP3res_u.resfail));
163 xdr_READLINK3args(XDR *xdrs, READLINK3args *objp)
165 return (xdr_b_nfs_fh3(xdrs, &objp->symlink));
169 xdr_b_READLINK3resok(XDR *xdrs, READLINK3resok *objp)
171 if (!xdr_b_post_op_attr(xdrs, &objp->symlink_attributes))
173 return (xdr_string(xdrs, &objp->data, ~0));
177 xdr_b_READLINK3resfail(XDR *xdrs, READLINK3resfail *objp)
179 return (xdr_b_post_op_attr(xdrs, &objp->symlink_attributes));
183 xdr_READLINK3res(XDR *xdrs, READLINK3res *objp)
185 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
187 if (objp->status == NFS3_OK)
189 &objp->READLINK3res_u.resok));
190 return (xdr_b_READLINK3resfail(xdrs, &objp->READLINK3res_u.resfail));
194 xdr_READ3args(XDR *xdrs, READ3args *objp)
196 if (!xdr_b_nfs_fh3(xdrs, &objp->file))
198 if (!xdr_u_longlong_t(xdrs, &objp->offset))
200 return (xdr_u_int(xdrs, &objp->count));
204 xdr_b_READ3resok(XDR *xdrs, READ3resok *objp)
206 if (!xdr_b_post_op_attr(xdrs, &objp->file_attributes))
208 if (!xdr_u_int(xdrs, &objp->count))
210 if (!xdr_bool(xdrs, &objp->eof))
212 return (xdr_bytes(xdrs, (char **)&objp->data.data_val,
213 (uint_t *)&objp->data.data_len, ~0));
217 xdr_b_READ3resfail(XDR *xdrs, READ3resfail *objp)
219 return (xdr_b_post_op_attr(xdrs, &objp->file_attributes));
223 xdr_READ3res(XDR *xdrs, READ3res *objp)
225 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
227 if (objp->status == NFS3_OK)
228 return (xdr_b_READ3resok(xdrs, &objp->READ3res_u.resok));
229 return (xdr_b_READ3resfail(xdrs, &objp->READ3res_u.resfail));
233 xdr_READDIR3args(XDR *xdrs, READDIR3args *objp)
235 if (!xdr_b_nfs_fh3(xdrs, &objp->dir))
237 if (!xdr_u_longlong_t(xdrs, &objp->cookie))
239 if (!xdr_opaque(xdrs, objp->cookieverf, NFS3_COOKIEVERFSIZE))
241 return (xdr_u_int(xdrs, &objp->count));
245 xdr_b_entry3(XDR *xdrs, entry3 *objp)
247 if (!xdr_u_longlong_t(xdrs, &objp->fileid))
249 if (!xdr_string(xdrs, &objp->name, ~0))
251 if (!xdr_u_longlong_t(xdrs, &objp->cookie))
253 return (xdr_pointer(xdrs, (char **)&objp->nextentry,
258 xdr_b_READDIR3resok(XDR *xdrs, READDIR3resok *objp)
260 if (!xdr_b_post_op_attr(xdrs, &objp->dir_attributes))
262 if (!xdr_opaque(xdrs, objp->cookieverf, NFS3_COOKIEVERFSIZE))
264 if (!xdr_pointer(xdrs, (char **)&objp->reply.entries,
267 return (xdr_bool(xdrs, &objp->reply.eof));
271 xdr_b_READDIR3resfail(XDR *xdrs, READDIR3resfail *objp)
273 return (xdr_b_post_op_attr(xdrs, &objp->dir_attributes));
277 xdr_READDIR3res(XDR *xdrs, READDIR3res *objp)
279 if (!xdr_enum(xdrs, (enum_t *)&objp->status))
281 if (objp->status == NFS3_OK)
282 return (xdr_b_READDIR3resok(xdrs, &objp->READDIR3res_u.resok));
283 return (xdr_b_READDIR3resfail(xdrs, &objp->READDIR3res_u.resfail));