2 * @(#)pmap_prot.h 2.1 97/10/23
4 /* @(#)pmap_prot.h 2.1 88/07/29 4.0 RPCSRC; from 1.14 88/02/08 SMI */
6 * Copyright (c) 1992-1997,2001 by Standard Performance Evaluation Corporation
8 * Standard Performance Evaluation Corporation (SPEC)
9 * 6585 Merchant Place, Suite 100
12 * This product contains benchmarks acquired from several sources who
13 * understand and agree with SPEC's goal of creating fair and objective
14 * benchmarks to measure computer performance.
16 * This copyright notice is placed here only to protect SPEC in the
17 * event the source is misused in any manner that is contrary to the
18 * spirit, the goals and the intent of SPEC.
20 * The source code is provided to the user or company under the license
21 * agreement for the SPEC Benchmark Suite for this product.
24 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
25 * unrestricted use provided that this legend is included on all tape
26 * media and as a part of the software program in whole or part. Users
27 * may copy or modify Sun RPC without charge, but are not authorized
28 * to license or distribute it to anyone else except as part of a product or
29 * program developed by the user.
31 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
32 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
33 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
35 * Sun RPC is provided with no support and without any obligation on the
36 * part of Sun Microsystems, Inc. to assist in its use, correction,
37 * modification or enhancement.
39 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
40 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
41 * OR ANY PART THEREOF.
43 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
44 * or profits or other special, indirect and consequential damages, even if
45 * Sun has been advised of the possibility of such damages.
47 * Sun Microsystems, Inc.
49 * Mountain View, California 94043
53 * Protocol for the local binder service, or pmap.
55 * Copyright (C) 1984, Sun Microsystems, Inc.
57 * The following procedures are supported by the protocol:
59 * PMAPPROC_NULL() returns ()
60 * takes nothing, returns nothing
62 * PMAPPROC_SET(struct pmap) returns (bool_t)
63 * TRUE is success, FALSE is failure. Registers the tuple
64 * [prog, vers, prot, port].
66 * PMAPPROC_UNSET(struct pmap) returns (bool_t)
67 * TRUE is success, FALSE is failure. Un-registers pair
68 * [prog, vers]. prot and port are ignored.
70 * PMAPPROC_GETPORT(struct pmap) returns (int32_t unsigned).
71 * 0 is failure. Otherwise returns the port number where the pair
72 * [prog, vers] is registered. It may lie!
74 * PMAPPROC_DUMP() RETURNS (struct pmaplist *)
76 * PMAPPROC_CALLIT(unsigned, unsigned, unsigned, string<>)
77 * RETURNS (port, string<>);
78 * usage: encapsulatedresults = PMAPPROC_CALLIT(prog, vers, proc, encapsulatedargs);
79 * Calls the procedure on the local machine. If it is not registered,
80 * this procedure is quite; ie it does not return error information!!!
81 * This procedure only is supported on rpc/udp and calls via
82 * rpc/udp. This routine only passes null authentication parameters.
83 * This file has no interface to xdr routines for PMAPPROC_CALLIT.
85 * The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
88 #define PMAPPORT ((uint16_t)111)
89 #define PMAPPROG ((uint32_t)100000)
90 #define PMAPVERS ((uint32_t)2)
91 #define PMAPVERS_PROTO ((uint32_t)2)
92 #define PMAPVERS_ORIG ((uint32_t)1)
93 #define PMAPPROC_NULL ((uint32_t)0)
94 #define PMAPPROC_SET ((uint32_t)1)
95 #define PMAPPROC_UNSET ((uint32_t)2)
96 #define PMAPPROC_GETPORT ((uint32_t)3)
97 #define PMAPPROC_DUMP ((uint32_t)4)
98 #define PMAPPROC_CALLIT ((uint32_t)5)
107 extern bool_t xdr_pmap();
111 struct pmaplist *pml_next;
114 extern bool_t xdr_pmaplist();