29 lines
561 B
C
29 lines
561 B
C
#if !defined(lint) && defined(SCCSIDS)
|
|
static char sccsid[] = "@(#)pmap_prot.c 1.1 92/07/30 Copyr 1984 Sun Micro";
|
|
#endif
|
|
|
|
/*
|
|
* pmap_prot.c
|
|
* Protocol for the local binder service, or pmap.
|
|
*
|
|
* Copyright (C) 1984, Sun Microsystems, Inc.
|
|
*/
|
|
|
|
#include <rpc/types.h>
|
|
#include <rpc/xdr.h>
|
|
#include <rpc/pmap_prot.h>
|
|
|
|
|
|
bool_t
|
|
xdr_pmap(xdrs, regs)
|
|
XDR *xdrs;
|
|
struct pmap *regs;
|
|
{
|
|
|
|
if (xdr_u_long(xdrs, ®s->pm_prog) &&
|
|
xdr_u_long(xdrs, ®s->pm_vers) &&
|
|
xdr_u_long(xdrs, ®s->pm_prot))
|
|
return (xdr_u_long(xdrs, ®s->pm_port));
|
|
return (FALSE);
|
|
}
|