pmap_prot.c revision 26221
1258945Sroberto/*
2290000Sglebius * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3258945Sroberto * unrestricted use provided that this legend is included on all tape
4258945Sroberto * media and as a part of the software program in whole or part.  Users
5258945Sroberto * may copy or modify Sun RPC without charge, but are not authorized
6280849Scy * to license or distribute it to anyone else except as part of a product or
7280849Scy * program developed by the user.
8258945Sroberto *
9258945Sroberto * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
10258945Sroberto * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
11258945Sroberto * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
12258945Sroberto *
13280849Scy * Sun RPC is provided with no support and without any obligation on the
14258945Sroberto * part of Sun Microsystems, Inc. to assist in its use, correction,
15280849Scy * modification or enhancement.
16258945Sroberto *
17258945Sroberto * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18258945Sroberto * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
19258945Sroberto * OR ANY PART THEREOF.
20258945Sroberto *
21258945Sroberto * In no event will Sun Microsystems, Inc. be liable for any lost revenue
22258945Sroberto * or profits or other special, indirect and consequential damages, even if
23258945Sroberto * Sun has been advised of the possibility of such damages.
24258945Sroberto *
25258945Sroberto * Sun Microsystems, Inc.
26258945Sroberto * 2550 Garcia Avenue
27258945Sroberto * Mountain View, California  94043
28258945Sroberto */
29258945Sroberto
30258945Sroberto#if defined(LIBC_SCCS) && !defined(lint)
31258945Sroberto/*static char *sccsid = "from: @(#)pmap_prot.c 1.17 87/08/11 Copyr 1984 Sun Micro";*/
32258945Sroberto/*static char *sccsid = "from: @(#)pmap_prot.c	2.1 88/07/29 4.0 RPCSRC";*/
33258945Srobertostatic char *rcsid = "$Id: pmap_prot.c,v 1.2 1995/05/30 05:41:25 rgrimes Exp $";
34280849Scy#endif
35258945Sroberto
36258945Sroberto/*
37258945Sroberto * pmap_prot.c
38258945Sroberto * Protocol for the local binder service, or pmap.
39258945Sroberto *
40258945Sroberto * Copyright (C) 1984, Sun Microsystems, Inc.
41258945Sroberto */
42258945Sroberto
43258945Sroberto#include <rpc/types.h>
44258945Sroberto#include <rpc/xdr.h>
45258945Sroberto#include <rpc/pmap_prot.h>
46258945Sroberto
47258945Sroberto
48258945Srobertobool_t
49258945Srobertoxdr_pmap(xdrs, regs)
50258945Sroberto	XDR *xdrs;
51258945Sroberto	struct pmap *regs;
52258945Sroberto{
53258945Sroberto
54258945Sroberto	if (xdr_u_long(xdrs, &regs->pm_prog) &&
55258945Sroberto		xdr_u_long(xdrs, &regs->pm_vers) &&
56258945Sroberto		xdr_u_long(xdrs, &regs->pm_prot))
57258945Sroberto		return (xdr_u_long(xdrs, &regs->pm_port));
58258945Sroberto	return (FALSE);
59258945Sroberto}
60258945Sroberto