本文整理汇总了C++中xdr_nfsstat3函数的典型用法代码示例。如果您正苦于以下问题:C++ xdr_nfsstat3函数的具体用法?C++ xdr_nfsstat3怎么用?C++ xdr_nfsstat3使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xdr_nfsstat3函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xdr_GETATTR3res
bool_t
xdr_GETATTR3res(register XDR *xdrs, GETATTR3res *objp)
{
if (!xdr_nfsstat3(xdrs, &objp->status))
return (FALSE);
switch (objp->status) {
case NFS3_OK:
if (!xdr_GETATTR3resok(xdrs, &objp->GETATTR3res_u.resok))
return (FALSE);
break;
}
return (TRUE);
}
示例2: xdr_getattr3res
bool_t
xdr_getattr3res (XDR *xdrs, getattr3res *objp)
{
if (!xdr_nfsstat3 (xdrs, &objp->status))
return FALSE;
switch (objp->status) {
case NFS3_OK:
if (!xdr_getattr3resok (xdrs, &objp->getattr3res_u.resok))
return FALSE;
break;
default:
break;
}
return TRUE;
}
示例3: xdr_mkdir3res
bool_t
xdr_mkdir3res (XDR *xdrs, mkdir3res *objp)
{
if (!xdr_nfsstat3 (xdrs, &objp->status))
return FALSE;
switch (objp->status) {
case NFS3_OK:
if (!xdr_mkdir3resok (xdrs, &objp->mkdir3res_u.resok))
return FALSE;
break;
default:
if (!xdr_mkdir3resfail (xdrs, &objp->mkdir3res_u.resfail))
return FALSE;
break;
}
return TRUE;
}
示例4: xdr_read3res_nocopy
bool_t
xdr_read3res_nocopy (XDR *xdrs, read3res *objp)
{
if (!xdr_nfsstat3 (xdrs, &objp->status))
return FALSE;
switch (objp->status) {
case NFS3_OK:
if (!xdr_read3resok_nocopy (xdrs, &objp->read3res_u.resok))
return FALSE;
break;
default:
if (!xdr_read3resfail (xdrs, &objp->read3res_u.resfail))
return FALSE;
break;
}
return TRUE;
}
示例5: xdr_SYMLINK3res
bool_t
xdr_SYMLINK3res(register XDR *xdrs, SYMLINK3res *objp)
{
if (!xdr_nfsstat3(xdrs, &objp->status))
return (FALSE);
switch (objp->status) {
case NFS3_OK:
if (!xdr_SYMLINK3resok(xdrs, &objp->SYMLINK3res_u.resok))
return (FALSE);
break;
default:
if (!xdr_SYMLINK3resfail(xdrs, &objp->SYMLINK3res_u.resfail))
return (FALSE);
break;
}
return (TRUE);
}
示例6: xdr_pathconf_res
bool_t
xdr_pathconf_res(XDR *xdrs, PATHCONF3res *objp)
{
if (!xdr_nfsstat3(xdrs, &objp->status))
return FALSE;
switch (objp->status) {
case NFS3_OK:
if (!xdr_pathconf_resok(xdrs, &objp->PATHCONF3res_u.resok))
return FALSE;
break;
default:
if (!xdr_pathconf_resfail(xdrs, &objp->PATHCONF3res_u.resfail))
return FALSE;
break;
}
return TRUE;
}
示例7: xdr_ex_getattr3res
bool_t
xdr_ex_getattr3res(XDR *xdrs, ex_getattr3res *objp)
{
register int32_t *buf;
if (!xdr_nfsstat3(xdrs, &objp->status)) {
return (FALSE);
}
switch (objp->status) {
case NFS3_OK:
if (!xdr_ex_fattr3(xdrs, &objp->RPC_UNION_NAME(ex_getattr3res).attributes)) {
return (FALSE);
}
break;
}
return (TRUE);
}
示例8: xdr_MKDIR3res
bool_t
xdr_MKDIR3res(XDR *xdrs, MKDIR3res *objp)
{
if (!xdr_nfsstat3(xdrs, &objp->status))
return (FALSE);
switch (objp->status) {
case NFS3_OK:
if (!xdr_MKDIR3resok(xdrs, &objp->MKDIR3res_u.resok))
return (FALSE);
break;
default:
if (!xdr_MKDIR3resfail(xdrs, &objp->MKDIR3res_u.resfail))
return (FALSE);
break;
}
return (TRUE);
}
示例9: xdr_readdirplus_res
bool_t
xdr_readdirplus_res(XDR *xdrs, READDIRPLUS3res *objp)
{
if (!xdr_nfsstat3(xdrs, &objp->status))
return FALSE;
switch (objp->status) {
case NFS3_OK:
if (!xdr_readdirplus_resok(xdrs,
&objp->READDIRPLUS3res_u.resok))
return FALSE;
break;
default:
if (!xdr_readdirplus_resfail(xdrs,
&objp->READDIRPLUS3res_u.resfail))
return FALSE;
break;
}
return TRUE;
}
示例10: xdr_ex_link3res
bool_t
xdr_ex_link3res(XDR *xdrs, ex_link3res *objp)
{
register int32_t *buf;
if (!xdr_nfsstat3(xdrs, &objp->status)) {
return (FALSE);
}
switch (objp->status) {
case -1:
break;
default:
if (!xdr_ex_link3wcc(xdrs, &objp->RPC_UNION_NAME(ex_link3res).res)) {
return (FALSE);
}
break;
}
return (TRUE);
}
示例11: xdr_ex_wccstat3
bool_t
xdr_ex_wccstat3(XDR *xdrs, ex_wccstat3 *objp)
{
register int32_t *buf;
if (!xdr_nfsstat3(xdrs, &objp->status)) {
return (FALSE);
}
switch (objp->status) {
case -1:
break;
default:
if (!xdr_ex_wcc_data(xdrs, &objp->RPC_UNION_NAME(ex_wccstat3).wcc)) {
return (FALSE);
}
break;
}
return (TRUE);
}
示例12: xdr_ex_commit3res
bool_t
xdr_ex_commit3res(XDR *xdrs, ex_commit3res *objp)
{
register int32_t *buf;
if (!xdr_nfsstat3(xdrs, &objp->status)) {
return (FALSE);
}
switch (objp->status) {
case NFS3_OK:
if (!xdr_ex_commit3resok(xdrs, &objp->RPC_UNION_NAME(ex_commit3res).resok)) {
return (FALSE);
}
break;
default:
if (!xdr_ex_wcc_data(xdrs, &objp->RPC_UNION_NAME(ex_commit3res).resfail)) {
return (FALSE);
}
break;
}
return (TRUE);
}
示例13: xdr_ex_readdirplus3res
bool_t
xdr_ex_readdirplus3res(XDR *xdrs, ex_readdirplus3res *objp)
{
register int32_t *buf;
if (!xdr_nfsstat3(xdrs, &objp->status)) {
return (FALSE);
}
switch (objp->status) {
case NFS3_OK:
if (!xdr_ex_readdirplus3resok(xdrs, &objp->RPC_UNION_NAME(ex_readdirplus3res).resok)) {
return (FALSE);
}
break;
default:
if (!xdr_ex_post_op_attr(xdrs, &objp->RPC_UNION_NAME(ex_readdirplus3res).resfail)) {
return (FALSE);
}
break;
}
return (TRUE);
}
示例14: xdr_diropres3
bool_t
xdr_diropres3(XDR *xdrs, diropres3 *objp)
{
register int32_t *buf;
if (!xdr_nfsstat3(xdrs, &objp->status)) {
return (FALSE);
}
switch (objp->status) {
case NFS3_OK:
if (!xdr_diropres3ok(xdrs, &objp->RPC_UNION_NAME(diropres3).resok)) {
return (FALSE);
}
break;
default:
if (!xdr_wcc_data(xdrs, &objp->RPC_UNION_NAME(diropres3).resfail)) {
return (FALSE);
}
break;
}
return (TRUE);
}