本文整理汇总了C++中xdr_netobj函数的典型用法代码示例。如果您正苦于以下问题:C++ xdr_netobj函数的具体用法?C++ xdr_netobj怎么用?C++ xdr_netobj使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xdr_netobj函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xdr_nlm4_share
bool_t
xdr_nlm4_share (XDR *xdrs, nlm4_share *objp)
{
if (!xdr_string (xdrs, &objp->caller_name, MAXNAMELEN))
return FALSE;
if (!xdr_netobj (xdrs, &objp->fh))
return FALSE;
if (!xdr_netobj (xdrs, &objp->oh))
return FALSE;
if (!xdr_fsh_mode (xdrs, &objp->mode))
return FALSE;
if (!xdr_fsh_access (xdrs, &objp->access))
return FALSE;
return TRUE;
}
示例2: xdr_nlm4_share
bool_t xdr_nlm4_share(XDR * xdrs, nlm4_share * objp)
{
register int32_t *buf;
if(!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
return FALSE;
if(!xdr_netobj(xdrs, &objp->fh))
return FALSE;
if(!xdr_netobj(xdrs, &objp->oh))
return FALSE;
if(!xdr_fsh4_mode(xdrs, &objp->mode))
return FALSE;
if(!xdr_fsh4_access(xdrs, &objp->access))
return FALSE;
return TRUE;
}
示例3: _xdr_nis_result
bool_t
_xdr_nis_result (XDR *xdrs, nis_result *objp)
{
bool_t res = xdr_nis_error (xdrs, &objp->status);
if (__builtin_expect (res, TRUE))
{
res = xdr_array (xdrs, (void *) &objp->objects.objects_val,
&objp->objects.objects_len, ~0,
sizeof (nis_object), (xdrproc_t) _xdr_nis_object);
if (__builtin_expect (res, TRUE))
{
res = xdr_netobj (xdrs, &objp->cookie);
if (__builtin_expect (res, TRUE))
{
res = xdr_uint32_t (xdrs, &objp->zticks);
if (__builtin_expect (res, TRUE))
{
res = xdr_uint32_t (xdrs, &objp->dticks);
if (__builtin_expect (res, TRUE))
{
res = xdr_uint32_t (xdrs, &objp->aticks);
if (__builtin_expect (res, TRUE))
res = xdr_uint32_t (xdrs, &objp->cticks);
}
}
}
}
}
return res;
}
示例4: xdr_nlm4_lock
bool_t
xdr_nlm4_lock (XDR *xdrs, nlm4_lock *objp)
{
if (!xdr_string (xdrs, &objp->caller_name, MAXNAMELEN))
return FALSE;
if (!xdr_netobj (xdrs, &objp->fh))
return FALSE;
if (!xdr_netobj (xdrs, &objp->oh))
return FALSE;
if (!xdr_uint32_t (xdrs, &objp->svid))
return FALSE;
if (!xdr_uint64_t (xdrs, &objp->l_offset))
return FALSE;
if (!xdr_uint64_t (xdrs, &objp->l_len))
return FALSE;
return TRUE;
}
示例5: xdr_nlm4_res
bool_t
xdr_nlm4_res (XDR *xdrs, nlm4_res *objp)
{
if (!xdr_netobj (xdrs, &objp->cookie))
return FALSE;
if (!xdr_nlm4_stat (xdrs, &objp->stat))
return FALSE;
return TRUE;
}
示例6: xdr_nlm4_lock
bool_t xdr_nlm4_lock(XDR * xdrs, nlm4_lock * objp)
{
register int32_t *buf;
if(!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
return FALSE;
if(!xdr_netobj(xdrs, &objp->fh))
return FALSE;
if(!xdr_netobj(xdrs, &objp->oh))
return FALSE;
if(!xdr_int32_t(xdrs, &objp->svid))
return FALSE;
if(!xdr_uint64_t(xdrs, &objp->l_offset))
return FALSE;
if(!xdr_uint64_t(xdrs, &objp->l_len))
return FALSE;
return TRUE;
}
示例7: xdr_nlm4_unlockargs
bool_t
xdr_nlm4_unlockargs (XDR *xdrs, nlm4_unlockargs *objp)
{
if (!xdr_netobj (xdrs, &objp->cookie))
return FALSE;
if (!xdr_nlm4_lock (xdrs, &objp->alock))
return FALSE;
return TRUE;
}
示例8: xdr_cryptkeyarg2
bool_t
xdr_cryptkeyarg2(XDR *xdrs, cryptkeyarg2 *objp)
{
if (!xdr_netnamestr(xdrs, &objp->remotename))
return (FALSE);
if (!xdr_netobj(xdrs, &objp->remotekey))
return (FALSE);
return (xdr_des_block(xdrs, &objp->deskey));
}
示例9: xdr_nlm4_testres
bool_t xdr_nlm4_testres(XDR * xdrs, nlm4_testres * objp)
{
register int32_t *buf;
if(!xdr_netobj(xdrs, &objp->cookie))
return FALSE;
if(!xdr_nlm4_testrply(xdrs, &objp->test_stat))
return FALSE;
return TRUE;
}
示例10: xdr_nlm4_shareres
bool_t
xdr_nlm4_shareres (XDR *xdrs, nlm4_shareres *objp)
{
if (!xdr_netobj (xdrs, &objp->cookie))
return FALSE;
if (!xdr_nlm4_stats (xdrs, &objp->stat))
return FALSE;
if (!xdr_int (xdrs, &objp->sequence))
return FALSE;
return TRUE;
}
示例11: xdr_nlm4_shareargs
bool_t
xdr_nlm4_shareargs (XDR *xdrs, nlm4_shareargs *objp)
{
if (!xdr_netobj (xdrs, &objp->cookie))
return FALSE;
if (!xdr_nlm4_share (xdrs, &objp->share))
return FALSE;
if (!xdr_bool (xdrs, &objp->reclaim))
return FALSE;
return TRUE;
}
示例12: xdr_cryptkeyarg2
bool
xdr_cryptkeyarg2(XDR *xdrs, cryptkeyarg2 *objp)
{
if (!xdr_netnamestr(xdrs, &objp->remotename))
return (false);
if (!xdr_netobj(xdrs, &objp->remotekey))
return (false);
if (!xdr_des_block(xdrs, &objp->deskey))
return (false);
return (true);
}
示例13: xdr_nlm4_testargs
bool_t
xdr_nlm4_testargs (XDR *xdrs, nlm4_testargs *objp)
{
if (!xdr_netobj (xdrs, &objp->cookie))
return FALSE;
if (!xdr_bool (xdrs, &objp->exclusive))
return FALSE;
if (!xdr_nlm4_lock (xdrs, &objp->alock))
return FALSE;
return TRUE;
}
示例14: xdr_nlm_unlockargs
bool_t
xdr_nlm_unlockargs (XDR *xdrs, nlm_unlockargs *objp)
{
register int32_t *buf;
if (!xdr_netobj (xdrs, &objp->cookie))
return FALSE;
if (!xdr_nlm_lock (xdrs, &objp->alock))
return FALSE;
return TRUE;
}
示例15: xdr_nlm_shareres
bool_t
xdr_nlm_shareres (XDR *xdrs, nlm_shareres *objp)
{
register int32_t *buf;
if (!xdr_netobj (xdrs, &objp->cookie))
return FALSE;
if (!xdr_nlm_stats (xdrs, &objp->stat))
return FALSE;
if (!xdr_int (xdrs, &objp->sequence))
return FALSE;
return TRUE;
}